#1146309 Missing dependency on python3-noiseprotocol

#1146309#3
Date:
2026-08-31 10:38:51 UTC
From:
To:
```
lotus:~% trezorctl --help
#(1 pts/17) 31 12:28:52.115
Traceback (most recent call last):
  File "/usr/bin/trezorctl", line 5, in <module>
    from trezorlib.cli.trezorctl import cli
  File "/usr/lib/python3/dist-packages/trezorlib/cli/__init__.py", line 36, in <module>
    from .. import exceptions, messages, protocol_v1, transport
  File "/usr/lib/python3/dist-packages/trezorlib/protocol_v1.py", line 30, in <module>
    from .thp import pairing
  File "/usr/lib/python3/dist-packages/trezorlib/thp/pairing.py", line 31, in <module>
    from .channel import Channel, ChannelState, PairingState
  File "/usr/lib/python3/dist-packages/trezorlib/thp/channel.py", line 28, in <module>
    from noise.connection import Keypair, NoiseConnection
ModuleNotFoundError: No module named 'noise'
```

To make this programme work, I need to run the following as root:

```
apt install python3-noiseprotocol
sed -i -re '/import/s/\<noise\>/&protocol/g' /usr/lib/python3/dist-packages/trezorlib/thp/channel.py
```

#1146309#8
Date:
2026-08-31 22:26:07 UTC
From:
To:
Martin,

Thank you for the bug report.  python3-trezor already automatically depends on
python3-noiseprotocol, so you shouldn’t need to manually install it.  However,
there is an import problem with noiseprotocol.  I have adjusted your sed
command to a patch and will upload it shortly.  I have also forwarded this
upstream.

#1146309#19
Date:
2026-09-01 00:34:15 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 1146309@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Soren Stoutner <soren@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: Mon, 31 Aug 2026 15:26:44 -0700
Source: python-trezor
Architecture: source
Version: 0.20.2-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Soren Stoutner <soren@debian.org>
Closes: 1146309
Changes:
 python-trezor (0.20.2-2) unstable; urgency=medium
 .
   * Add debian/patches/use-noiseprotocol.patch (closes: #1146309).
   * Rename debian/patches/0001-Suggest-apt-instead-of-pip-install.patch to
     suggest-apt-instead-of-pip-install.patch.
Checksums-Sha1:
 1ea780d4da5eab46a26f2f1cb07e1d7841f622b7 2520 python-trezor_0.20.2-2.dsc
 30fde600165fc0e45a997f3de21722f76def823c 9500 python-trezor_0.20.2-2.debian.tar.xz
 23bc2fc43a60383a7744b0743450ab41d163e160 8914 python-trezor_0.20.2-2_amd64.buildinfo
Checksums-Sha256:
 5044498d470edeac8354f6fe09c9dd9a9c1e02e5023de28823bbb9d73bb53f5b 2520 python-trezor_0.20.2-2.dsc
 d46cad185e07830cf4f00b533e2584337dd126ece8a7629e89363e271a92e1f2 9500 python-trezor_0.20.2-2.debian.tar.xz
 043911755266b8a3cc0798350fb0a596dd4ac2e36ea4837b48e724469b27b4b6 8914 python-trezor_0.20.2-2_amd64.buildinfo
Files:
 01f619c521c1847715969e1ea5ae79c4 2520 python optional python-trezor_0.20.2-2.dsc
 7be4b1fa4700ad2a0c02cfb357c47972 9500 python optional python-trezor_0.20.2-2.debian.tar.xz
 9ae464d3d8cb99312122ca29e3968895 8914 python optional python-trezor_0.20.2-2_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmqWGSYACgkQwufLJ66w
tgOQVQ//eFUHpd5I7MYor0VF6IiDO1l7vK1nF6T1bM+bJq6m+Qy9ut3+k2eRtiEJ
cn/74VZxEXifGrQ+cBSfBKv2P9XECQO6NGc3I1iLw1Z1FCJBU/Gh1al14kkzT+Fh
acBK2u504AK3BNZwoQH1VdnUygFErZs0HKxMv9+yIBfOOTAUxUEYKv3yqhzLROUA
8+P7BwL8sU7FjFmcJiVNTczoAL6SyxkofhIlApg15f0AQN/OLe28vnuf942O3jt5
pVVS9UnWakJIKckTb9gGZg4s3331kpJJYvS8QWQ5XqSgcpN+qaLh2y+FobGm5yYb
VIk/LyNdyH7Uld0AKqE2VjhSUCxaZV4IhyYh64T6YUrQEYGUcuKi/VF3qOXae5BF
GVeWIrbyYoiWoo/5IJ4ND9r5F4PjT7UxY+1CXJzrw2H7MevpbwmllYKWSNDpYmwY
ie/Sbwv1X5TgDhs3VM1untA6+J4h5Z8F6jONvYk0XuC1IvTkacnZZH2EhELy/wfb
6mCi7HOg8sfvnBKPYP3xrD7xbt/tl6uPtKeMbYfaiFgv7zTOb7dUWiIjOErB6AqX
vYG4XmPD25cV2+hIFmkyLc5KXpIFLahtsFB71tR7Kd/8YJ0IbBf6ZgqdOy0IGwMZ
ToaFvdAlhXsB35VoDfDY+4f5kBBcLbnjf4uDk++rQOjpRcTJb4o=
=TKsM
-----END PGP SIGNATURE-----