Author

Topic: Can someone PLEASE help me to get my Trezor going on 2.7.2? (Read 947 times)

hero member
Activity: 761
Merit: 606
Got it!!  I went over everything again.  When I saw hidapi install without errors I knew I was headed to victory.  Up and running great.  Verified the btc addresses and its running in  sync with mytrezor as far as those go.  Glad to leave mytrezor as the only way to use this hardware wallet.

Since I am running this in a VM I made several backup copies.  Not planning on going through this fight again if I can help it.


One strange thing I noticed.  When creating a wallet and selecting "hardware wallet" in Electrum the next box shows TWO trezor that are initialized as options.  Hmmmm?  I have only ever selected the top offering and it is all running well.  Should I fix this because something is wrong?  Doubled something up I guess.

I don't have any more time today to look at this, but I wanted to come in here and let you know I got it.  Thanks for the encouragement to keep going!!
legendary
Activity: 3430
Merit: 3080
Remember: you can do it! (well, it helps me Smiley )
hero member
Activity: 761
Merit: 606
Thanks.  I am heading for bed, its late.  Give this a fresh look tomorrow.
legendary
Activity: 3430
Merit: 3080
If it's the same error, that means hidapi did not install correctly. There is some pre-requisite software package that handles .pyx files. You need that software. Sadly, I do not know what it is, but a bit of Google-fu may help.
hero member
Activity: 761
Merit: 606
Adding hidapi didn't fix it for me.  I still show the exact same error which is an unrecognized pyx file as noted above.  You can't imagine how many hours I have put in on this thing.  I can tell a couple of the github coders can do this in their sleep.  I don't know how to tap into their expertise since github doesn't really  look like a "post" type forum, for those of us that are not expert coders.  I don't really want to be forced to learn python coding, I just want this "glitch" fixed in some fashion.  Still trying!

That Romanz coder (link in post 7 of this thread) over at github seems to really know his trezor code.  Got his phone number?  LOL  -- joking!!!!
hero member
Activity: 761
Merit: 606
yes, that seems to be the issue; you failed to install hidapi.
you need to fix that in order to use trezor.

Thanks for the affirmation!  I am off to "linux school".  LOL     I'll report back with results.
legendary
Activity: 1896
Merit: 1353
yes, that seems to be the issue; you failed to install hidapi.
you need to fix that in order to use trezor.
hero member
Activity: 761
Merit: 606
Thomas,

I found a thread over at github where it looks like the exact same ERROR was being discussed and it appears to have be solved.  Candidly, its just a bit beyond my coding grasp at this point.  Can you shed some light (I know you code there too) or should I go there and jump on that thread?  Not a member yet.


https://github.com/romanz/trezor-agent/issues/11

Paste from a post on that thread:


Somehow, the latest hidapi package fails to build on Python3:

$ pip install hidapi==0.7.99.post16
Downloading/unpacking hidapi==0.7.99.post16
  Using download cache from /home/roman/.pip_download_cache/https%3A%2F%2Fpypi.python.org%2Fpackages%2F35%2Fe0%2Fc6b3da6999043d96cda6a1c44d5f1054058cc6e5c05b1139886444b31bb0%2Fhidapi-0.7.99.post16.tar.gz
  Running setup.py (path:/tmp/pip-build-fbriuxzv/hidapi/setup.py) egg_info for package hidapi

Installing collected packages: hidapi
  Found existing installation: hidapi 0.7.99.post15
    Uninstalling hidapi:
      Successfully uninstalled hidapi
  Running setup.py install for hidapi
    building 'hid' extension
    error: unknown file type '.pyx' (from 'hid.pyx')
    Complete output from command /media/oldhome/roman/Code/trezor/trezor-agent/v3/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-fbriuxzv/hidapi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7ybd1pqu-record/install-record.txt --single-version-externally-managed --compile --install-headers /media/oldhome/roman/Code/trezor/trezor-agent/v3/include/site/python3.4:
    running install

running build

running build_ext

building 'hid' extension

error: unknown file type '.pyx' (from 'hid.pyx')
hero member
Activity: 761
Merit: 606
Before I explain it directly from Electrum, I need to understand your issue.

I am having issues trying to install python-trezor into Debian 8.  Obviously, its this "script" that allows Electrum and Trezor to work together.  I know you are a busy and skilled man, so I appreciate you stopping by this thread and attempting to help me.  Any suggestions because I am working on this every day but having little success?

One particular error line jumps out at me so I'll highlight it here (this is a snip from the entire code pasted below):

error: unknown file type '.pyx' (from 'hid.pyx')

Could it be this unknown file type is stopping the process?  It appears so to me.  How to correct or recognize it?



Here is a paste from an attempted install of python-trezor-0.7.4 just a few minutes ago.


XXX@debian-vm:~/Desktop$ sudo pip install trezor-0.7.4.tar.gz
Unpacking ./trezor-0.7.4.tar.gz
  Running setup.py (path:/tmp/pip-QGO13R-build/setup.py) egg_info for package from file:///home/XXX/Desktop/trezor-0.7.4.tar.gz
    
Requirement already satisfied (use --upgrade to upgrade): ecdsa>=0.9 in /usr/local/lib/python2.7/dist-packages (from trezor==0.7.4)
Requirement already satisfied (use --upgrade to upgrade): protobuf>=2.6.1 in /usr/local/lib/python2.7/dist-packages (from trezor==0.7.4)
Requirement already satisfied (use --upgrade to upgrade): mnemonic>=0.8 in /usr/local/lib/python2.7/dist-packages (from trezor==0.7.4)
Downloading/unpacking hidapi>=0.7.99 (from trezor==0.7.4)
  Downloading hidapi-0.7.99.post19.tar.gz
  Running setup.py (path:/tmp/pip-build-OOIsty/hidapi/setup.py) egg_info for package hidapi
    
Downloading/unpacking setuptools>=19.0 (from trezor==0.7.4)
  Downloading setuptools-28.3.0-py2.py3-none-any.whl (467kB): 467kB downloaded
Requirement already satisfied (use --upgrade to upgrade): pbkdf2 in /usr/local/lib/python2.7/dist-packages (from mnemonic>=0.8->trezor==0.7.4)
Installing collected packages: hidapi, setuptools, trezor
  Running setup.py install for hidapi
    building 'hid' extension
    error: unknown file type '.pyx' (from 'hid.pyx')
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-OOIsty/hidapi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-DKF9Ep-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_ext

building 'hid' extension

error: unknown file type '.pyx' (from 'hid.pyx')

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-OOIsty/hidapi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-DKF9Ep-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-OOIsty/hidapi
Storing debug log for failure in /root/.pip/pip.log
legendary
Activity: 1896
Merit: 1353
Before I explain it directly from Electrum, I need to understand your issue.
hero member
Activity: 761
Merit: 606
Sorry to pull this out of the other post but its the solution if I figure it out.  I have python-trezor-0.7.4 from over at github.  I don't seem to "get" the part for how to load/install the needed libraries/dependencies to then load the python-trezor tar.gz.

By chance are there any Debian users here that might give me a steer.  So close, and yet so far!!
hero member
Activity: 761
Merit: 606

First, before continuing let me say that I upgraded to Electrum 2.7.2 today and NO change in this issue.  Just so readers know.


Thomas, your post leaves me with questions.  I followed the udev rules while setting up Google Chrome on my BTC VM many months ago.  If I bring up google chrome and connect the Trezor to the mytrezor site it works perfectly without fail.  I have multiple wallets (different passphrases) all working seamlessly.  This of course means the udev rules are fully in play while using that browser.

Would there be some steps or a procedure to "migrate" those rules to be available while using Electrum from within this Debian VM?

I am wondering if I should come over to github on this?  I see a python-trezor-0.7.4 file, which I would think might do the trick.  I can't seem to get it installed and I must be missing some dependencies or something?  Working on the Trezor thread here too.

Maybe you can explain this note directly from Electrum.  It comes up when I try to connect my Trezor and create a wallet:

No hardware support found..........  Please install the relevant libraries (eg python-trezor)

How do I do that?  Any Debian VM users on this forum??
legendary
Activity: 1896
Merit: 1353
hero member
Activity: 761
Merit: 606
I am so frustrated.  I have gone through the steps several times and I can't get my Trezor to be recognized on Electrum's newest.

Using Debian 8 VM.  Electrum 2.7.1 works GREAT without a hardware wallet.  This Trezor works perfectly on the mytrezor site from within this debian VM using Google Chrome.

I think I'll just rebuild a brand new Debian and start over thinking I may have hosed something.  Assuming I have already built a clean Debian VM is there a link with the exact steps to take for downloading packages?  I know this is basic but I must have missed a step or something so I am going back to a blank slate and starting completely over.  Frustrating

I already put a post in the Trezor thread here but adding Cython didn't help anything at all.  This seems like a better forum because everyone reading this post uses Electrum, and many readers also use a Trezor with Electrum.

When trying to create a new normal wallet and then selecting hardware wallet ---- Electrum shows a No hardware support flag and uses add library e.g. python-trezor for a possible solution.

build-essential, and python are all showing the latest updates when running apt-get.

I would be highly grateful for a step by step here, or absent that a link to a basic manual.
Jump to: