Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48823

Problems with pkg_resources

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <skip.montanaro@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.007
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'problem?': 0.07; 'source.': 0.07; 'setup.py': 0.09; 'python': 0.11; '2.7.2': 0.16; 'from:addr:pobox.com': 0.16; 'from:addr:skip': 0.16; 'manner,': 0.16; 'specifying': 0.16; 'subject:Problems': 0.16; 'sender:addr:gmail.com': 0.17; 'trying': 0.19; 'hacking': 0.19; '>>>': 0.22; 'import': 0.22; 'install': 0.23; 'skip': 0.24; "i've": 0.25; 'skip:" 30': 0.26; 'installed': 0.27; 'skip:p 30': 0.29; 'raise': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'file': 0.32; '(most': 0.33; 'skip:d 20': 0.34; "i'd": 0.34; 'subject:with': 0.35; "can't": 0.35; 'usual': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'skip:" 50': 0.36; 'needed': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'how': 0.40; 'more': 0.64; 'skip:w 30': 0.69; "everything's": 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=Q07jbaTCcDhPc0Df55bdbo1o7d97MjMrabJg2D47gjE=; b=1ACzJltRoTwUWPlylvRhISTOMEUzUrRI7QMxnVuPksk7dtHxKBlTzMV9xo9qhOiM1v j6MkQlSM5pZB+c7ZZyh1LlHo7naBAqxPr+SbvBte4++B8DZM3vbs+V12orHewj7XbjrF HuHueNOYrHzaQjiHOHG0K7YkLvdcmJoJ/P7K/astCQwj91VHN68lmthLVFCLJW3K5vhX cRmlT0VleCxI2+jxYZhgYGSg05niwg/M9k9JjenF/0QvvueELb4+Rq/7o54g9sxJ0e/d rSJyZ4BQ1r4ELmZWgKRahIYmbzvrmYUqRN/D3LYjeqCYBokYJw8KWGx24cTykgcXw9yK qfwA==
MIME-Version 1.0
X-Received by 10.50.32.70 with SMTP id g6mr539505igi.2.1371754703370; Thu, 20 Jun 2013 11:58:23 -0700 (PDT)
Sender skip.montanaro@gmail.com
Date Thu, 20 Jun 2013 13:58:23 -0500
X-Google-Sender-Auth 1mTQ5TXeCo-T8aYd-aoleUSNiTU
Subject Problems with pkg_resources
From Skip Montanaro <skip@pobox.com>
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3638.1371754713.3114.python-list@python.org> (permalink)
Lines 40
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371754713 news.xs4all.nl 15989 [2001:888:2000:d::a6]:37744
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48823

Show key headers only | View raw


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 setup.py install --user

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

% 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__
'/home/skipm/.local/lib/python2.7/site-packages/astroid-0.24.3-py2.7.egg/astroid/__init__.pyc'

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/pkg_resources.py", line
2709, in <module>
    working_set.require(__requires__)
  File "/opt/TWWfsw/distribute06/lib/python27/pkg_resources.py", line
686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/opt/TWWfsw/distribute06/lib/python27/pkg_resources.py", 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.

Thx,

Skip

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Problems with pkg_resources Skip Montanaro <skip@pobox.com> - 2013-06-20 13:58 -0500

csiph-web