pkg_resources.require() throws a DistributionNotFound exception if python-setuptools is not installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
distribute |
Invalid
|
Undecided
|
Unassigned | ||
distribute (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
zope.interface (Debian) |
Fix Released
|
Unknown
|
|||
zope.interface (Ubuntu) |
Fix Released
|
Undecided
|
Matthias Klose | ||
Bug Description
Many packages now depend only on python-
$ python
>>> import pkg_resources
>>> pkg_resources.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pkg_resources.py", line 648, in require
needed = self.resolve(
File "pkg_resources.py", line 546, in resolve
raise DistributionNot
pkg_resources.
This happens because zope.interface has setuptools in it's *.egg-info/
ProblemType: Crash
DistroRelease: Ubuntu 10.04
Package: python-pastescript 1.7.3-5ubuntu1
ProcVersionSign
Uname: Linux 2.6.32-20-generic i686
NonfreeKernelMo
Architecture: i386
Date: Wed Apr 14 13:12:48 2010
ExecutablePath: /usr/bin/paster
InterpreterPath: /usr/bin/python2.6
PackageArchitec
ProcCmdline: python /usr/bin/paster serve --user=schooltool --group=schooltool --daemon --pid-file=
ProcEnviron: Error: [Errno 13] Permission denied: '/proc/
PythonArgs: ['/usr/bin/paster', 'serve', '--user=
SourcePackage: pastescript
Title: paster crashed with DistributionNot
UserGroups:
tags: | removed: need-duplicate-check |
description: | updated |
affects: | zope.interface (Ubuntu) → distribute (Ubuntu) |
Changed in distribute (Ubuntu): | |
status: | Fix Released → New |
Changed in zope.interface (Ubuntu): | |
status: | New → Fix Released |
Changed in distribute: | |
status: | New → Invalid |
Changed in zope.interface (Debian): | |
status: | Unknown → New |
Changed in zope.interface (Debian): | |
status: | New → Fix Released |
I'll fix that for zope.interface
> As far as I can see this bug only occurs when require()'ing a python package using python-central. python-support using package is found successfully
why would that make a difference?