-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
trezorctl: fix Click 8.1 compatibility #2199
Comments
@lestephane What operating system? Have you managed to install the trezor package previously/? |
We are currently incompatible with The current code in master has the right versioning set, but the published package does not. Maybe a better approach is to fix the compatibility. |
@matejcik the fix you suggested isn't working for me when using the PyPi version of
|
Nevermind... because I was using |
This bit me again today. I think we should make trezorctl compatible with click 7.x, 8.0.x and 8.1.x and publish a new release on PyPI. |
Can also confirm on OS X 12.2.1 with a new user the following is required to make
|
I was able to use diff --git a/python/src/trezorlib/cli/trezorctl.py b/python/src/trezorlib/cli/trezorctl.py
index 8e133d85c..a1f7a86fe 100755
--- a/python/src/trezorlib/cli/trezorctl.py
+++ b/python/src/trezorlib/cli/trezorctl.py
@@ -189,7 +189,7 @@ def cli_main(
cli = cast(TrezorctlGroup, cli_main)
-@cli.resultcallback()
+@cli.result_callback()
def print_result(res: Any, is_json: bool, script: bool, **kwargs: Any) -> None:
if is_json:
if isinstance(res, protobuf.MessageType): Here are steps to reproduce the fix. git clone https://github.com/trezor/trezor-firmware.git
cd trezor-firmware
patch -p1 < patch_file_above.patch
nix-shell
poetry install
poetry shell
trezorctl list This fix only works inside the nested nix and poetry shell. I didn't see any issues but haven't done any extensive testing. I didn't find instruction on running a test suite. |
The text was updated successfully, but these errors were encountered: