XMLRPCTransport is incompatible with python 2.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
High
|
Toshio Kuratomi | ||
Gentoo Linux |
Fix Released
|
Medium
|
Bug Description
1) output
2) bzr.log
1) 20100731_191050 stellarium@
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return the_callable(*args, **kwargs)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
return self._operation
File "/home/
self.cleanups, self.func, *args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
branch_
File "/home/
bzrdir = klass.open(
File "/home/
t = get_transport(base, possible_
File "/home/
return obj(*args, **kwargs)
File "/home/
base = directories.
File "/home/
return service(
File "/home/
return self._resolve(url)
File "/home/
result = resolve.
File "/home/
self.
File "/home/
result = method(
File "/home/
return self.__
File "/home/
verbose=
File "/home/
return self.parse_
File "/home/
if response.
AttributeError: addinfourl instance has no attribute 'getheader'
bzr 2.2b4 on python 2.7.0 (Linux-
arguments: ['/home/
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
bash_completion /home/stellariu
launchpad /home/stellariu
netrc_
news_merge /home/stellariu
*** Bazaar has encountered an internal error. This probably indicates a
bug in Bazaar. You can help us fix it by filing a bug report at
https:/
including this traceback and a description of the problem.
2) ~/bzr.log :
Sat 2010-07-31 19:12:43 +0200
0.034 bazaar version: 2.2b4
0.034 bzr arguments: [u'checkout', u'lp:stellarium', u'source']
0.037 looking for plugins in /home/stellariu
0.037 looking for plugins in /home/stellariu
0.044 looking for plugins in /home/stellariu
0.044 Plugin name netrc_credentia
0.044 Plugin name news_merge already loaded
0.044 Plugin name bash_completion already loaded
0.044 Plugin name launchpad already loaded
0.045 encoding stdout as sys.stdout encoding 'UTF-8'
0.252 Traceback (most recent call last):
File "/home/
return the_callable(*args, **kwargs)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
return self._operation
File "/home/
self.cleanups, self.func, *args, **kwargs)
File "/home/
result = func(*args, **kwargs)
File "/home/
branch_
File "/home/
bzrdir = klass.open(
File "/home/
t = get_transport(base, possible_
File "/home/
return obj(*args, **kwargs)
File "/home/
base = directories.
File "/home/
return service(
File "/home/
return self._resolve(url)
File "/home/
result = resolve.
File "/home/
self.
File "/home/
result = method(
File "/home/
return self.__
File "/home/
verbose=
File "/home/
return self.parse_
File "/home/
if response.
AttributeError: addinfourl instance has no attribute 'getheader'
0.253 couldn't find apport bug-reporting library: No module named apport
0.261 Transferred: 0kB (0.0kB/s r:0kB w:0kB)
0.261 return code 4
Related branches
- Martin Pool: Approve
-
Diff: 53 lines (+24/-1)2 files modifiedNEWS (+3/-0)
bzrlib/transport/http/_urllib2_wrappers.py (+21/-1)
tags: | added: python2.7 |
Changed in bzr: | |
status: | Confirmed → In Progress |
Changed in bzr: | |
assignee: | nobody → Toshio Kuratomi (toshio) |
milestone: | none → 2.3b2 |
status: | In Progress → Fix Released |
Changed in gentoo: | |
status: | Unknown → Fix Released |
tags: |
added: python27 removed: python2.7 |
Changed in gentoo: | |
importance: | Unknown → Medium |
Python 2.7 changed some of the expectations about what xmlrpclib needs from a custom transport implementation. We wrote a custom one because the built-in one doesn't support http proxies. However, we need to update it to now provide the extra facilities. (xmlrpclib now tries to support both Keep-Alive and Content-Encoding: gzip, though should that actually be Transfer-Encoding?)