[python3-setuptools] AttributeError: 'HTTPMessage' object has no attribute 'getheaders'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
distribute (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
installing python3 modules that need downloading does not work due to use of a function not available in python3
[Development Fix]
upstream now uses a method available in all python versions, that fix applies to oneiric. (https:/
Note the fix does not reintroduce issue 196 as the method only returns one entry of the header even if there are multiple.
(https:/
[Stable Fix]
See comment #2
https:/
[Testcase]
sudo apt-get install python3-setuptools
mkdir -p /tmp/inst/
PYTHONPATH=
#or any other packages that is not installed
expected result: successful installation in the prefix
real result: traceback see original report
[Regression Potential]
<fill me in with a discussion of likelihood and potential severity of regressions and how users could get inadvertently affected. >
original report:
$ sudo easy_install3 pyzmq
Searching for pyzmq
Reading http://
Reading http://
Reading http://
Best match: pyzmq 2.1.11
Downloading https:/
Traceback (most recent call last):
File "/usr/bin/
load_
File "/usr/lib/
with_
File "/usr/lib/
return f()
File "/usr/lib/
distclass=
File "/usr/lib/
dist.
File "/usr/lib/
self.
File "/usr/lib/
cmd_obj.run()
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
dist = find(requirement)
File "/usr/lib/
location=
File "/usr/lib/
found = self._download_
File "/usr/lib/
return self._attempt_
File "/usr/lib/
headers = self._download_
File "/usr/lib/
content_length = headers.
AttributeError: 'HTTPMessage' object has no attribute 'getheaders'
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: python3-setuptools 0.6.16-1
ProcVersionSign
Uname: Linux 3.0.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Tue Jan 3 00:33:54 2012
InstallationMedia: Xubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101008.1)
PackageArchitec
ProcEnviron:
PATH=(custom, no user)
LANG=ru_RU.UTF-8
SHELL=/bin/bash
SourcePackage: distribute
UpgradeStatus: Upgraded to oneiric on 2011-08-10 (145 days ago)
Related branches
- Ubuntu branches: Pending requested
-
Diff: 27 lines (+8/-1)2 files modifieddebian/changelog (+7/-0)
setuptools/package_index.py (+1/-1)
description: | updated |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
thanks for the report. pypi.python. org/pypi/ distribute# id6
this issue was fixed in distribute 6.19 released in the current development release precise:
http://
attached patch for the oneiric package should fix it.