NotImplementedError when adding or syncing

Bug #259074 reported by Russ Brown
2
Affects Status Importance Assigned to Milestone
Gentoo Overlay for Bazaar
Invalid
Undecided
Unassigned

Bug Description

I have been using the layman overlay fine for a while now, but this morning when attempting layman -S I got a traceback. So I removed the overlay and tried re-adding it again, and ended up with this:

# layman -a bazaar
* Running command "/usr/bin/bzr get "http://bzr.malept.com/bazaar-overlay/" "/usr/portage/local/layman/bazaar""...
bzr: ERROR: exceptions.NotImplementedError: <bound method PyCurlTransport._read_bytes of <bzrlib.transport.http._pycurl.PyCurlTransport url=http://bzr.malept.com/bazaar-overlay/>>

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 857, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 797, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 499, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 840, in run
    from_location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 886, in open_tree_or_branch
    bzrdir = klass.open(location)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 764, in open
    return BzrDir.open_from_transport(t, _unsupported=_unsupported)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 801, in open_from_transport
    redirected)
  File "/usr/lib/python2.5/site-packages/bzrlib/lazy_import.py", line 125, in __call__
    return obj(*args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/transport/__init__.py", line 1616, in do_catching_redirections
    return action(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 778, in find_format
    transport, _server_formats=_server_formats)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 1601, in find_format
    return format.probe_transport(transport)
  File "/usr/lib/python2.5/site-packages/bzrlib/bzrdir.py", line 2588, in probe_transport
    server_version = medium.protocol_version()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 510, in protocol_version
    client_protocol.query_version()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 723, in query_version
    resp = self.read_response_tuple()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 638, in read_response_tuple
    result = self._read_response_tuple()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 622, in _read_response_tuple
    result = self._recv_tuple()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/protocol.py", line 718, in _recv_tuple
    return _decode_tuple(self._request.read_line())
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 441, in read_line
    line = self._medium._get_line()
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 137, in _get_line
    new_bytes = self.read_bytes(1)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 121, in read_bytes
    return self._read_bytes(bytes_to_read)
  File "/usr/lib/python2.5/site-packages/bzrlib/smart/medium.py", line 124, in _read_bytes
    raise NotImplementedError(self._read_bytes)
NotImplementedError: <bound method PyCurlTransport._read_bytes of <bzrlib.transport.http._pycurl.PyCurlTransport url=http://bzr.malept.com/bazaar-overlay/>>

bzr 1.6rc1 on python 2.5.2 (linux2)
arguments: ['/usr/bin/bzr', 'get', 'http://bzr.malept.com/bazaar-overlay/', '/usr/portage/local/layman/bazaar']
encoding: 'ANSI_X3.4-1968', fsenc: 'ANSI_X3.4-1968', lang: 'C'
plugins:
  bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.6.0]
  dbus /usr/lib/python2.5/site-packages/bzrlib/plugins/dbus [unknown]
  gtk /usr/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.95.0]
  launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  rebase /usr/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.4.0dev0]
*** Bazaar has encountered an internal error.
    Please report a bug at https://bugs.launchpad.net/bzr/+filebug
    including this traceback, and a description of what you
    were doing when the error occurred.
* Failed to add overlay "bazaar".

Revision history for this message
Mark Lee (malept) wrote :

Strange...I can't duplicate this, although I'm using bzr1.6rc3.

$ /usr/bin/bzr get "http://bzr.malept.com/bazaar-overlay/"
Server does not understand Bazaar network protocol 3, reconnecting. (Upgrade the server to avoid this.)
Branched 146 revision(s).
$

You might want to try downloading the layman file and modifying it so the URL is http+nosmart instead of just http.

Changed in bzr-gentoo-overlay:
assignee: nobody → malept
status: New → Incomplete
Revision history for this message
Russ Brown (pickscrape) wrote :

It appears to have been RC1. Thanks for the nosmart+http suggestion: with that I was able to get the overlay updated so I could upgrade to RC3. With that in place I was able to delete the overlay and use it properly again via the usual method.

Marking this as Invalid since there was no fix to commit or release. :)

Thanks!

Changed in bzr-gentoo-overlay:
assignee: malept → nobody
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.