[Bug 563060] Re: pkg_resources.require() throws a DistributionNotFound exception if python-setuptools is not installed
Bug Watch Updater
563060 at bugs.launchpad.net
Fri May 24 23:40:28 UTC 2013
** Changed in: zope.interface (Debian)
Status: New => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to distribute in Ubuntu.
https://bugs.launchpad.net/bugs/563060
Title:
pkg_resources.require() throws a DistributionNotFound exception if
python-setuptools is not installed
Status in tools to distribute python packages:
Invalid
Status in “distribute” package in Ubuntu:
Invalid
Status in “zope.interface” package in Ubuntu:
Fix Released
Status in “zope.interface” package in Debian:
Fix Released
Bug description:
Many packages now depend only on python-pkg-resources and not python-
setuptools, so the latter may be removed if it was automatically
installed. However, in that case the whole mechanism stops working:
$ python
>>> import pkg_resources
>>> pkg_resources.require('zope.interface')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: distribute
This happens because zope.interface has setuptools in it's *.egg-
info/requires.txt, like many other packages, but in reality only needs
pkg_resources, and that's what is installed. Distribute is not needed
at all, so it is a bug that this breaks in such a way.
ProblemType: Crash
DistroRelease: Ubuntu 10.04
Package: python-pastescript 1.7.3-5ubuntu1
ProcVersionSignature: Ubuntu 2.6.32-20.29-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-20-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Wed Apr 14 13:12:48 2010
ExecutablePath: /usr/bin/paster
InterpreterPath: /usr/bin/python2.6
PackageArchitecture: all
ProcCmdline: python /usr/bin/paster serve --user=schooltool --group=schooltool --daemon --pid-file=/var/run/schooltool/schooltool-2009.pid --log-file=/var/log/schooltool/paste.log --quiet /etc/schooltool/schooltool-2009/paste.ini start
ProcEnviron: Error: [Errno 13] Permission denied: '/proc/32252/environ'
PythonArgs: ['/usr/bin/paster', 'serve', '--user=schooltool', '--group=schooltool', '--daemon', '--pid-file=/var/run/schooltool/schooltool-2009.pid', '--log-file=/var/log/schooltool/paste.log', '--quiet', '/etc/schooltool/schooltool-2009/paste.ini', 'start']
SourcePackage: pastescript
Title: paster crashed with DistributionNotFound in resolve()
UserGroups:
To manage notifications about this bug go to:
https://bugs.launchpad.net/distribute/+bug/563060/+subscriptions
More information about the foundations-bugs
mailing list