On Tue, Nov 25, 2014 at 02:54:03PM -0600, Skip Montanaro wrote:
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
What's in the #! line of /opt/local/bin/pylint?
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
But does your Python look in /opt/local/lib/python2.7/site-packages?
What does sys.path look like if you run the Python interpreter named in the #! line of the pylint script?
The whole distutils/setuptools/pkg_resources stuff has always eluded my understanding. Can someone give me some suggestions about what's missing?
Marius Gedminas