HWI icon indicating copy to clipboard operation
HWI copied to clipboard

HWI issue, Error scaning, Trezor and Ledger not detected

Open Shadovv007 opened this issue 2 years ago • 8 comments

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!

Shadovv007 avatar Oct 20 '21 13:10 Shadovv007

Which OS is that? Windows?

Which "other apps" does Trezor work with?

prusnak avatar Oct 20 '21 16:10 prusnak

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!

Shadovv007 avatar Oct 20 '21 18:10 Shadovv007

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

prusnak avatar Oct 20 '21 18:10 prusnak

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.

Shadovv007 avatar Oct 20 '21 18:10 Shadovv007

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

prusnak avatar Oct 21 '21 08:10 prusnak

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

Shadovv007 avatar Oct 21 '21 09:10 Shadovv007

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.

achow101 avatar Nov 09 '21 16:11 achow101

Neither Trezor Suite nor Electrum is open :/

Shadovv007 avatar Nov 10 '21 21:11 Shadovv007