bzr crashes when used by go mod: bzr: ERROR: exceptions.TypeError: readline() takes exactly 1 argument (2 given)

Bug #1862877 reported by Jan Semmelink on 2020-02-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Undecided
Unassigned

Bug Description

I was trying to run go get on a Centos 6.4 with Go 1.12.16 when bzr crashed and said I should file this report...

$ cat /etc/centos-release
CentOS release 6.4 (Final)

$ go version
go version go1.12.16 linux/amd64

$ go get
go: <email address hidden>: bzr branch --use-existing-dir https://launchpad.net/~niemeyer/gocheck/trunk . in /home/jans/go_workspace/pkg/mod/cache/vcs/f46ce2ae80d31f9b0a29099baa203e3b6d269dace4e5357a2cf74bd109e13339: exit status 4:
 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-358.el6.x86_64-x86_64-with-centos-6.4-Final)
 arguments: ['/usr/bin/bzr', 'branch', '--use-existing-dir', 'https://launchpad.net/~niemeyer/gocheck/trunk', '.']
 encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.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.
go: <email address hidden>: unrecognized import path "labix.org/v2/mgo" (https fetch: Get https://labix.org/v2/mgo?go-get=1: dial tcp 64.90.52.114:443: i/o timeout)
go: error loading module requirements
[jans@kwagga ms-vservices-ussd-router]$ make
rm -rf builds/`git describe --tags --abbrev=0 | sed 's/heads\///'`/
rm -rf dist/ms-vservices-ussd-router-`git describe --tags --abbrev=0 | sed 's/heads\///'`/
mkdir -p builds/`git describe --tags --abbrev=0 | sed 's/heads\///'`/libexec/
mkdir -p builds/`git describe --tags --abbrev=0 | sed 's/heads\///'`/bin/
mkdir -p builds/`git describe --tags --abbrev=0 | sed 's/heads\///'`/share/
mkdir -p dist/ms-vservices-ussd-router-`git describe --tags --abbrev=0 | sed 's/heads\///'`/libexec/
mkdir -p dist/ms-vservices-ussd-router-`git describe --tags --abbrev=0 | sed 's/heads\///'`/bin/
mkdir -p dist/ms-vservices-ussd-router-`git describe --tags --abbrev=0 | sed 's/heads\///'`/share/
export GOPRIVATE=bitbucket.org
go get ./ms-vservices-ussd-codes
go: <email address hidden>: bzr branch --use-existing-dir https://launchpad.net/~niemeyer/gocheck/trunk . in /home/jans/go_workspace/pkg/mod/cache/vcs/f46ce2ae80d31f9b0a29099baa203e3b6d269dace4e5357a2cf74bd109e13339: exit status 4:
 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-358.el6.x86_64-x86_64-with-centos-6.4-Final)
 arguments: ['/usr/bin/bzr', 'branch', '--use-existing-dir', 'https://launchpad.net/~niemeyer/gocheck/trunk', '.']
 encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.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.
go: <email address hidden>: bzr branch --use-existing-dir https://launchpad.net/mgo/v2 . in /home/jans/go_workspace/pkg/mod/cache/vcs/ca61c737a32b1e09a0919e15375f9c2b6aa09860cc097f1333b3c3d29e040ea8: exit status 4:
 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-358.el6.x86_64-x86_64-with-centos-6.4-Final)
 arguments: ['/usr/bin/bzr', 'branch', '--use-existing-dir', 'https://launchpad.net/mgo/v2', '.']
 encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.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.
go: error loading module requirements
make: *** [get] Error 1

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

Other bug subscribers