** Description changed:
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)
+ 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.
-
- 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, e.g.
-
- >>> pkg_resources.require('Genshi')
- [Genshi 0.5.1 (/usr/share/pyshared)]
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:
--
pkg_resources.require() throws a DistributionNotFound exception if
python-setuptools is not installed
https://bugs.launchpad.net/bugs/563060
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs