Open JavierGonzalez opened 1 month ago
Many thanks for reporting this issue!
Could you please check that trezorctl
works with your device on MacOS?
For example, you can try:
$ trezorctl -v list
$ trezorctl -v ping -b test
Also which version of trezorlib
is installed on the host?
$ trezorctl version
I confirm that trezorctl is installed and working correctly on MacOS with Safe 5. trezorctl version 0.13.9
Thanks @JavierGonzalez!
It seems that trezor-agent
is using an older version of Python TREZOR library - from the above traceback there seems to be a call to _refresh_features
from line 377:
File "/opt/homebrew/Cellar/trezor-agent/0.12.0_6/libexec/lib/python3.12/site-packages/trezorlib/client.py", line 377, in init_device
self._refresh_features(resp)
Which was on line 377 in trezorlib
0.13.8:
https://github.com/trezor/trezor-firmware/blob/python/v0.13.8/python/src/trezorlib/client.py#L377
But was moved to line 380 in trezorlib
0.13.9:
https://github.com/trezor/trezor-firmware/blob/python/v0.13.9/python/src/trezorlib/client.py#L380
I think that we will need to upgrade the trezorlib
package being used by Homebrew from 0.13.8 to 0.13.9 to allow trezor-agent
to run on TREZOR Safe 5:
https://github.com/Homebrew/homebrew-core/blob/abc953ca10dc5c6228a7d0051fe1362c30c7a4f2/Formula/t/trezor-agent.rb#L249
CC: @chenrui333 @cho-m (who IIUC are maintaining https://github.com/Homebrew/homebrew-core/commits/master/Formula/t/trezor-agent.rb)
Thank you!
I have opened https://github.com/Homebrew/homebrew-core/pull/183792. @JavierGonzalez could you please test it?
I have run brew upgrade
and tried it without success.
What exactly do you want me to test?
Sorry - I meant if you could please install trezor-agent
in a Python virtual environment with the latest https://pypi.org/project/trezor/0.13.9/ to see that it works with Safe 5?
The new Trezor Safe 5 [Firmware 2.7.2] (next version of Trezor Model T) works fine on Ubuntu 24.04 but does not work on MacOS 14.6.1 under the same conditions.
It is important that this hardware works well, as it is the most advanced hardware key available in my opinion.
Thank you!! (trezor-agent is the pinacle of authentication)