pip install problem

916 views
Skip to first unread message

Bart Celary

unread,
Jan 25, 2012, 6:33:11 AM1/25/12
to reviewboard
Hi,
I have tried to 'pip install' the latest git snapshot of the
Reviewboard. I am working in a clean virtualenv (setuptools/pip only).
It failed with an error:

pip install -e /data/Work/Development/reviewboard
Obtaining file:///data/Work/Development/reviewboard
Running setup.py egg_info for package from file:///data/Work/Development/reviewboard
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/data/Work/Development/reviewboard/setup.py", line 169, in
<module>
"Topic :: Software Development :: Quality Assurance",
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in
run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in
run_command
cmd_obj.run()
File "/data/Work/Development/reviewboard/setup.py", line 65, in
run
egg_info.run(self)
File "<string>", line 7, in replacement_run
AttributeError: class egg_info has no attribute
'iter_entry_points'
Complete output from command python setup.py egg_info:
running egg_info

creating ReviewBoard.egg-info

Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/data/Work/Development/reviewboard/setup.py", line 169, in
<module>
"Topic :: Software Development :: Quality Assurance",
File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in
run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in
run_command
cmd_obj.run()
File "/data/Work/Development/reviewboard/setup.py", line 65, in run
egg_info.run(self)
File "<string>", line 7, in replacement_run
AttributeError: class egg_info has no attribute 'iter_entry_points'
----------------------------------------
Command python setup.py egg_info failed with error code 1


Looks like commit be1dac2d made that change. Following patch fixed it
for me.

----8<----8<----8<----
diff --git a/setup.py b/setup.py
index 7e572cd..7732aa9 100755
--- a/setup.py
+++ b/setup.py
@@ -13,7 +13,7 @@ from ez_setup import use_setuptools
use_setuptools()

from setuptools import setup, find_packages
-from setuptools.command.egg_info import egg_info
+from setuptools.command import egg_info
from distutils.command.install_data import install_data
from distutils.command.install import INSTALL_SCHEMES
from distutils.core import Command
@@ -51,7 +51,7 @@ class osx_install_data(install_data):
install_data.finalize_options(self)


-class BuildEggInfo(egg_info):
+class BuildEggInfo(egg_info.egg_info):
def run(self):
# Conditionally build the media files if there's a
settings_local
# file. If there isn't one, we assume this is a new dev tree,
in which
@@ -62,7 +62,7 @@ class BuildEggInfo(egg_info):
if os.path.exists('settings_local.py'):
self.run_command('build_media')

- egg_info.run(self)
+ egg_info.egg_info.run(self)


class BuildMedia(Command):
----8<----8<----8<----

Bartek

Christian Hammond

unread,
Jan 21, 2013, 9:11:18 PM1/21/13
to revie...@googlegroups.com
Hi Michel,

We do not support pip. Pip, while popular, is incomplete and doesn't support a critical feature, Python Entrypoints, which we require for all extensions, authentication backends, and repository backends. You'll have to use easy_install with Review Board and our dependencies.

Christian

--
Christian Hammond - chi...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Mon, Jan 21, 2013 at 5:42 PM, Michel Alexandre Salim <michael....@gmail.com> wrote:
Hello,


On Wednesday, January 25, 2012 6:33:11 PM UTC+7, Bart Celary wrote:
Hi,
I have tried to 'pip install' the latest git snapshot of the
Reviewboard. I am working in a clean virtualenv (setuptools/pip only).
It failed with an error:

 Is there any progress on this report? One year later, I'm encountering the same problem trying to install djblets 0.7.8 (the latest available version) in virtualenv.

Thanks,

-- 
Michel Alexandre Salim
--
Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to reviewboard...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en
 
 

Michel Alexandre Salim

unread,
Jan 21, 2013, 11:54:32 PM1/21/13
to revie...@googlegroups.com, chi...@chipx86.com
Hi Christian,

Thanks, that clears up the issue. There were similar problems with PyObjc, but Pip ended up getting patch for that a few months ago. Will look at using easy_install, or stick with django_tables2 since the only feature I need at the moment is the datagrid.

Thanks,

-- 
Michel

Андрей Григорьев

unread,
Jul 17, 2013, 8:19:54 AM7/17/13
to revie...@googlegroups.com, chi...@chipx86.com
It now works with pip 1.3.
Reply all
Reply to author
Forward
0 new messages