bzr crashed with TypeError in readheaders(): readline() takes exactly 1 argument (2 given)

Bug #696492 reported by Dooitze de Jong on 2011-01-02
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr (Ubuntu)

Bug Description

Binary package hint: bzr

I can't download a branch
Because it gives an error and quit

bzr: ERROR: exceptions.TypeError: readline() takes exactly 1 argument (2 given)

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 917, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1117, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 691, in run_argv_aliases
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 710, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 1185, in run
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 806, in open_tree_or_branch
    bzrdir =
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 716, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 128, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/", line 1638, in get_transport
    return _get_transport(base, possible_transports)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/", line 1582, in _get_transport
    base = directories.dereference(base)
  File "/usr/lib/python2.7/dist-packages/bzrlib/", line 58, in dereference
    return service().look_up(name, url)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/", line 69, in look_up
    return self._resolve(url)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/", line 124, in _resolve
    result = resolve.submit(service)
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/", line 272, in submit
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/", line 195, in send_request
    result = method(*method_params)
  File "/usr/lib/python2.7/", line 1224, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/", line 1575, in __request
  File "/usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad/", line 74, in request
    response =
  File "/usr/lib/python2.7/", line 392, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/", line 410, in _open
    '_open', req)
  File "/usr/lib/python2.7/", line 370, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/", line 757, in https_open
    return self.do_open(HTTPSConnection, request)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/", line 659, in do_open
    response = connection.getresponse()
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/", line 263, in getresponse
    self._response = httplib.HTTPConnection.getresponse(self)
  File "/usr/lib/python2.7/", line 1027, in getresponse
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/http/", line 184, in begin
  File "/usr/lib/python2.7/", line 439, in begin
    self.msg = HTTPMessage(self.fp, 0)
  File "/usr/lib/python2.7/", line 25, in __init__
    rfc822.Message.__init__(self, fp, seekable)
  File "/usr/lib/python2.7/", line 108, in __init__
  File "/usr/lib/python2.7/", line 280, in readheaders
    line = self.fp.readline(_MAXLINE + 1)
TypeError: readline() takes exactly 1 argument (2 given)

You can report this problem to Bazaar's developers by running
    apport-bug /var/crash/bzr.0.2011-01-02T13:50.crash
if a bug-reporting window does not automatically appear.

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.0~beta3-1build1
ProcVersionSignature: Ubuntu 2.6.37-11.25-generic 2.6.37-rc7
Uname: Linux 2.6.37-11-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
BzrDebugFlags: set()
BzrVersion: 2.3b3
CommandLine: ['/usr/bin/bzr', 'branch', 'lp:indicator-cpufreq']
CrashDb: bzr
Date: Sun Jan 2 14:50:34 2011
ExecutablePath: /usr/bin/bzr
FileSystemEncoding: UTF-8
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20101229)
InterpreterPath: /usr/bin/python2.7
Locale: nl_NL.UTF-8
Platform: Linux-2.6.37-11-generic-x86_64-with-Ubuntu-11.04-natty
ProcCmdline: /usr/bin/python /usr/bin/bzr branch lp:indicator-cpufreq
 PATH=(custom, no user)
PythonVersion: 2.7.1
SourcePackage: bzr
Title: bzr crashed with TypeError in readheaders(): readline() takes exactly 1 argument (2 given)
UserEncoding: UTF-8

Dooitze de Jong (dooitze) wrote :
visibility: private → public
Hans Joachim Desserud (hjd) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 693880, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find.

Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bzr (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers