
Since some days easy_install doesn't work correctly anymore. I get for example something similar. Any idea of what it could be? In general setuptools is working perfectly, only easy_install is not working anymore..
[andrea@precision ~]$ easy_install-2.7 --user python-graph-core Traceback (most recent call last): File "/home/andrea/.local/bin/easy_install-2.7", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2711, in <module> parse_requirements(__requires__), Environment() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: distribute==0.6.21

Please try to update your installation to the latest revision of Distribute. You currently have 0.6.21 and it seems that somehow it's in a broken state
$ easy_install-2.7 -U Distribute
(with sudo rights if needed)
On Thu, Nov 24, 2011 at 11:54 AM, Andrea Crotti andrea.crotti.0@gmail.com wrote:
Since some days easy_install doesn't work correctly anymore. I get for example something similar. Any idea of what it could be? In general setuptools is working perfectly, only easy_install is not working anymore..
[andrea@precision ~]$ easy_install-2.7 --user python-graph-core Traceback (most recent call last): File "/home/andrea/.local/bin/easy_install-2.7", line 5, in <module> from pkg_resources import load_entry_point File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2711, in
<module> parse_requirements(__requires__), Environment() File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 584, in resolve raise DistributionNotFound(req) pkg_resources.DistributionNotFound: distribute==0.6.21
Distutils-SIG maillist - Distutils-SIG@python.org http://mail.python.org/mailman/listinfo/distutils-sig

On Thu, Nov 24, 2011 at 12:44 PM, Tarek Ziadé ziade.tarek@gmail.com wrote:
Please try to update your installation to the latest revision of Distribute. You currently have 0.6.21 and it seems that somehow it's in a broken state
$ easy_install-2.7 -U Distribute
That should probably be a lower case d:
$ easy_install-2.7 -U distribute
(with sudo rights if needed)
Hanno

On 11/24/2011 11:44 AM, Tarek Ziadé wrote:
Please try to update your installation to the latest revision of Distribute. You currently have 0.6.21 and it seems that somehow it's in a broken state
$ easy_install-2.7 -U Distribute
(with sudo rights if needed)
Mm no it doesn't let me do it, returning the same error... I might have messed something maybe then, not sure what exactly. Can the easy_install.pth influence this?

On Fri, Nov 25, 2011 at 11:04 AM, Andrea Crotti andrea.crotti.0@gmail.com wrote: ..
Mm no it doesn't let me do it, returning the same error... I might have messed something maybe then, not sure what exactly. Can the easy_install.pth influence this?
I don't know, maybe it's related to the per-user environment but I am not sure.
What you can do to make sure you have a clean central install (after a backup of site-packages) is:
1/ remove any occurences of those in site-packages (egg dirs, code dirs)
- setuptools* - distribute* - pkg_resources*
2/ open easy_install.pth and remove any line starting with setutptools or distribute
3/ do a fresh install of Distribute (since that's the one you initially had)
$ wget http://python-distribute.org/distribute_setup.py $ sudo python distribute_setup.py
If you still have the issue, try to backup your user's local python dir, remove it and try again with the --user option
HTH Tarek
participants (3)
-
Andrea Crotti
-
Hanno Schlichting
-
Tarek Ziadé