Bitcoin Forum
November 16, 2024, 01:40:42 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can someone PLEASE help me to get my Trezor going on 2.7.2?  (Read 947 times)
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 05, 2016, 06:41:04 PM
Last edit: October 09, 2016, 08:22:45 PM by Coin-Keeper
 #1

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.

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
October 06, 2016, 09:46:10 PM
 #2

maybe you need to configure udev rules?
see https://doc.satoshilabs.com/trezor-user/settingupchromeonlinux.html

Electrum: the convenience of a web wallet, without the risks
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 07, 2016, 08:35:44 PM
 #3


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??

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 07, 2016, 09:56:28 PM
 #4

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!!

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
October 08, 2016, 05:01:55 AM
 #5

Before I explain it directly from Electrum, I need to understand your issue.

Electrum: the convenience of a web wallet, without the risks
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 09, 2016, 08:19:43 PM
Last edit: October 09, 2016, 09:26:16 PM by Coin-Keeper
 #6

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

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 09, 2016, 09:46:46 PM
 #7

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')

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
ThomasV
Moderator
Legendary
*
Offline Offline

Activity: 1896
Merit: 1353



View Profile WWW
October 10, 2016, 03:34:18 AM
Last edit: October 10, 2016, 03:45:57 AM by ThomasV
 #8

yes, that seems to be the issue; you failed to install hidapi.
you need to fix that in order to use trezor.

Electrum: the convenience of a web wallet, without the risks
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 10, 2016, 06:26:40 PM
 #9

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.

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 10, 2016, 08:56:39 PM
Last edit: October 10, 2016, 09:32:38 PM by Coin-Keeper
 #10

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!!!!

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3080



View Profile
October 26, 2016, 09:18:35 PM
 #11

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.

Vires in numeris
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 26, 2016, 10:53:31 PM
 #12

Thanks.  I am heading for bed, its late.  Give this a fresh look tomorrow.

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
Carlton Banks
Legendary
*
Offline Offline

Activity: 3430
Merit: 3080



View Profile
October 27, 2016, 10:35:12 AM
 #13

Remember: you can do it! (well, it helps me Smiley )

Vires in numeris
Coin-Keeper (OP)
Hero Member
*****
Offline Offline

Activity: 762
Merit: 606



View Profile
October 27, 2016, 09:38:09 PM
 #14

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!!

BTC: 1PYSBbuKM3kW19xe9TXJQfq64rPhd8XorF
Staked and Verified: https://bitcointalk.org/index.php?topic=996318.msg17102755#msg17102755
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!