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

Electrum not recognizing Trezor (Linux) #3928

Closed
SmartLayer opened this issue Feb 20, 2018 · 2 comments
Closed

Electrum not recognizing Trezor (Linux) #3928

SmartLayer opened this issue Feb 20, 2018 · 2 comments

Comments

@SmartLayer
Copy link

SmartLayer commented Feb 20, 2018

On Ubuntu 16.04 Installed using

$ sudo pip3 install https://download.electrum.org/3.0.6/Electrum-3.0.6.tar.gz
$ sudo pip3 install trezor

Showing that the trezor installed is above the required version of 0.7.16.

$ pip3 show trezor 
---
Metadata-Version: 1.1
Name: trezor
Version: 0.9.0

Electrum prompted "No hardware device detected", and asked me to check the udev rule permission. Trezor is working for the web (Chroimum) so I don't think that it's udev rule related.

Traceback:

$ electrum 
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/electrum/plugins.py", line 151, in get_hardware_support
    p = self.get_plugin(name)
  File "/usr/local/lib/python3.5/dist-packages/electrum/plugins.py", line 179, in get_plugin
    self.load_plugin(name)
  File "/usr/local/lib/python3.5/dist-packages/electrum/plugins.py", line 104, in load_plugin
    plugin = p.Plugin(self, self.config, name)
  File "/usr/local/lib/python3.5/dist-packages/electrum_plugins/trezor/trezor.py", line 22, in __init__
    self.types = trezorlib.client.types
AttributeError: module 'trezorlib.client' has no attribute 'types'
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/electrum/plugins.py", line 151, in get_hardware_support
    p = self.get_plugin(name)
  File "/usr/local/lib/python3.5/dist-packages/electrum/plugins.py", line 179, in get_plugin
    self.load_plugin(name)
  File "/usr/local/lib/python3.5/dist-packages/electrum/plugins.py", line 104, in load_plugin
    plugin = p.Plugin(self, self.config, name)
  File "/usr/local/lib/python3.5/dist-packages/electrum_plugins/trezor/trezor.py", line 22, in __init__
    self.types = trezorlib.client.types
AttributeError: module 'trezorlib.client' has no attribute 'types'
@SomberNight
Copy link
Member

Electrum 3.0.6 needs python-trezor 0.7.16.
Electrum 3.1.0 (unreleased, master) needs python-trezor 0.9.0.
It's not ideal but there were breaking changes in the newest python-trezor.

sudo pip3 uninstall trezor
sudo pip3 install trezor==0.7.16

@SmartLayer
Copy link
Author

SmartLayer commented Feb 20, 2018

Ah, it worked. I could have saved 1 hour attempting to get python3-trezor installed with its rigid dependency on the latest version of hidapi...

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