#1032731 Fails to start: AttributeError: 'TrezorctlGroup' object has no attribute 'resultcallback'

Package:
trezor
Source:
trezor
Submitter:
Jonathan McDowell
Date:
2023-03-25 21:03:07 UTC
Severity:
normal
Tags:
#1032731#5
Date:
2023-03-11 10:16:14 UTC
From:
To:
Installed trezor and tried to run it, got a traceback:

$ trezorctl
Traceback (most recent call last):
  File "/usr/bin/trezorctl", line 33, in <module>
    sys.exit(load_entry_point('trezor==0.12.4', 'console_scripts', 'trezorctl')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/trezorctl", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3/dist-packages/trezorlib/cli/trezorctl.py", line 171, in <module>
    @cli.resultcallback()
     ^^^^^^^^^^^^^^^^^^
AttributeError: 'TrezorctlGroup' object has no attribute 'resultcallback'. Did you mean: 'result_callback'?

Looks like this is an issue with the Click usage and was fixed upstream in 0.13.1.

#1032731#28
Date:
2023-03-25 20:59:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-trezor, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1032731@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastian Ramacher <sramacher@debian.org> (supplier of updated python-trezor package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Sat, 25 Mar 2023 21:49:45 +0100
Source: python-trezor
Architecture: source
Version: 0.12.4-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Sebastian Ramacher <sramacher@debian.org>
Closes: 1032731
Changes:
 python-trezor (0.12.4-2) unstable; urgency=medium
 .
   * Team upload
 .
   [ Debian Janitor ]
   * Update standards version to 4.6.1, no changes needed.
 .
   [ Sebastian Ramacher ]
   * debian/patches: Backport upstream fix for click 8.1 (Closes: #1032731)
Checksums-Sha1:
 7eb4292c7082230b6a34bc74abe3e3174912832f 1814 python-trezor_0.12.4-2.dsc
 620957f6bc116e7069e4555f7a088fd41d083fc8 5772 python-trezor_0.12.4-2.debian.tar.xz
Checksums-Sha256:
 6cbfa14eb9ceea564f3b247d66f0ac7bffe6b7864a80212f5c68e7de213da9f7 1814 python-trezor_0.12.4-2.dsc
 f78a0fa43c07e8b014f04b343c12880813c8900387da96e33ddc2f05e27b327a 5772 python-trezor_0.12.4-2.debian.tar.xz
Files:
 0731dd3594f83ad8c4210a1ffcd8fb74 1814 python optional python-trezor_0.12.4-2.dsc
 51222f217f7b7a197632c2a7df005f58 5772 python optional python-trezor_0.12.4-2.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQRCYn6EHZln2oPh+pAhk2s2YA/NiQUCZB9e1QAKCRAhk2s2YA/N
iZQqAP9PynhE9MNJR354uoQjh/BW1MZpW/t8cUr6V7blN08u6AD/YtE2wSHNUmYK
fyQM2p6iZ9v3REYX6aw4wgoYv8O3CwE=
=mDt5
-----END PGP SIGNATURE-----