Re: Issue 66 in protobuf: cannot install using easy_install

636 views
Skip to first unread message

prot...@googlecode.com

unread,
Feb 8, 2010, 11:09:38 PM2/8/10
to prot...@googlegroups.com

Comment #10 on issue 66 by danhomerick: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I think what's going on is:
1. easy_install is finding that egg at pypi.python.org is out of date
(v2.0.3) as
compared to the main download page (v2.3.0) and chooses the most current
version.
2. easy_install doesn't exhaustively search the protobuf-2.3.0.zip file and
so is not
finding the setup.py file residing in the python subfolder.

I think the simplest fix is would be to keep pypi up to date with each new
release.
Alternatively, maybe you could move setup.py to reside in the top level?

Could you try the following from protobuf-2.3.0/python:
python setup.py bdist_egg upload

This will update egg at PyPi with a current version. Note that users who use
easy_install to get the egg will only get the python files, and won't get
protoc. In
my case, I want easy_install to grab protobuf as a dependency and thus
don't need it
to install protoc anyways. I think it's possible to change setup.py so that
the egg
will include protoc (and any other files desired) but they'll reside in the
egg.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

prot...@googlecode.com

unread,
Feb 9, 2010, 8:34:52 PM2/9/10
to prot...@googlegroups.com

Comment #11 on issue 66 by ken...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

> Could you try the following from protobuf-2.3.0/python:
> python setup.py bdist_egg upload

Done. Did it work? How do I test it?

> I think it's possible to change setup.py so that the egg
> will include protoc (and any other files desired) but they'll reside in
> the egg.

I doubt it, considering that protoc is a native binary, and I don't want to
maintain
a setuptools-based build system for protoc parallel to the existing
autotool-based
one.

prot...@googlecode.com

unread,
Feb 9, 2010, 9:23:14 PM2/9/10
to prot...@googlegroups.com

Comment #12 on issue 66 by danhomerick: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

> Done. Did it work? How do I test it?
Yes, it worked for Python 2.5 (which is the version you're using,
presumably). It
didn't work for other versions of Python, however. Looking at the setuptools
documentation, I don't see that there's any way to "cross-compile" an egg
for
different versions of python. I assume you have no interest in maintaining
multiple
versions of python just for the purpose of building eggs, so could we try
the
following:

From protobuf-2.3.0/python:
setup.py sdist bdist_egg upload

That should upload both an egg for whatever python version you're using,
and a copy
of the python source. Presumably, easy_install will still prefer a source
dist on
PyPi over downloading the whole project from the google code page.

prot...@googlecode.com

unread,
Feb 9, 2010, 9:28:34 PM2/9/10
to prot...@googlegroups.com

Comment #13 on issue 66 by danhomerick: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Regarding testing, I would use virtualenv:
http://pypi.python.org/pypi/virtualenv

It creates an isolated python environment which has setuptools preinstalled.

prot...@googlecode.com

unread,
Feb 9, 2010, 9:32:36 PM2/9/10
to prot...@googlegroups.com

Comment #14 on issue 66 by ken...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Done. It gave me an error because the bdist was already uploaded but I'm
guessing
that doesn't matter. It looks like the source dist is now listed on
pypi.python.org.
Let me know if that solves the problem.

Yes, I am stuck with Python 2.5. We run a really old (but really stable)
Linux distro
here. :/

prot...@googlecode.com

unread,
Feb 9, 2010, 9:51:12 PM2/9/10
to prot...@googlegroups.com

Comment #15 on issue 66 by danhomerick: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

> Let me know if that solves the problem.
No luck -- it's still favoring the googlecode download over the PyPi source
dist.

So... we could be a bit more specific in the setup.py file about where to
get the
project.

Adding following to setup.py at around line 121 might do the trick:
download_url = 'http://pypi.python.org/pypi/protobuf',

prot...@googlecode.com

unread,
Feb 12, 2010, 5:22:29 PM2/12/10
to prot...@googlegroups.com
Updates:
Labels: Component-Docs

Comment #16 on issue 66 by ken...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Unfortunately I don't think PyPi will let me upload another copy unless I
bump the
version number... :/

prot...@googlecode.com

unread,
Feb 12, 2010, 5:26:34 PM2/12/10
to prot...@googlegroups.com
Updates:
Labels: -Component-Docs

Comment #17 on issue 66 by ken...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I have no idea how that label got added to my previous comment.

prot...@googlecode.com

unread,
Feb 12, 2010, 5:30:40 PM2/12/10
to prot...@googlegroups.com

Comment #18 on issue 66 by danhomerick: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Alright. What's the schedule for the next release? If there is one, that
is. =)

prot...@googlecode.com

unread,
Feb 12, 2010, 7:13:50 PM2/12/10
to prot...@googlegroups.com

Comment #19 on issue 66 by ken...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

There's not a schedule. I'd imagine/hope it would happen within the next
couple
months, but can't guarantee anything.

I wish there were a way to test this without bumping the version number for
each
attempt.

prot...@googlecode.com

unread,
Feb 18, 2010, 4:44:09 AM2/18/10
to prot...@googlegroups.com

Comment #20 on issue 66 by spaans: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

you could release a 2.3.1 specifically to fix this issue - I've had to add
a 2.5 and
a 2.6 egg to our svn tree to prevent buildout from fetching the (wrong)
zipfile when
using python2.6

prot...@googlecode.com

unread,
Feb 25, 2010, 1:32:10 PM2/25/10
to prot...@googlegroups.com

Comment #21 on issue 66 by alexei.dvoretskii: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Our python2.6 installation on windows lives in W:\Python\Python26 and I was
able to
install the egg into
W:\Python\Python26\Lib\site-packages\protobuf-2.3.0-py2.6.egg by
following the following procedure:

- download protobuf-2.3.0 on to a filesystem that is visible from Windows
via a
mapped drive
- run the install on linux, this will among other things generate
descriptor_pb2.py
out of descriptor.proto using protoc installed on linux
- on windows cd to protobuf-2.3.0/python directory under the mapped drive
- W:\Python\Python26\python.exe setup.py install

I haven't tested this much further but at least I can successfully do:

W:\Python\Python26\python.exe
>>> from google.protobuf import descriptor_pb2

so I think there is a good chance it's a working installation.

prot...@googlecode.com

unread,
May 9, 2010, 2:42:15 PM5/9/10
to prot...@googlegroups.com

Comment #22 on issue 66 by qrilka: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

BTW also you can not also install protobug with pip (using "pip install
protobuf")
It's a bit disappointing to see such a good library not working well with
standard
python packaging infrastructure.
Hoping to see it fixed in the next release.

--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To post to this group, send email to prot...@googlegroups.com.
To unsubscribe from this group, send email to protobuf+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.

prot...@googlecode.com

unread,
Jun 30, 2010, 2:49:27 AM6/30/10
to prot...@googlegroups.com

Comment #23 on issue 66 by techtonik: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Running `python -m easy_install protobuf` yields the following error:
Downloading http://protobuf.googlecode.com/files/protobuf-2.3.0.zip
Processing protobuf-2.3.0.zip
error: Couldn't find a setup script in
c:\temp\easy_install-fcgk7g\protobuf-2.3.0.zip


Running `python -m easy_install
http://pypi.python.org/packages/source/p/protobuf/protobuf-2.3.0.tar.gz`
stops with:

File "setup.py", line 7, in <module>
try:
ImportError: No module named ez_setup


This one is strange, because I have setuptools installed. The patch at
http://codereview.appspot.com/1692047 the latter issue, but the
installation still fails with::

Can't find required file: ../src/google/protobuf/descriptor.proto


It seems like this issue can be fixed by including required file on `sdist`
building phase inside `protobuf` checkout, and by altering meta-information
so that easy_install will prefer PyPI package version or will not search
Google Code site at all.

prot...@googlecode.com

unread,
Jul 19, 2010, 6:48:46 PM7/19/10
to prot...@googlegroups.com

Comment #24 on issue 66 by infralite: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Confirm same issue with techtonik but I want to add more:

1) Initially I was suspecting this was virtualenv's fault but this happens
with and without a virtualenv.
2) Techtonik's patch makes sense but also the whole point of ez_setup.py is
that it's meant to be embedded into applications to bootstrap easy_install
and then get whatever dependencies you need. If you don't include the
bootstrap script, how do you expect it to magically get dependencies? :)
3) Previously I hadn't noticed this because I'd gotten the distro
python-protobuf package here:
https://launchpad.net/ubuntu/+source/protobuf
Maybe they've fixed it?
Might it have something to do with this line failing? :
generate_proto("../src/google/protobuf/descriptor.proto")

prot...@googlecode.com

unread,
Oct 12, 2010, 4:41:44 PM10/12/10
to prot...@googlegroups.com

Comment #25 on issue 66 by timothee.peignier: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

This is a diff to make protobuf more compatible with easy_install/pip and
recent version of setuptools/distribute. It's remove `ez_setup` dependency
and don't fail if `descriptor_pb2.py` exists but `descriptor.proto` isn't
found.

Attachments:
66-cannot-install-using-easy-install.diff 11.1 KB

prot...@googlecode.com

unread,
Oct 12, 2010, 7:28:13 PM10/12/10
to prot...@googlegroups.com

Comment #26 on issue 66 by ken...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Thanks, will look into this when doing the next release (which should be
soon).

prot...@googlecode.com

unread,
Nov 8, 2010, 12:04:00 PM11/8/10
to prot...@googlegroups.com

Comment #27 on issue 66 by dusan.maliarik: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I do also suffer from this issue, and it forces me to move out protobuf
from my pip requirements.txt, and store it in my code base :( not nice

prot...@googlecode.com

unread,
Jan 11, 2011, 2:38:42 PM1/11/11
to prot...@googlegroups.com

Comment #28 on issue 66 by jparise: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Timothee Peignier's patch is very helpful. It extended his work with the
attached patch to cover one more remaining issue.

The 'clean' step was always removing generated *_pb2.py files. My patch
changes that behavior to only remove a *_pb2.py file in the 'clean' step if
we can locate the original source .proto file from which to regenerate it.

The previous behavior was causing problems with source distributions
('sdist' packages). If a 'clean' operation was ever run over them, we'd
lose the generated _pb2.py files forever because we no longer have access
to the original protobuf distribution with it's ../src directory full
of .proto files.

The specific motivation for this change was to allow pip's 'bundle' command
to work with the protobuf Python package.

Attachments:
protobuf-clean.patch 1.4 KB

prot...@googlecode.com

unread,
Feb 22, 2011, 10:44:36 AM2/22/11
to prot...@googlegroups.com

Comment #29 on issue 66 by klep...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I'd also like to see this fixed. I played around and found that with the
following file in the base of the tarball everything (at least with our
buildout) works fine.

Basically it creates a setup.py that chdirs to the subdirectory and repeats
the command. With this buildout had no problem installing it.

file: protobuf-2.4.0a/setup.py
--- cut ---
import os
import sys
import subprocess

os.chdir( os.path.join(os.path.dirname(sys.argv[0]),'python') )

subprocess.call(['python', 'setup.py'] + sys.argv[1:])


prot...@googlecode.com

unread,
Apr 4, 2011, 11:20:50 AM4/4/11
to prot...@googlegroups.com

Comment #30 on issue 66 by sto...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Is this the same issue?

sudo easy_install protobuf
Searching for protobuf
Reading http://pypi.python.org/simple/protobuf/
Reading http://code.google.com/p/protobuf/
Best match: protobuf 2.4.0a
Downloading http://protobuf.googlecode.com/files/protobuf-2.4.0a.zip
Processing protobuf-2.4.0a.zip


error: Couldn't find a setup script in

/tmp/easy_install-nFagtb/protobuf-2.4.0a.zip

Fedora 12, python 2.4.

prot...@googlecode.com

unread,
Apr 4, 2011, 3:28:48 PM4/4/11
to prot...@googlegroups.com

Comment #31 on issue 66 by jparise: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

No, that appears to be a separate problem with protobuf-2.4.0a. For some
reason, PyPI is returning the full distribution archive instead of just the
protobuf Python package. It doesn't look like a 2.4.0a sdist package was
upload to PyPI, which might explain the problem.

prot...@googlecode.com

unread,
Apr 17, 2011, 4:30:12 AM4/17/11
to prot...@googlegroups.com

Comment #33 on issue 66 by techto...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

@jparise: PyPI returns link to home page. It is easy_install "intelligence"
that scans the page and finds "updated" distribution on protobuf home page.

A quick hack is to remove "home page" from setup.py meta information and
add link to home page to description (along with documentation link).

prot...@googlecode.com

unread,
May 8, 2011, 1:11:33 AM5/8/11
to prot...@googlegroups.com

Comment #34 on issue 66 by remoun.metyas: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I adapted protobuf-2.4.1 to a format that pip and easy_install can parse.
Since I can't upload it to PyPI, I put it in a GitHub repository:
http://github.com/rem/python-protobuf

Install it like so:
pip
install "git+http://github.com/rem/python-pr...@v2.4.1#egg=protobuf"
(or add that URL to your requirements.txt)

I basically edited setup.py to not remove generated *_pb2.py, and generated
those files with:
protoc --python_out=.
-I ../protobuf-2.4.1/src/ ../protobuf-2.4.1/src/google/protobuf/descriptor.proto
... and similarly for google/protobuf/compiler/plugin.proto

prot...@googlecode.com

unread,
Jul 5, 2011, 11:15:27 AM7/5/11
to prot...@googlegroups.com

Comment #35 on issue 66 by wins...@netwok.org: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Are you sure you cannot remove a file hosted on PyPI and reupload it?

prot...@googlecode.com

unread,
Jul 5, 2011, 11:19:31 AM7/5/11
to prot...@googlegroups.com

Comment #36 on issue 66 by sorin.sb...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I you do not know how to properly define setup.py and to deploy a package
to PyPI please take a look at https://github.com/ssbarnea/tendo -
release.sh and setup.py should be simple enough to explain what you have to
do. When you have the new release ready, just run release.sh

prot...@googlecode.com

unread,
Jul 5, 2011, 11:23:35 AM7/5/11
to prot...@googlegroups.com

Comment #37 on issue 66 by timothee.peignier: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

You can't replace file on pypi if you're not the original author, unless
original author give you permission.
Unless you change the package name ...

prot...@googlecode.com

unread,
Jul 5, 2011, 11:27:39 AM7/5/11
to prot...@googlegroups.com

Comment #38 on issue 66 by wins...@netwok.org: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Sorin: your setup script uses setuptools, not distutils, and has at least
one bug: it uses py_modules instead of packages. I’d recommend the
official documentation, http://docs.python.org/distutils/setupscript

Caveat: I’m a distutils developer :)

prot...@googlecode.com

unread,
Aug 1, 2011, 3:22:43 PM8/1/11
to prot...@googlegroups.com

Comment #39 on issue 66 by dan.ostr...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Apparently this issue still exists? Why is there no ownership on this
ticket?

prot...@googlecode.com

unread,
Sep 20, 2011, 12:40:07 PM9/20/11
to prot...@googlegroups.com

Comment #40 on issue 66 by james.pe...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I'm not sure if this is a perfect solution but it seems to work.
It appears as though the first pass through setup.py finds the file
(descriptor.proto) in the specified location. However, when the build task
is launched it's running
in "protobuf-2.4.1/python/build/bdist.linux-x86_64/rpm/BUILD/protobuf-2.4.1".
In this case, "../src/google/protobuf/descriptor.proto" does not exist.
Here's how I handled it.

if os.path.exists('../src/google/protobuf/descriptor.proto'):
generate_proto("../src/google/protobuf/descriptor.proto")
generate_proto("../src/google/protobuf/compiler/plugin.proto")
else:

generate_proto("../../../../../../src/google/protobuf/descriptor.proto")

generate_proto("../../../../../../src/google/protobuf/compiler/plugin.proto")

prot...@googlecode.com

unread,
Jan 25, 2012, 4:32:47 AM1/25/12
to prot...@googlegroups.com

Comment #41 on issue 66 by m...@bakedbeans.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Is anything being done on this ticket?

prot...@googlecode.com

unread,
Jan 26, 2012, 9:32:34 AM1/26/12
to prot...@googlegroups.com

Comment #42 on issue 66 by Heathe...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

No updates on this?

prot...@googlecode.com

unread,
Feb 9, 2012, 3:40:07 PM2/9/12
to prot...@googlegroups.com

Comment #43 on issue 66 by stevv...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Three years and no fix to such a simple problem? Sad google.

prot...@googlecode.com

unread,
Feb 11, 2012, 6:49:30 AM2/11/12
to prot...@googlegroups.com
Updates:
Status: Fixed
Owner: rem...@google.com

Comment #44 on issue 66 by rem...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I fixed setup.py and uploaded v2.4.1 to PyPI. It should work fine now --
tested with pip and easy_install with virtualenvs and direct installs;
please let me know if you face any issues.

Changed setup.py to try and import setuptools directly, falling back to
ez_setup (for those installing directly from the protobuf source tarball),
and listed setuptools as a requirement. The PyPI package has the modified
setup.py, which will be integrated back into SVN soon and bundled by the
next release.

prot...@googlecode.com

unread,
Feb 11, 2012, 6:57:32 AM2/11/12
to prot...@googlegroups.com

Comment #45 on issue 66 by rem...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Issue 311 has been merged into this issue.

prot...@googlecode.com

unread,
Feb 11, 2012, 9:56:13 PM2/11/12
to prot...@googlegroups.com

Comment #46 on issue 66 by stevv...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Confirmed working with pip on Mac OS X 10.7 with virtualenv.

prot...@googlecode.com

unread,
Apr 15, 2012, 3:49:47 PM4/15/12
to prot...@googlegroups.com

Comment #47 on issue 66 by jens.ran...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Just curious, is the issue mentioned here:
https://github.com/cloudControl/PyDoozerLib/blob/master/README.md related
to this issue? Or is it a new one?

prot...@googlecode.com

unread,
Apr 15, 2012, 3:53:34 PM4/15/12
to prot...@googlegroups.com

Comment #48 on issue 66 by stevv...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

> Installation error with protobuf 2.4.1

> There is a case when you try to install pydoozerlib via python setup.py
> install and run into following error:

> [..]
> Downloading http://protobuf.googlecode.com/files/protobuf-2.4.1.zip
> Processing protobuf-2.4.1.zip


> error: Couldn't find a setup script in

> /tmp/easy_install-riZxUs/protobuf-2.4.1.zip
> Simply install protobuf via pip manually:

> $ pip install protobuf
> Then run python setup.py install again!

Assuming you are referring to this section, yes, the fix for this issue
should address it.

prot...@googlecode.com

unread,
Jun 10, 2012, 9:26:55 AM6/10/12
to prot...@googlegroups.com

Comment #49 on issue 66 by sneakat...@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

This is live again as of 10 Jun 2012 with the default setuptools/python2.7
that ship on current osx:


europa:~▻ easy_install protobuf
Best match: protobuf 2.4.1
Downloading http://protobuf.googlecode.com/files/protobuf-2.4.1.zip
Processing protobuf-2.4.1.zip
error: Couldn't find a setup script in
/var/folders/s8/k1m741rn3k7d06qtx0grqdxc0000gn/T/easy_install-hDaMlT/protobuf-2.4.1.zip
europa:~▻


prot...@googlecode.com

unread,
Jun 12, 2012, 5:10:28 PM6/12/12
to prot...@googlegroups.com

Comment #50 on issue 66 by rem...@google.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I'm not sure why easy_install insists on using
http://protobuf.googlecode.com/files/protobuf-2.4.1.zip (which hasn't been
updated) instead of the PyPI version, which has the same version number.
Installing via pip works fine (also verified with sneakatdatavibe over
email), so I'll see if there will be a new release soon before
investigating further into easy_install (as the new bundles will have the
updated setup.py by then).

prot...@googlecode.com

unread,
Jul 18, 2012, 3:38:23 PM7/18/12
to prot...@googlegroups.com

Comment #51 on issue 66 by a...@northisup.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Can somebody update the file at
http://protobuf.googlecode.com/files/protobuf-2.4.1.zip?

prot...@googlecode.com

unread,
Aug 1, 2012, 3:42:26 PM8/1/12
to prot...@googlegroups.com

Comment #52 on issue 66 by gregory....@gmail.com: cannot install using
easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

Workaround: use easy_install's --allow-hosts options to force downloading
from PyPI:

easy_install --allow-hosts pypi.python.org protobuf

Worked for me

vsh...@gmail.com

unread,
Nov 18, 2016, 2:43:30 AM11/18/16
to Protocol Buffers
When using pip install, a temporary folder will be created in /tmp/ so ../src/google/protobuf/... cannot be found in /tmp

so just 
ln -s /path/to/src/ /tmp/   (absolute path)
then in ../protobuf-2.x.x/python/
pip install .



在 2010年2月9日星期二 UTC+8下午12:09:38,prot...@googlecode.com写道:

Comment #10 on issue 66 by danhomerick: cannot install using easy_install
http://code.google.com/p/protobuf/issues/detail?id=66

I think what's going on is:
1. easy_install is finding that egg at pypi.python.org is out of date  
(v2.0.3) as
compared to the main download page (v2.3.0) and chooses the most current  
version.
2. easy_install doesn't exhaustively search the protobuf-2.3.0.zip file and  
so is not
finding the setup.py file residing in the python subfolder.

I think the simplest fix is would be to keep pypi up to date with each new  
release.
Alternatively, maybe you could move setup.py to reside in the top level?

Could you try the following from protobuf-2.3.0/python:
python setup.py bdist_egg upload

This will update egg at PyPi with a current version. Note that users who use
easy_install to get the egg will only get the python files, and won't get  
protoc. In
my case, I want easy_install to grab protobuf as a dependency and thus  
don't need it
to install protoc anyways. I think it's possible to change setup.py so that  
the egg
will include protoc (and any other files desired) but they'll reside in the  
egg.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages