[Bug 693880] Re: _ReportingFileSocket.readline lacks size argument

Loïc Minier lool at dooz.org
Mon Jan 3 17:46:02 UTC 2011


** Changed in: bzr (Ubuntu Natty)
     Assignee: (unassigned) => Loïc Minier (lool)

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.
https://bugs.launchpad.net/bugs/693880

Title:
  _ReportingFileSocket.readline lacks size argument

Status in Bazaar Version Control System:
  Fix Released
Status in Bazaar 2.2 series:
  Fix Released
Status in “bzr” package in Ubuntu:
  Fix Released
Status in “bzr” source package in Natty:
  Fix Released
Status in “bzr” package in Debian:
  New

Bug description:
  gwenhwyvar:~/launchpad/lp-branches% BZR_PDB=1 bzr branch --no-tree lp:~jelmer/launchpad/buildd-secret-tokens
bzr: failed to report crash using apport:
     OSError(17, 'File exists')
bzr: ERROR: exceptions.TypeError: readline() takes exactly 1 argument (2 given)

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

bzr 2.3.0dev5 on python 2.7.1 (Linux-2.6.37-10-generic-x86_64-with-Ubuntu-11.04-natty)
arguments: ['/usr/bin/bzr', 'branch', '--no-tree', 'lp:~jelmer/launchpad/buildd-secret-tokens']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_IE.utf8'
plugins:
  bash_completion      /usr/lib/python2.7/dist-packages/bzrlib/plugins/bash_completion [2.3.0dev5]
  bisect               /home/jelmer/.bazaar/plugins/bisect [1.1.0.pre.0]
  builddeb             /home/jelmer/.bazaar/plugins/builddeb [2.2.0]
  builder              /home/jelmer/.bazaar/plugins/builder [unknown]
  bzrtools             /home/jelmer/.bazaar/plugins/bzrtools [2.3.0]
  colocated            /home/jelmer/.bazaar/plugins/colocated [0.4.16dev]
  commitfromnews       /home/jelmer/.bazaar/plugins/commitfromnews [unknown]
  dbus                 /home/jelmer/.bazaar/plugins/dbus [0.1.0dev]
  email                /home/jelmer/.bazaar/plugins/email [unknown]
  explorer             /home/jelmer/.bazaar/plugins/explorer [1.1.0dev2]
  fastimport           /home/jelmer/.bazaar/plugins/fastimport [0.10.0dev]
  gardener             /home/jelmer/.bazaar/plugins/gardener [unknown]
  git                  /home/jelmer/.bazaar/plugins/git [0.5.3dev]
  grep                 /usr/lib/python2.7/dist-packages/bzrlib/plugins/grep [0.5.0dev]
  gtk                  /home/jelmer/.bazaar/plugins/gtk [0.99.1]
  hg                   /home/jelmer/.bazaar/plugins/hg [0.2.0dev]
  keywords             /home/jelmer/.bazaar/plugins/keywords [unknown]
  launchpad            /usr/lib/python2.7/dist-packages/bzrlib/plugins/launchpad [2.3.0dev5]
  loggerhead           /home/jelmer/.bazaar/plugins/loggerhead [1.17.0]
  loom                 /usr/lib/python2.7/dist-packages/bzrlib/plugins/loom [2.2.1dev]
  lpreview_body        /home/jelmer/.bazaar/plugins/lpreview_body [unknown]
  mtn                  /home/jelmer/.bazaar/plugins/mtn [unknown]
  netrc_credential_store /usr/lib/python2.7/dist-packages/bzrlib/plugins/netrc_credential_store [2.3.0dev5]
  news_merge           /usr/lib/python2.7/dist-packages/bzrlib/plugins/news_merge [2.3.0dev5]
  pipeline             /usr/lib/python2.7/dist-packages/bzrlib/plugins/pipeline [1.0.0]
  plugin_info          /home/jelmer/.bazaar/plugins/plugin_info [1.3.0dev]
  pqm                  /home/jelmer/.bazaar/plugins/pqm [1.4.0dev]
  qbzr                 /home/jelmer/.bazaar/plugins/qbzr [0.20.0dev1]
  rewrite              /home/jelmer/.bazaar/plugins/rewrite [0.6.2dev]
  search               /home/jelmer/.bazaar/plugins/search [1.7.0dev]
  stats                /home/jelmer/.bazaar/plugins/stats [0.1.0dev]
  svn                  /home/jelmer/.bazaar/plugins/svn [1.0.5dev]
  testrunner           /home/jelmer/.bazaar/plugins/testrunner [unknown]
  trac                 /home/jelmer/.bazaar/plugins/trac [unknown]
  upload               /usr/lib/python2.7/dist-packages/bzrlib/plugins/upload [1.0.0]
  wikkid               /usr/lib/python2.7/dist-packages/bzrlib/plugins/wikkid [unknown]
  xmloutput            /usr/lib/python2.7/dist-packages/bzrlib/plugins/xmloutput [0.8.7.dev]

*** 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.
**** entering debugger
> /usr/lib/python2.7/httplib.py(280)readheaders()
-> line = self.fp.readline(_MAXLINE + 1)
(Pdb) print self.fp
<bzrlib.transport.http._urllib2_wrappers._ReportingFileSocket object at 0x1e8c210>





More information about the Ubuntu-sponsors mailing list