Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

[error] calling "trezorctl get_features" on Python 3.4.6 #256

Closed
SimonVrouwe opened this issue May 7, 2018 · 2 comments
Closed

[error] calling "trezorctl get_features" on Python 3.4.6 #256

SimonVrouwe opened this issue May 7, 2018 · 2 comments
Labels
Milestone

Comments

@SimonVrouwe
Copy link

calling trezorctl get_features gives error

Traceback (most recent call last):
  File "/usr/bin/trezorctl", line 851, in <module>
    cli()
  File "/usr/lib/python3.4/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.4/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.4/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.4/site-packages/click/core.py", line 1031, in _process_result
    **ctx.params)
  File "/usr/lib/python3.4/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/bin/trezorctl", line 99, in print_result
    click.echo(format_protobuf(res))
  File "/usr/lib/python3.4/site-packages/trezorlib/client.py", line 119, in format_protobuf
    return pb.__class__.__name__ + ' ' + pformat_value(pb.__dict__, indent)
  File "/usr/lib/python3.4/site-packages/trezorlib/client.py", line 111, in pformat_value
    lines.append(leadin + key + ': ' + pformat_value(val, indent + 1) + ',')
  File "/usr/lib/python3.4/site-packages/trezorlib/client.py", line 115, in pformat_value
    return 'bytearray(0x{})'.format(value.hex())
AttributeError: 'bytearray' object has no attribute 'hex'

using trezorctl version 0.9.1 with Python 3.4.6 on opensuse 42.3, I think trezor was installed using pip3.

On another machine with Python 3.6.4 it works fine.

@matejcik matejcik added the bug label May 7, 2018
@matejcik matejcik added this to the v0.9.2 milestone May 7, 2018
@matejcik
Copy link
Contributor

matejcik commented May 7, 2018

this is already fixed in master, but yes, it seems this bug has slipped into the released 0.9.1 version

@matejcik
Copy link
Contributor

matejcik commented Jun 8, 2018

fix released

@matejcik matejcik closed this as completed Jun 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants