-
Notifications
You must be signed in to change notification settings - Fork 190
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
Error executing HWI (when hardware wallets are scanned) - macOS #972
Comments
Was this issue already handled in the Telegram chat? |
This issue was recently discussed by some man, but after 23 may this discussion ended without any resolution |
Ok - are you able to see the device using the BitboxApp? |
Yes, I am |
Ok, and this is the error you are seeing in the logs?
|
Yes, It looks similar in my situation: ERROR [Thread-46] c.s.s.i.Hwi [null:-1] Error executing hwi-2.2.1 |
Are there any other USB devices plugged in? Pinging @benma |
No, there are not any USB devices when I try to connect bitbox02 to Sparrow Wallet
|
Are you on macOS 13.3+? The root of the problem is very likely this issue - libusb/hidapi#531 - a fix was already merged into hidapi. I am not sure if HWI bundles hidapi or if it calls the one installed on the system. I'd try |
|
Yes, I am on macOS 13.3.1.
|
Does Sparrow list two choices for BitBox02 when enumerating devices? If so, one will work and the other will not, as a result of the above bug in hidapi. The fix should be to get hidapi updated somehow. @achow101 would you happen to know if HWI bundles the hidapi lib? |
I believe it does. IIRC the standalone binaries bundle all necessary libraries. |
Thanks. I grepped hidapi and it does not come up except for the Python hidapi dep. Maybe it's not bundled after all but part of the Python hidapi dep. Relevant issue there is trezor/cython-hidapi#151 |
6.2.0 was released to put a minimum requirement on hidapi 0.14.0, which includes the fix for this issue: libusb/hidapi#531 That bug caused hidapi on macOS 13.3 to report 0 as the interface number for all hid devices, which led to the bitbox02 being listed twice instead of once. This breaks some downstream integrations like Sparrow: sparrowwallet/sparrow#972
The above cython-hidapi issue was fixed and hidapi 0.14.0 was released. We published bitbox02-6.2.0 that requires hidapi 0.14.0. Here is the PR in HWI that bumps that dep: Next step is to wait for HWI to merge this, wait for the next HWI release, and Sparrow to update HWI. |
Thanks @benma. Will look to update as soon as the next HWI release is ready. |
I have the same issue with Sparrow on Manjaro Linux . BitBox application works without problems with the device.
|
Interestingly after connecting and testing with the Bitbox application and leaving Sparrow open while doing that, it works now! So what I did is:
|
In my case, such approach doesn't work, but thank you for such detailed description (maybe it'll help someone) |
I've tested on MacOS Ventura 13.4 and could not reproduce - everything works fine. @GeorgeGalaxy can you test again? It's possible Apple fixed their regression. |
I already updated my macOS to 13.4 and also updated Sparrow Wallet to 1.7.7, but I have the same issue as well |
But, I've just tried to connect my Bitbox02 to sparrow wallet on another macOS device, and it's work correctly. I honestly don't even know why it doesn't work on my 1st mac.. |
Hi all, I was the one reporting this issue on Telegram. |
Did you test using a Bitbox02 Bitcoin-only or Multi? The problem with the outdated hidapi lib is only a problem for the Multi edition. @Ugalila are you using a Multi? In that case it's the same - HWI needs to merge bitcoin-core/HWI#677 (cc @achow101) and make a new release and Sparrow then needs to update to that new release. |
Maybe one of your mac's is on 13.3+ while the other one is <13.3? The hidapi issue appears only on 13.3+ afaik. |
Yes, I got the Multi. |
Another user suffering from this: https://www.reddit.com/r/BitBoxWallet/comments/14salp7/cannot_use_the_bitbox02_with_sparrow/jqzh4j7/?context=3 |
HWI 2.3.1 has been merged in 407dde2 which should resolve this problem. |
When trying to scan for Ledger Nano S shows "Error executing HWI". What should i do? [2473] Failed to execute script 'hwi' due to unhandled exception!
2023-12-03 10:48:55,444 ERROR [Thread-51] c.s.s.i.Hwi [null:-1] Error executing hwi-2.3.1 The above exception was the direct cause of the following exception: Traceback (most recent call last): |
@Rizzo92 a couple of things to try:
|
I am also getting "Error executing HWI" when attempting to connect a TrezorOne
|
@kingmehodl You may need to update glibc. You can see the current version with |
thanks @craigraw ....updated ubuntu and everything works now. cheers! |
I try to add my bitbox02 to Sparrow Wallet but when I start scanning for a hardware wallet I get this message in image below
I use Sparrow Wallet on macOS
The text was updated successfully, but these errors were encountered: