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

Bug #1827087 reported by Becky Cartine on 2019-04-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Undecided
Unassigned

Bug Description

When I run this command on Centos Linux server:
$ bzr branch lp:inkscape

I get this error:

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

Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 853, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 1055, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 661, in run_argv_aliases
    return self.run_direct(**all_cmd_args)
  File "/usr/lib64/python2.6/site-packages/bzrlib/commands.py", line 665, in run_direct
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/cleanup.py", line 122, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/cleanup.py", line 156, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/builtins.py", line 1194, in run
    from_location)
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 958, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 842, in open
    t = get_transport(base, possible_transports=possible_transports)
  File "/usr/lib64/python2.6/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/__init__.py", line 1555, in get_transport
    base = directories.dereference(base)
  File "/usr/lib64/python2.6/site-packages/bzrlib/directory_service.py", line 58, in dereference
    return service().look_up(name, url)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/launchpad/lp_directory.py", line 60, in look_up
    return self._resolve(url)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/launchpad/lp_directory.py", line 70, in _resolve
    result = resolve.submit(service)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 275, in submit
    self._authenticated)
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 198, in send_request
    result = method(*method_params)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib64/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib64/python2.6/site-packages/bzrlib/plugins/launchpad/lp_registration.py", line 74, in request
    response = self._opener.open(request)
  File "/usr/lib64/python2.6/urllib2.py", line 391, in open
    response = self._open(req, data)
  File "/usr/lib64/python2.6/urllib2.py", line 409, in _open
    '_open', req)
  File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 722, in https_open
    return self.do_open(HTTPSConnection, request)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 624, in do_open
    response = connection.getresponse()
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 243, in getresponse
    self._response = httplib.HTTPConnection.getresponse(self)
  File "/usr/lib64/python2.6/httplib.py", line 1049, in getresponse
    response.begin()
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/_urllib2_wrappers.py", line 164, in begin
    httplib.HTTPResponse.begin(self)
  File "/usr/lib64/python2.6/httplib.py", line 433, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python2.6/httplib.py", line 389, in _read_status
    line = self.fp.readline(_MAXLINE + 1)
TypeError: readline() takes exactly 1 argument (2 given)

bzr 2.1.1 on python 2.6.6 (Linux-2.6.32-754.10.1.el6.x86_64-x86_64-with-centos-6.10-Final)
arguments: ['/usr/bin/bzr', 'branch', 'lp:inkscape']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'
plugins:
  launchpad /usr/lib64/python2.6/site-packages/bzrlib/plugins/launchpad [2.1.1]
  netrc_credential_store /usr/lib64/python2.6/site-packages/bzrlib/plugins/netrc_credential_store [2.1.1]
  news_merge /usr/lib64/python2.6/site-packages/bzrlib/plugins/news_merge [2.1.1]

*** 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.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers