Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ledger library mismatched versions: requires btchip > 0.1.30 - but is failing as 0.1.31 is installed #6928

Closed
techsmyth opened this issue Jan 10, 2021 · 8 comments

Comments

@techsmyth
Copy link

Error message:
W | gui.qt.installwizard.InstallWizard | error getting device infos for ledger: Library version for 'ledger' is incompatible. // Installed: 0.1.31, Needed: 0.1.30 <= x < inf // Make sure you install it with python3

Environment:

  • OS: Mint 20
  • Electrum 4.0.9

Ledger is being detected fine via udev rules.

@SomberNight
Copy link
Member

Could you open a python interpreter and run these?

import hid
import btchip
from btchip.btchipComm import HIDDongleHIDAPI, DongleWait
from btchip.btchip import btchip
from btchip.btchipUtils import compress_public_key,format_transaction, get_regular_input_script, get_p2sh_input_script
from btchip.bitcoinTransaction import bitcoinTransaction
from btchip.btchipFirmwareWizard import checkFirmware, updateFirmware
from btchip.btchipException import BTChipException

Do you get any exceptions?

@techsmyth
Copy link
Author

thanks for the quick follow up.

Responses below - only the btchip.btchip game an error:

Python 3.8.5 (default, Jul 28 2020, 12:59:40)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import hid
import btchip
from btchip.btchipComm import HIDDongleHIDAPI, DongleWait
from btchip.btchip import btchip
Traceback (most recent call last):
File "", line 1, in
File "/home/nsmyth/.local/lib/python3.8/site-packages/btchip/btchip.py", line 25, in
from .btchipKeyRecovery import *
File "/home/nsmyth/.local/lib/python3.8/site-packages/btchip/btchipKeyRecovery.py", line 3, in
import ecdsa
ModuleNotFoundError: No module named 'ecdsa'
from btchip.btchipUtils import compress_public_key,format_transaction, get_regular_input_script, get_p2sh_input_script
from btchip.bitcoinTransaction import bitcoinTransaction
from btchip.btchipFirmwareWizard import checkFirmware, updateFirmware
from btchip.btchipException import BTChipException

@techsmyth
Copy link
Author

ok, installed the ecdsa package and that seems to have sorted it!

pip3 install ecdsa

@SomberNight
Copy link
Member

ahh I see
how did you install Electrum?

@SomberNight
Copy link
Member

also, how did you install btchip-python?

@techsmyth
Copy link
Author

running electrum directly from the extracted archive (i.e. not installed)

re btchip, forget exactly where I picked up the need to install that :( Been a struggle to get this working...

@SomberNight
Copy link
Member

relevant: LedgerHQ/btchip-python#42

@techsmyth
Copy link
Author

thanks for addressing this, indeed two items - the missing ecdsa dependency and the error message given. Thanks for the nice work.

SomberNight added a commit to spesmilo/electrum-docs that referenced this issue Jan 29, 2021
btchip-python has python-ecdsa as a hidden undeclared dependency...
see LedgerHQ/btchip-python#42
related spesmilo/electrum#6928
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants