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

Error when running trezor-agent due to protobuf and keepkey #104

Closed
Bunjin opened this issue Mar 26, 2017 · 0 comments
Closed

Error when running trezor-agent due to protobuf and keepkey #104

Bunjin opened this issue Mar 26, 2017 · 0 comments

Comments

@Bunjin
Copy link

Bunjin commented Mar 26, 2017

On debian: Kubuntu 16.0.4
protobuf 3.2

I ran into the following issue

Traceback (most recent call last):
  File "/usr/local/bin/trezor-agent", line 11, in <module>
    load_entry_point('trezor-agent==0.8.3', 'console_scripts', 'trezor-agent')()
  File "build/bdist.linux-x86_64/egg/trezor_agent/__main__.py", line 128, in wrapper
  File "build/bdist.linux-x86_64/egg/trezor_agent/__main__.py", line 203, in run_agent
  File "build/bdist.linux-x86_64/egg/trezor_agent/__main__.py", line 153, in public_keys
  File "build/bdist.linux-x86_64/egg/trezor_agent/__main__.py", line 197, in <lambda>
  File "build/bdist.linux-x86_64/egg/trezor_agent/device/__init__.py", line 23, in detect
  File "build/bdist.linux-x86_64/egg/trezor_agent/device/interface.py", line 110, in __enter__
  File "build/bdist.linux-x86_64/egg/trezor_agent/device/trezor.py", line 32, in connect
  File "build/bdist.linux-x86_64/egg/trezor_agent/device/keepkey.py", line 25, in _defs
  File "build/bdist.linux-x86_64/egg/trezor_agent/device/keepkey_defs.py", line 5, in <module>
  File "/usr/local/lib/python2.7/dist-packages/keepkeylib/client.py", line 15, in <module>
    from . import mapping
  File "/usr/local/lib/python2.7/dist-packages/keepkeylib/mapping.py", line 1, in <module>
    from . import messages_pb2 as proto
  File "/usr/local/lib/python2.7/dist-packages/keepkeylib/messages_pb2.py", line 12, in <module>
    import types_pb2
  File "/usr/local/lib/python2.7/dist-packages/keepkeylib/types_pb2.py", line 18, in <module>
    2uttonRequest_ConfirmWord\x10\x05\x12\x1c\n\x18\x42uttonRequest_WipeDevice\x10\x06\x12\x1d\n\x19\x42uttonRequest_ProtectCall\x10\x07\x12\x18\n\x14\x42uttonRequest_SignTx\x10\x08\x12\x1f\n\x1b\x42uttonRequest_FirmwareCheck\x10\t\x12\x19\n\x15\x42uttonRequest_Address\x10\n\x12\x1f\n\x1b\x42uttonRequest_FirmwareErase\x10\x0b\x12*\n&ButtonRequest_ConfirmTransferToAccount\x10\x0c\x12+\n\'ButtonRequest_ConfirmTransferToNodePath\x10\r\x12\x1d\n\x19\x42uttonRequest_ChangeLabel\x10\x0e\x12 \n\x1c\x42uttonRequest_ChangeLanguage\x10\x0f\x12\"\n\x1e\x42uttonRequest_EnablePassphrase\x10\x10\x12#\n\x1f\x42uttonRequest_DisablePassphrase\x10\x11\x12\'\n#ButtonRequest_EncryptAndSignMessage\x10\x12\x12 \n\x1c\x42uttonRequest_EncryptMessage\x10\x13\x12\"\n\x1e\x42uttonRequest_ImportPrivateKey\x10\x14\x12(\n$ButtonRequest_ImportRecoverySentence\x10\x15\x12\x1e\n\x1a\x42uttonRequest_signIdentity\x10\x16\x12\x16\n\x12\x42uttonRequest_Ping\x10\x17\x12\x1b\n\x17\x42uttonRequest_RemovePIN\x10\x18\x12\x1b\n\x17\x42uttonRequest_ChangePIN\x10\x19\x12\x1b\n\x17\x42uttonRequest_CreatePIN\x10\x1a\x12!\n\x1d\x42uttonRequest_GenerateEntropy\x10\x1b\x12\x1d\n\x19\x42uttonRequest_SignMessage\x10\x1c*\x7f\n\x14PinMatrixRequestType\x12 \n\x1cPinMatrixRequestType_Current\x10\x01\x12!\n\x1dPinMatrixRequestType_NewFirst\x10\x02\x12\"\n\x1ePinMatrixRequestType_NewSecond\x10\x03:4\n\x07wire_in\x12!.google.protobuf.EnumValueOptions\x18\xd2\x86\x03 \x01(\x08:5\n\x08wire_out\x12!.google.protobuf.EnumValueOptions\x18\xd3\x86\x03 \x01(\x08::\n\rwire_debug_in\x12!.google.protobuf.EnumValueOptions\x18\xd4\x86\x03 \x01(\x08:;\n\x0ewire_debug_out\x12!.google.protobuf.EnumValueOptions\x18\xd5\x86\x03 \x01(\x08\x42*\n\x1b\x63om.keepkey.device-protocolB\x0bKeepKeyType')
  File "/usr/local/lib/python2.7/dist-packages/google/protobuf/descriptor.py", line 824, in __new__
    return _message.default_pool.AddSerializedFile(serialized_pb)
TypeError: Couldn't build proto file into descriptor pool!
Invalid proto descriptor for file "types.proto":
  types.proto: A file with this name is already in the pool.

I solved it by removing any use and reference to the keepkey lib

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

No branches or pull requests

2 participants