I had a similar issue and the problem was that somehow I had two setuptools versions installed... and the older version was overwriting the new...
Hope that helps -- Joaquin Sargiotto El nov 25, 2014 5:54 p.m., "Skip Montanaro" <skip.montan...@gmail.com> escribió: > We have a rather peculiar software distribution system here at work. I > downloaded, packaged, and installed astroid, logilab-common, and pylint. > When I run pylint now (1.1.0 worked just fine), I get this error: > > Traceback (most recent call last): > File "/opt/local/bin/pylint", line 6, in <module> > from pkg_resources import load_entry_point > File "/home/skipm/.local/lib/python2.7/site-packages/pkg_resources.py", > line 2805, in <module> > working_set.require(__requires__) > File "/home/skipm/.local/lib/python2.7/site-packages/pkg_resources.py", > line 696, in require > needed = self.resolve(parse_requirements(requirements)) > File "/home/skipm/.local/lib/python2.7/site-packages/pkg_resources.py", > line 594, in resolve > raise DistributionNotFound(req) > pkg_resources.DistributionNotFound: pylint==1.4.0 > > I see the (I think) necessary pylint bits in our site-packages directory: > > % ls -ld /opt/local/lib/python2.7/site-packages/pylint* > drwxr-xr-x 6 root root 4096 Nov 25 14:43 > /opt/local/lib/python2.7/site-packages/pylint > drwxr-xr-x 2 root root 4096 Nov 25 14:43 > /opt/local/lib/python2.7/site-packages/pylint-1.4.0-py2.7.egg-info > > and they seem to have reasonable contents: > > % ls -lL /opt/local/lib/python2.7/site-packages/pylint > total 324 > -rw-rw-r-- 1 root root 1458 Nov 15 12:18 __init__.py > -rw-rw-r-- 1 root root 1838 Nov 25 14:42 __init__.pyc > -rw-rw-r-- 1 root root 56 Nov 15 12:18 __main__.py > -rw-rw-r-- 1 root root 226 Nov 25 14:42 __main__.pyc > -rw-rw-r-- 1 root root 2925 Nov 23 03:03 __pkginfo__.py > -rw-rw-r-- 1 root root 2439 Nov 25 14:42 __pkginfo__.pyc > drwxr-xr-x 2 root root 4096 Nov 25 14:43 checkers > -rw-rw-r-- 1 root root 5782 Nov 21 05:23 config.py > -rw-rw-r-- 1 root root 5407 Nov 25 14:42 config.pyc > -rw-rw-r-- 1 root root 6445 Nov 15 12:18 epylint.py > -rw-rw-r-- 1 root root 5848 Nov 25 14:42 epylint.pyc > -rw-rw-r-- 1 root root 19401 Nov 21 05:23 gui.py > -rw-rw-r-- 1 root root 18419 Nov 25 14:42 gui.pyc > -rw-rw-r-- 1 root root 2828 Nov 15 12:18 interfaces.py > -rw-rw-r-- 1 root root 4143 Nov 25 14:42 interfaces.pyc > -rw-rw-r-- 1 root root 57390 Nov 23 02:46 lint.py > -rw-rw-r-- 1 root root 49003 Nov 25 14:42 lint.pyc > drwxr-xr-x 2 root root 4096 Nov 25 14:43 pyreverse > drwxr-xr-x 2 root root 4096 Nov 25 14:43 reporters > drwxr-xr-x 7 root root 4096 Nov 25 14:43 test > -rw-rw-r-- 1 root root 13371 Nov 21 05:23 testutils.py > -rw-rw-r-- 1 root root 36111 Nov 21 05:23 utils.py > -rw-rw-r-- 1 root root 34047 Nov 25 14:42 utils.pyc > blade% ls -lL > /opt/local/lib/python2.7/site-packages/pylint-1.4.0-py2.7.egg-info/ > total 44 > -rw-rw-r-- 1 root root 3227 Nov 25 14:42 PKG-INFO > -rw-rw-r-- 1 root root 22242 Nov 25 14:42 SOURCES.txt > -rw-rw-r-- 1 root root 1 Nov 25 14:42 dependency_links.txt > -rw-rw-r-- 1 root root 172 Nov 25 14:42 entry_points.txt > -rw-rw-r-- 1 root root 45 Nov 25 14:42 requires.txt > -rw-rw-r-- 1 root root 7 Nov 25 14:42 top_level.txt > > The whole distutils/setuptools/pkg_resources stuff has always eluded my > understanding. Can someone give me some suggestions about what's missing? > > Thanks, > > Skip Montanaro > > > _______________________________________________ > code-quality mailing list > code-quality@python.org > https://mail.python.org/mailman/listinfo/code-quality > >
_______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality