Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1030886: python3-electrum: hardware wallets stopped working

405 views
Skip to first unread message

Vincas Dargis

unread,
Feb 8, 2023, 2:10:05 PM2/8/23
to
Package: python3-electrum
Version: 4.3.4+dfsg1-1
Severity: important

Dear Maintainer,

While it worked about a month ago, launching electrum with Ledger
hardware wallet attached produces this error:

```
No hardware device detected.
To trigger a rescan, press 'Next'.

On Linux, you might have to add a new permission to your udev rules.


Debug message
bitbox02: (error getting device infos)
Missing libraries for bitbox02.
ImportError()
Make sure you install it with python3
coldcard: (error getting device infos)
Missing libraries for coldcard.
ModuleNotFoundError("No module named 'ckcc'")
Make sure you install it with python3
keepkey: (error getting device infos)
Missing libraries for keepkey.
Make sure you install it with python3
ledger: (error getting device infos)
Missing libraries for ledger.
ModuleNotFoundError("No module named 'ledger_bitcoin'")
Make sure you install it with python3
safe_t: (error getting device infos)
Missing libraries for safe_t.
ModuleNotFoundError("No module named 'safetlib'")
Make sure you install it with python3
trezor: (error getting device infos)
Missing libraries for trezor.
ModuleNotFoundError("No module named 'trezorlib'")
Make sure you install it with python3
```

In terminal:

```
5.37 | E | plugins.jade.jade | error importing Jade plugin deps
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/electrum/plugins/jade/jade.py", line 34, in <module>
from .jadepy.jade import JadeAPI
File "/usr/lib/python3/dist-packages/electrum/plugins/jade/jadepy/__init__.py", line 1, in <module>
from .jade import JadeAPI
File "/usr/lib/python3/dist-packages/electrum/plugins/jade/jadepy/jade.py", line 1, in <module>
import cbor
ModuleNotFoundError: No module named 'cbor'
5.58 | W | gui.qt.installwizard.InstallWizard | error getting device infos for bitbox02: Missing libraries for bitbox02. // ImportError() // Make sure you install it with python3
5.58 | W | gui.qt.installwizard.InstallWizard | error getting device infos for coldcard: Missing libraries for coldcard. // ModuleNotFoundError("No module named 'ckcc'") // Make sure you install it with python3
5.58 | W | gui.qt.installwizard.InstallWizard | error getting device infos for jade: Missing libraries for jade. // ModuleNotFoundError("No module named 'cbor'") // Make sure you install it with python3
5.58 | W | gui.qt.installwizard.InstallWizard | error getting device infos for keepkey: Missing libraries for keepkey. // Make sure you install it with python3
5.58 | W | gui.qt.installwizard.InstallWizard | error getting device infos for ledger: Missing libraries for ledger. // ModuleNotFoundError("No module named 'ledger_bitcoin'") // Make sure you install it with python3
5.58 | W | gui.qt.installwizard.InstallWizard | error getting device infos for safe_t: Missing libraries for safe_t. // ModuleNotFoundError("No module named 'safetlib'") // Make sure you install it with python3
5.58 | W | gui.qt.installwizard.InstallWizard | error getting device infos for trezor: Missing libraries for trezor. // ModuleNotFoundError("No module named 'trezorlib'") // Make sure you install it with python3
```
(I've already installed python3-cbor and python3-serial to reduce
Jade-related errors)

python3-btchip is installed,

Also, HW wallet devices seems to be recognized:

```
vas. 08 20:32:30 kernel: hid-generic 0003:2C97:0001.0010: hiddev1,hidraw2: USB HID v1.11 Device [Ledger Nano S] on usb-0000:00:14.0-2/input0
vas. 08 20:32:30 kernel: hid-generic 0003:2C97:0001.0011: hiddev2,hidraw3: USB HID v1.11 Device [Ledger Nano S] on usb-0000:00:14.0-2/input1
```

Coudld this be due to transition to PEP 668? I don't recall if I needed
to pip-install any packages to make Ledger work.

-- System Information:
Debian Release: bookworm/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.1.0-3-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=lt_LT.UTF-8, LC_CTYPE=lt_LT.UTF-8 (charmap=UTF-8), LANGUAGE=lt
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-electrum depends on:
ii libjs-jquery 3.6.1+dfsg+~3.5.14-1
ii libjs-jquery-ui 1.13.2+dfsg-1
ii libjs-jquery-ui-theme-ui-lightness 1.12.1+dfsg-1.1
ii libsecp256k1-1 0.2.0-2
ii node-qrcode-generator 1.4.4+dfsg-3
ii python3 3.11.1-3
ii python3-aiohttp 3.8.3-1+b2
ii python3-aiohttp-socks 0.7.1-2
ii python3-aiorpcx 0.22.1-2
ii python3-attr 22.2.0-1
ii python3-bitstring 3.1.7-2
ii python3-certifi 2022.9.24-1
ii python3-cryptography 38.0.4-2
ii python3-distutils 3.10.8-1
ii python3-dnspython 2.3.0-1
ii python3-protobuf 3.21.12-1+b2
ii python3-qrcode 7.3.1-1

Versions of packages python3-electrum recommends:
ii fonts-dejavu-core 2.37-3

python3-electrum suggests no packages.

-- no debconf information

Soren Stoutner

unread,
Feb 8, 2023, 3:10:12 PM2/8/23
to

Vincas,


Thank you for the information in your bug report and for your followup fix.


I do not personally own any hardware wallets, so I have not been able to test out hardware wallet support.


Based on what you have written, it would appear that the dependency you needed to have installed is not packaged in Debian.


https://pypi.org/project/ledger-bitcoin/


https://packages.debian.org/search?keywords=ledger


Also, it appears it might be specific to hardware manufactured by Ledger, although I admit that I do now know enough about the subject to be sure.


https://www.ledger.com/


In the future it would be ideal to package everything in Debian necessary to fully support hardware ledgers.  However, as that is not likely to happen in the short term, I think it would be valuable to at least document what a user needs to add to get hardware wallets working in a README file installed with Electrum.


Would you be willing to send me a list of what you have done to get hardware wallets working for you and which hardware wallets are supported by these steps?


Thanks,


Soren


--

Soren Stoutner

so...@stoutner.com

signature.asc

Vincas Dargis

unread,
Feb 9, 2023, 2:00:05 PM2/9/23
to
On Wed, 08 Feb 2023 13:07:49 -0700 Soren Stoutner <so...@stoutner.com> wrote:
> In the future it would be ideal to package everything in Debian necessary to fully support
> hardware ledgers. However, as that is not likely to happen in the short term, I think it
> would be valuable to at least document what a user needs to add to get hardware wallets
> working in a README file installed with Electrum.

Yes it would be nice to have all these third party dependencies available. Not sure how feasible it is. Vendors could
contribute them by themselves if they though this was useful....

> Would you be willing to send me a list of what you have done to get hardware wallets
> working for you and which hardware wallets are supported by these steps?

I only own Ledger, and it was enough to do `pip install ledger_bitcoin[hid]` as specified in
https://pypi.org/project/ledger-bitcoin/ to make it work again. I do not recall what I have additionally installed years
ago when I first started using Electrum.

The problem is that after some time in the future, I'll need to do the same thing again, and hope I remember what's
missing and not spam Debian bug tracker again :) .

Soren Stoutner

unread,
Feb 21, 2023, 9:00:05 PM2/21/23
to

I have added a proposed README file, which can be seen at:


https://salsa.debian.org/cryptocoin-team/electrum/-/merge_requests/16


Let me know if there is anything else I should add or if you think anything should be reworded.

signature.asc
0 new messages