bitcoin-core / HWI

Bitcoin Hardware Wallet Interface
MIT License
498 stars 198 forks source link

HWI issue, Error scaning, Trezor and Ledger not detected #529

Open Shadovv007 opened 3 years ago

Shadovv007 commented 3 years ago

Hi, I installed Sparrow and cant get detected any of my HW wallets, which work in other apps and with the same cable in the same usb spot. I did reboot, I dont use any other USB device, reinstalled Sparrow...dont know what else to try?

I ran hwi enumerate and got this :

Traceback (most recent call last): File "hwi.py", line 7, in File "hwilib_cli.py", line 305, in main File "hwilib_cli.py", line 269, in process_commands File "hwilib_cli.py", line 62, in enumerate_handler File "hwilib\commands.py", line 113, in enumerate File "hwilib\devices\trezor.py", line 714, in enumerate File "hwilib\devices\trezorlib\transport\webusb.py", line 118, in enumerate File "usb1__init.py", line 2087, in wrapper File "usb1\init.py", line 2196, in getDeviceIterator File "usb1\init.py", line 127, in mayRaiseUSBError File "usb1\init__.py", line 119, in raiseUSBError usb1.USBErrorNoDevice: LIBUSB_ERROR_NO_DEVICE [-4] [7628] Failed to execute script hwi

Thanks!

prusnak commented 3 years ago

Which OS is that? Windows?

Which "other apps" does Trezor work with?

Shadovv007 commented 3 years ago

Sorry, forgot to mention.. yes, its on Win 10. On the same pc with the same conditions (cable, usb..) the Trezor works with Trezor Suite app, also here https://suite.trezor.io/ and also in Electrum desktop app. Ledger works also in both Ledger live desktop app and in Electrum desktop app. Thanks!

prusnak commented 3 years ago

Try restarting the PC and do not launch Suite, but run Sparrow first. Did this help?

Shadovv007 commented 3 years ago

Nope...when i click "Scan" both Trezor and Ledger give me still the same "There was error connecting to the wallet: Error scanning, check devices are ready" error.

prusnak commented 3 years ago

Can this be a permission problem? Does it work when you run HWI as admin?

Shadovv007 commented 3 years ago

Well, I didnt install HWI nor I knew about its existence/need before I wrote on Sparrow Telegram, where Craig Raw guided me to run "hwi enumerate" from Sparrow appdata\temp\ folder. But that hwi file was/is in "hwi-2.0.28140055849243990408.tmp" format.

So I was told to grab hwi from https://github.com/bitcoin-core/HWI/releases/download/2.0.2/hwi-2.0.2-windows-amd64.zip and run enumerate and results are posted above. Should/need I install HWI ? Craig wrote, that Sparrow installs it itself in that temp location.. Could it also be something with Python? I used to play with it a little (just basic graphics) year ago and still have it installed.

Now I ran HWI as admin with these results:

Traceback (most recent call last): File "hwi.py", line 7, in File "hwilib_cli.py", line 305, in main File "hwilib_cli.py", line 269, in process_commands File "hwilib_cli.py", line 62, in enumerate_handler File "hwilib\commands.py", line 113, in enumerate File "hwilib\devices\trezor.py", line 714, in enumerate File "hwilib\devices\trezorlib\transport\webusb.py", line 118, in enumerate File "usb1__init.py", line 2087, in wrapper File "usb1\init.py", line 2196, in getDeviceIterator File "usb1\init.py", line 127, in mayRaiseUSBError File "usb1\init__.py", line 119, in raiseUSBError usb1.USBErrorNoDevice: LIBUSB_ERROR_NO_DEVICE [-4] [15268] Failed to execute script hwi

achow101 commented 3 years ago

Can you try without either Trezor suite or Electrum open, or anything else that may try to talk to the Trezor? This kind of error often appears when multiple apps are trying to use the device at the same time.

Shadovv007 commented 3 years ago

Neither Trezor Suite nor Electrum is open :/