Comment 4 for bug 1487968

Revision history for this message
heng647 (l-bh) wrote : Re:[Bug 1487968] Re: exceptions.TypeError: readline() takes exactly 1 argument (2 given)

the reason is when i copied the rsa string was make some unexpected mistake.so,the bug is not a bug,just my fault.

At 2015-08-27 15:20:29, "Guillaume" <email address hidden> wrote:
>Can you give the solution, I have not find ?
>
>--
>You received this bug notification because you are subscribed to the bug
>report.
>https://bugs.launchpad.net/bugs/1487968
>
>Title:
> exceptions.TypeError: readline() takes exactly 1 argument (2 given)
>
>Status in Bazaar:
> Invalid
>
>Bug description:
> bzr branch lp:~percona-dev/perconatools/tpcc-mysql
> 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 1012, 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 404, in begin
> version, status, reason = self._read_status()
> File "/usr/lib64/python2.6/httplib.py", line 360, 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-431.el6.x86_64-x86_64-with-centos-6.5-Final)
> arguments: ['/usr/bin/bzr', 'branch', 'lp:~percona-dev/perconatools/tpcc-mysql']
> 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.
>
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------
> python
> Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> exit()
> -----------------------------------------------------------------------------------------------------------------------------------------------------
> cat /etc/issue
> CentOS release 6.5 (Final)
> Kernel \r on an \m
>
>To manage notifications about this bug go to:
>https://bugs.launchpad.net/bzr/+bug/1487968/+subscriptions