Issue 311 in protobuf: PyPI packages cannot be installed with PIP

67 views
Skip to first unread message

prot...@googlecode.com

unread,
Jul 4, 2011, 8:11:25 AM7/4/11
to prot...@googlegroups.com
Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 311 by jka...@kakar.ca: PyPI packages cannot be installed with PIP
http://code.google.com/p/protobuf/issues/detail?id=311

What steps will reproduce the problem?
1. Run 'pip install protobuf'

What is the expected output? What do you see instead?

I expect the protobuf package to be installed, but instead see this:

$ sudo pip install protobuf
Downloading/unpacking protobuf
Downloading protobuf-2.4.1.tar.bz2 (1.4Mb): 1.4Mb downloaded
Running setup.py egg_info for package protobuf
Traceback (most recent call last):
File "<string>", line 14, in <module>
IOError: [Errno 2] No such file or
directory: '/home/jkakar/src/fluidinfo/fluiddb/branches/implicit-paths-790115/build/protobuf/setup.py'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

File "<string>", line 14, in <module>

IOError: [Errno 2] No such file or
directory: '/home/jkakar/src/fluidinfo/fluiddb/branches/implicit-paths-790115/build/protobuf/setup.py'

----------------------------------------
Command python setup.py egg_info failed with error code 1
Storing complete log in /home/jkakar/.pip/pip.log


What version of the product are you using? On what operating system?

I'm using the latest version on PyPI with an up-to-date Ubuntu 11.04
system.


Please provide any additional information below.

The issue is that the tarball uploaded to PyPI doesn't have a setup.py
in the root of the package. Probably the right thing to do is to
upload just the python/ directory.


prot...@googlecode.com

unread,
Jul 4, 2011, 1:40:48 PM7/4/11
to prot...@googlegroups.com

Comment #1 on issue 311 by g...@krypto.org: PyPI packages cannot be

http://pypi.python.org/pypi/protobuf appears to only list version 2.3.0
rather than the later (2.4.1 today) version on the
http://code.google.com/p/protobuf/downloads/list project.

the 2.3.0 tar.gz listed on pypi is just the contents of the python/
directory of the full protobuf tarball.

In order for this to work via pip install I don't think including just the
python/ subdirectory is the right thing to do; that'd mean the C++
extension module version of the API that wraps the C++ protobuf API could
not be compiled and used.

A top level setup.py suitable for pip above the python/ subdirectory might
be a better answer than just a python only package.

prot...@googlecode.com

unread,
Jul 5, 2011, 11:07:21 AM7/5/11
to prot...@googlegroups.com

Comment #2 on issue 311 by wins...@netwok.org: PyPI packages cannot be

FYI, the package_dir argument of setup will probably help:
http://docs.python.org/distutils/setupscript#listing-whole-packages

prot...@googlecode.com

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

Comment #3 on issue 311 by wins...@netwok.org: PyPI packages cannot be

This is a duplicate of issue #66.

prot...@googlecode.com

unread,
Jul 28, 2011, 2:02:33 PM7/28/11
to prot...@googlegroups.com

Comment #4 on issue 311 by subs...@gmail.com: PyPI packages cannot be

aka google doesn't know how to build python packages.

prot...@googlecode.com

unread,
Sep 20, 2011, 5:52:33 AM9/20/11
to prot...@googlegroups.com

Comment #5 on issue 311 by b...@iroxa.net: PyPI packages cannot be

Likewise, this is a major pain for us (reproduced on OS X 10.7 and Ubuntu
10.10). A fix would be much appreciated.

prot...@googlecode.com

unread,
Jan 13, 2012, 6:19:52 AM1/13/12
to prot...@googlegroups.com

Comment #6 on issue 311 by d.fleisc...@gmail.com: PyPI packages cannot be

Is there a solution for this issue to be expected? Installation also fails
on SLES 11, where I need to install an application depending on protobuf.

prot...@googlecode.com

unread,
Feb 5, 2012, 7:51:11 PM2/5/12
to prot...@googlegroups.com

Comment #7 on issue 311 by miser...@gmail.com: PyPI packages cannot be

This error still occuring on OSX 10.7. Would appreciate a patch.

prot...@googlecode.com

unread,
Feb 11, 2012, 7:01:33 AM2/11/12
to prot...@googlegroups.com
Updates:
Status: Duplicate
Owner: rem...@google.com
Mergedinto: 66

Comment #8 on issue 311 by rem...@google.com: PyPI packages cannot be

This has been fixed; see issue #66 for details.

Reply all
Reply to author
Forward
0 new messages