[Pkg-bazaar-maint] Bug#930213: bzr: "bzr branch" fails: NameError: global name 'self' is not defined

Ralf Jung post at ralfj.de
Sat Jun 8 12:24:03 BST 2019


Package: bzr
Version: 2.7.0+bzr6622-15
Severity: grave
Justification: renders package unusable

Dear Maintainer,

The command `bzr branch lp:mailman/2.1` (which
https://code.launchpad.net/~mailman-coders/mailman/2.1 tells me to run to get
the mailman source code) fails, with the following error:

```
/usr/lib/python2.7/dist-packages/paramiko/ecdsakey.py:164: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
  self.ecdsa_curve.curve_class(), pointinfo
Connected (version 2.0, client Twisted)
/usr/lib/python2.7/dist-packages/paramiko/kex_ecdh_nist.py:39: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
  m.add_string(self.Q_C.public_numbers().encode_point())
/usr/lib/python2.7/dist-packages/paramiko/kex_ecdh_nist.py:96: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
  self.curve, Q_S_bytes
/usr/lib/python2.7/dist-packages/paramiko/kex_ecdh_nist.py:111: CryptographyDeprecationWarning: encode_point has been deprecated on EllipticCurvePublicNumbers and will be removed in a future version. Please use EllipticCurvePublicKey.public_bytes to obtain both compressed and uncompressed point encoding.
  hm.add_string(self.Q_C.public_numbers().encode_point())
bzr: ERROR: exceptions.NameError: global name 'self' is not defined

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 930, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 1121, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 673, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/commands.py", line 697, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 136, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/cleanup.py", line 166, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/bzrlib/builtins.py", line 1452, in run
    from_location)
  File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 780, in open_tree_or_branch
    controldir = klass.open(location)
  File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 689, in open
    _unsupported=_unsupported)
  File "/usr/lib/python2.7/dist-packages/bzrlib/controldir.py", line 723, in open_from_transport
    return format.open(transport, _found=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/bzrdir.py", line 1486, in open
    return self._open(transport)
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 317, in _open
    return RemoteBzrDir(transport, self)
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 436, in __init__
    self._probe_bzrdir()
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 448, in _probe_bzrdir
    self._rpc_open_2_1(path)
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 455, in _rpc_open_2_1
    response = self._call('BzrDir.open_2.1', path)
  File "/usr/lib/python2.7/dist-packages/bzrlib/remote.py", line 73, in _call
    return self._client.call(method, *args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/client.py", line 59, in call
    result, protocol = self.call_expecting_body(method, *args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/client.py", line 72, in call_expecting_body
    method, args, expect_response_body=True)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/client.py", line 55, in _call_and_read_response
    return request.call_and_read_response()
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/client.py", line 155, in call_and_read_response
    return self._call_determining_protocol_version()
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/client.py", line 218, in _call_determining_protocol_version
    response_tuple, response_handler = self._call(protocol_version)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/client.py", line 189, in _call
    response_handler = self._send(protocol_version)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/client.py", line 267, in _send
    self._send_no_retry(encoder)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/client.py", line 315, in _send_no_retry
    encoder.call(self.method, *self.args)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/protocol.py", line 1308, in call
    self._write_end()
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/protocol.py", line 1131, in _write_end
    self.flush()
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/protocol.py", line 1097, in flush
    self._real_write_func(''.join(self._buf))
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/medium.py", line 545, in accept_bytes
    self._accept_bytes(bytes)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/medium.py", line 1176, in _accept_bytes
    self._medium._accept_bytes(bytes)
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/medium.py", line 988, in _accept_bytes
    self._ensure_connection()
  File "/usr/lib/python2.7/dist-packages/bzrlib/smart/medium.py", line 1012, in _ensure_connection
    '--directory=/', '--allow-writes'])
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/ssh.py", line 339, in connect_ssh
    t = self._connect(username, password, host, port)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/ssh.py", line 327, in _connect
    _paramiko_auth(username, password, host, port, t)
  File "/usr/lib/python2.7/dist-packages/bzrlib/transport/ssh.py", line 521, in _paramiko_auth
    % self._hexify(key.get_fingerprint()))
NameError: global name 'self' is not defined

bzr 2.8.0dev1 on python 2.7.16 (Linux-4.19.0-5-amd64-x86_64-with-debian-10.0)
arguments: ['/usr/bin/bzr', 'branch', 'lp:mailman/2.1']
plugins: bash_completion[2.8.0dev1], changelog_merge[2.8.0dev1],
    etckeeper[unknown], grep[2.8.0dev1], launchpad[2.8.0dev1],
    netrc_credential_store[2.8.0dev1], news_merge[2.8.0dev1],
    po_merge[2.8.0dev1], weave_fmt[2.8.0dev1]
encoding: 'utf-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'

*** 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.
```

This effectvively renders `bzr` unusable, as far as I can tell. (I have no experience at all with bzr.)

Kind regards,
Ralf

-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-debug'), (100, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-5-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_USER, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bzr depends on:
ii  python         2.7.16-1
ii  python-bzrlib  2.7.0+bzr6622-15

bzr recommends no packages.

Versions of packages bzr suggests:
pn  bzr-doc              <none>
pn  bzrtools             <none>
pn  python-bzrlib.tests  <none>

-- no debconf information



More information about the Pkg-bazaar-maint mailing list