Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Problems with pkg_resources

Thread Tools

Problems with pkg_resources

Skip Montanaro
Posts: n/a
I'm trying to get setup to work on pylint source. I've installed
pylint, logilab-common and astroid in the usual manner, specifying
--user to get them into my private space:

python install --user

If I attempt to import astroid from a Python prompt, everything's

% PYTHONPATH=/home/skipm/.local/lib/python2.7/site-packages python
Python 2.7.2 (default, Oct 17 2012, 03:11:33)
[GCC 4.4.6 [TWW]] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import astroid
>>> astroid.__file__


but pylint can't find it:

% PYTHONPATH=/home/skipm/3rdParty/astroid pylint Traceback (most
recent call last):
File "/home/skipm/.local/bin/pylint", line 6, in <module>
from pkg_resources import load_entry_point
File "/opt/TWWfsw/distribute06/lib/python27/", line
2709, in <module>
File "/opt/TWWfsw/distribute06/lib/python27/", line
686, in require
needed = self.resolve(parse_requirements(requirements))
File "/opt/TWWfsw/distribute06/lib/python27/", line
584, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: logilab-astroid>=0.24.3

How do I work around this problem? I'd rather be hacking on pylint
than struggling with distutils.


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with printing a bit pattern with printf and %x C Programming 9 04-19-2013 12:14 PM
Problems with sockets and threads Dexter Deejay Python 9 04-11-2013 03:39 PM
Re: print to screen and file with one print statement Python 0 04-09-2013 01:31 PM
USBLock : lock/unlock your computer with a USB key Sven Python 0 04-08-2013 03:21 PM
where is pkg_resources (setuptools) looking for entry_points.txt Python 1 10-01-2007 10:48 PM