exceptions.TypeError

Bug #1780375 reported by ligang on 2018-07-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Undecided
Unassigned

Bug Description

# cd .; bzr branch https://launchpad.net/mgo/v2 /home/i-ligang/go/src/labix.org/v2/mgo
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 959, in open_tree_or_branch
    return bzrdir._get_tree_branch()
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 944, in _get_tree_branch
    branch = self.open_branch()
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 1748, in open_branch
    return format.open(self, _found=True, ignore_fallbacks=ignore_fallbacks)
  File "/usr/lib64/python2.6/site-packages/bzrlib/branch.py", line 2040, in open
    location, possible_transports=possible_transports)
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 843, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 873, in open_from_transport
    redirected)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/__init__.py", line 1644, in do_catching_redirections
    return action(transport)
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 860, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 1820, in find_format
    return format.probe_transport(transport)
  File "/usr/lib64/python2.6/site-packages/bzrlib/bzrdir.py", line 3151, in probe_transport
    server_version = medium.protocol_version()
  File "/usr/lib64/python2.6/site-packages/bzrlib/smart/medium.py", line 628, in protocol_version
    client_protocol.query_version()
  File "/usr/lib64/python2.6/site-packages/bzrlib/smart/protocol.py", line 785, in query_version
    self.call('hello')
  File "/usr/lib64/python2.6/site-packages/bzrlib/smart/protocol.py", line 625, in call
    self._request.finished_writing()
  File "/usr/lib64/python2.6/site-packages/bzrlib/smart/medium.py", line 441, in finished_writing
    self._finished_writing()
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/__init__.py", line 646, in _finished_writing
    data = self._medium.send_http_smart_request(self._buffer)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/__init__.py", line 615, in send_http_smart_request
    code, body_filelike = t._post(bytes)
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/_urllib.py", line 137, in _post
    accepted_errors=[200, 403]))
  File "/usr/lib64/python2.6/site-packages/bzrlib/transport/http/_urllib.py", line 79, in _perform
    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 684, in http_open
    return self.do_open(HTTPConnection, 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-696.1.1.el6.x86_64-x86_64-with-centos-6.2-Final)
arguments: ['/usr/bin/bzr', 'branch', 'https://launchpad.net/mgo/v2', '/home/i-ligang/go/src/labix.org/v2/mgo']
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.
package labix.org/v2/mgo: exit status 4

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

Other bug subscribers