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

macOS: Trezor T - Could not open client ... image not found #38

Closed
Sjors opened this issue Sep 15, 2018 · 9 comments
Closed

macOS: Trezor T - Could not open client ... image not found #38

Sjors opened this issue Sep 15, 2018 · 9 comments

Comments

@Sjors
Copy link
Member

Sjors commented Sep 15, 2018

If I don't insert or unlock the device enumerate returns [] as expected. Once unlocked I get:

./hwi.py enumerate
INFO:trezorlib.transport:looking for device by full path: hid:IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS10@14600000/TREZOR@14600000/TREZOR Interface@1/IOUSBHostHIDDevice@14600000,1
[{"type": "trezor", "path": "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS10@14600000/TREZOR@14600000/TREZOR Interface@1/IOUSBHostHIDDevice@14600000,1", "serial_number": "#################", "error": "Could not open client or get fingerprint information: dlopen(libusb-1.0.dylib, 6): image not found"}]

# serial number censored by me

trezor-0.10.2 and hidapi 0.7.99.post2

@achow101
Copy link
Member

I don't have a Trezor T so I can't test this. You should check the https://github.com/trezor/python-trezor if there is anything specific about it that is necessary.

@matejcik
Copy link
Contributor

matejcik commented Oct 4, 2018

Trezor T communicates over webusb (implemented by libusb), not hidapi. I'm honestly not sure what's going on in your error message - the command is complaining that libusb-1.0.dylib is not available, which means that your libusb isn't installed properly.
But I suspect that this would just fail a little bit later because HWI forces a path that starts with "hid:". Trezor T exposes a HID interface for U2F but you won't be able to send commands to it.

@yashbhutwala
Copy link

Hey guys, I'm getting the same error as @Sjors but with a Trezor One. I'm not sure if it's something to do with libusb1 dependency on Mac?

@yashbhutwala
Copy link

yashbhutwala commented Nov 9, 2018

Ok, so reinstalling libusb moved it along, so now it asks for a pin:

brew rm libusb --force
brew install libusb

But after entering the pin, now I'm getting this error:

{"type": "trezor", "path": "IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS02@14200000/TREZOR@14200000/U2F Interface@1/IOUSBHostHIDDevice@14200000,1", "serial_number": "XXX", "error": "Could not open client or get fingerprint information: hid device not found: hid:IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS02@14200000/TREZOR@14200000/U2F Interface@1/IOUSBHostHIDDevice@14200000,1"}

@matejcik
Copy link
Contributor

matejcik commented Nov 9, 2018

@yashbhutwala are you by any chance on firmware 1.7.1 ? that uses webusb too.

@Sjors Sjors changed the title Trezor T - Could not open client ... image not found macOS: Trezor T - Could not open client ... image not found Nov 9, 2018
@Sjors
Copy link
Member Author

Sjors commented Nov 9, 2018

Reinstalling libusd had the same effect for me, so now I get the hid device not found error, as @matejcik predicted. I'll make a new ticket to add webusb support.

@yashbhutwala
Copy link

@matejcik I'm on firmware version 1.6.3. Does that also use webusb for Trezor One?

@matejcik
Copy link
Contributor

matejcik commented Nov 9, 2018 via email

@yashbhutwala
Copy link

@matejcik Hmm, ok the error I'm getting is about the U2F interface it seems and I don't really need that...

"error": "Could not open client or get fingerprint information: hid device not found: hid:IOService:/AppleACPIPlatformExpert/PCI0@0/AppleACPIPCI/XHC1@14/XHC1@14000000/HS02@14200000/TREZOR@14200000/U2F Interface@1/IOUSBHostHIDDevice@14200000,1"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants