python-setuptools: import setuptools returns ValueError: ("Missing 'Version:' ...)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-setuptools |
New
|
Undecided
|
Unassigned | ||
distribute (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I upgraded my distribution and i got an error when trying to use setuptools:
There is the description of error below:
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", setuptools [unknown version] (/usr/lib/
Possible solution:
I solved this error by myself with these conditions / steps:
* wget http://
* sudo python distribute_
and it works now.. Please fix this error on ubuntu packages..
ProblemType: Bug
Architecture: amd64
Date: Tue Dec 1 10:31:17 2009
DistroRelease: Ubuntu 10.04
NonfreeKernelMo
Package: python-setuptools 0.6.8-1ubuntu1
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=tr_TR.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: distribute
Uname: Linux 2.6.32-5-generic x86_64
It already fails on importing pkg_resources:
>>> import pkg_resources python2. 6/dist- packages/ pkg_resources. py", line 2656, in <module> activation_ listener( lambda dist: dist.activate()) python2. 6/dist- packages/ pkg_resources. py", line 647, in subscribe python2. 6/dist- packages/ pkg_resources. py", line 2656, in <lambda> activation_ listener( lambda dist: dist.activate()) python2. 6/dist- packages/ pkg_resources. py", line 2162, in activate insert_ on(path) python2. 6/dist- packages/ pkg_resources. py", line 2256, in insert_on python2. 6/dist- packages/ pkg_resources. py", line 2120, in version python2. 6/dist- packages) )
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/
add_
File "/usr/lib/
callback(dist)
File "/usr/lib/
add_
File "/usr/lib/
self.
File "/usr/lib/
if '0.7' in self.version:
File "/usr/lib/
"Missing 'Version:' header and/or PKG-INFO file", self
ValueError: ("Missing 'Version:' header and/or PKG-INFO file", setuptools [unknown version] (/usr/lib/
ii python- pkg-resources 0.6.8-1ubuntu1 Package Discovery and Resource Access using