Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 347555 - dev-vcs/bzr-2.2.2 incompatible with Python 2.7
Summary: dev-vcs/bzr-2.2.2 incompatible with Python 2.7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: bazaar+obsolete
URL: https://bugs.launchpad.net/bzr/+bug/6...
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.7
  Show dependency tree
 
Reported: 2010-12-02 13:11 UTC by Alessandro Guido
Modified: 2010-12-20 11:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Guido 2010-12-02 13:11:57 UTC
~/Desktop> bzr clone lp:txprotobuf
bzr: ERROR: exceptions.AttributeError: addinfourl instance has no attribute 'getheader'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/builtins.py", line 1209, in run
    from_location)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 1032, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.7/site-packages/bzrlib/bzrdir.py", line 910, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/usr/lib/python2.7/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/transport/__init__.py", line 1569, in get_transport
    base = directories.dereference(base)
  File "/usr/lib/python2.7/site-packages/bzrlib/directory_service.py", line 58, in dereference
    return service().look_up(name, url)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/launchpad/lp_directory.py", line 59, in look_up
    return self._resolve(url)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/launchpad/lp_directory.py", line 69, in _resolve
    result = resolve.submit(service)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 272, in submit
    self._authenticated)
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 195, in send_request
    result = method(*method_params)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1570, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 78, in request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1449, in parse_response
    if response.getheader("Content-Encoding", "") == "gzip":
AttributeError: addinfourl instance has no attribute 'getheader'

bzr 2.2.2 on python 2.7.1 (Linux-2.6.37-rc4-i686-Intel-R-_Pentium-R-_M_processor_1.86GHz-with-gentoo-2.0.1)
arguments: ['/usr/bin/bzr', 'clone', 'lp:txprotobuf']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_IT.utf8'
plugins:
  bash_completion      /usr/lib/python2.7/site-packages/bzrlib/plugins/bash_completion [2.2.2]
  launchpad            /usr/lib/python2.7/site-packages/bzrlib/plugins/launchpad [2.2.2]
  netrc_credential_store /usr/lib/python2.7/site-packages/bzrlib/plugins/netrc_credential_store [2.2.2]
  news_merge           /usr/lib/python2.7/site-packages/bzrlib/plugins/news_merge [2.2.2]

*** 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://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.



Reproducible: Always

Steps to Reproduce:
Comment 1 Alessandro Guido 2010-12-02 13:13:02 UTC
Please, see the upstream bug in the URL field of this report. Thanks
Comment 2 Christian Faulhammer (RETIRED) gentoo-dev 2010-12-02 16:43:03 UTC
Python has http://psf.upfronthosting.co.za/roundup/tracker/issue8194, which describes it as a regression in Python.  So we either Python 2.7 to revert that incompatible API change or fix Bazaar with https://i55640973.restricted.launchpadlibrarian.net/55640973/0ede2650-c073-11df-a559-001e0bc3957e.txt?token=379c3d74b041e159133b74d97e5c5915
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-12-05 20:20:47 UTC
Please apply that fix/workaround in dev-vcs/bzr, until Python upstream developers decide what to do.
Comment 4 Christian Faulhammer (RETIRED) gentoo-dev 2010-12-07 07:55:30 UTC
(In reply to comment #3)
> Please apply that fix/workaround in dev-vcs/bzr, until Python upstream
> developers decide what to do.

 Could you nag them a bit please so they decide faster?

Bazaar has been fixed.  Thanks for the report, Alessandro.
Comment 5 Martin von Gagern 2010-12-15 06:55:10 UTC
(In reply to comment #4)
> Bazaar has been fixed.

The fix affects runtime behaviour, yet there was no revision bump. As a consequence, people might miss the fact that they should remerge bzr.
Comment 6 Peter Volkov (RETIRED) gentoo-dev 2010-12-20 11:50:44 UTC
Thank you Martin. I've bumped revision.