benj_thompson
Posts: 5
Joined: Mon Jan 08, 2018 3:30 am

Installing python-trezor

Wed Jan 31, 2018 5:01 am

The directions in the repo for installing the python-trezor package (https://github.com/trezor/python-trezor) don't quite match what you need on Solus, so this is what I did to get it to install. It's possible that adding libgudev-devel was redundant.

Code: Select all

$ sudo eopkg install python-devel cython git libusb-devel systemd-devel
$ sudo eopkg install -c system.devel
$ sudo eopkg install pip
$ git clone https://github.com/trezor/python-trezor.git
$ cd python-trezor
$ sudo -H pip install -r requirements.txt
$ sudo -H pip install trezor
$ sudo -H pip install trezor-agent
Last edited by benj_thompson on Mon Apr 16, 2018 6:31 pm, edited 2 times in total.

benj_thompson
Posts: 5
Joined: Mon Jan 08, 2018 3:30 am

Re: Installing python-trezor

Wed Jan 31, 2018 5:08 am

I was also able to "sudo pip install trezor-agent" after finishing the above.

Michiel
Posts: 13
Joined: Thu Dec 28, 2017 8:44 pm
Location: near Apeldoorn, NL
Contact: Twitter

Re: Installing python-trezor

Wed Jan 31, 2018 9:18 am

Thanks for your post, I gave it a try.
benj_thompson wrote:
Wed Jan 31, 2018 5:01 am
The directions in the repo for installing the python-trezor package (https://github.com/trezor/python-trezor) don't quite match what you need on Solus, so this is what I did to get it to install. It's possible that adding libgudev-devel was redundant.

Code: Select all

$ sudo eopkg install python-devel cython git libusb-devel systemd-devel
worked

Code: Select all

$ sudo eopkg -c system.devel
error command not found --> typo/should read sudo eopkg install -c system.devel

Code: Select all

$ git clone https://github.com/trezor/python-trezor.git
$ cd python-trezor
worked

Code: Select all

$ sudo -H pip install -r requirements
error, I think this can be skipped (I got two errors, first I did not have pip installed yet on my Solus system, second this syntax resulted in "Could not open requirements file: [Errno 2] File or map does not exist: 'requirements'"

EDIT seems typo as well, should read

sudo -H pip install -r requirements.txt (with .txt at the end)

Code: Select all

$ sudo -H pip install trezor
worked

So to sum up (but someone else should confirm this, because I had to solve several errors, and installed some things (like gcc and on 2nd occasion the libgudev-devel packages, but the clue was in the syntax error of the missing 'install' in sudo eopkg install -c system.devel) that might not have been necessary to solve the problems) I'd suggest:

Code: Select all

sudo eopkg install python-devel cython git libusb-devel systemd-devel
sudo eopkg install -c system.devel
sudo eopkg install pip
git clone https://github.com/trezor/python-trezor.git
cd python-trezor
sudo -H pip install -r requirements.txt
sudo -H pip install trezor
sudo -H pip install trezor-agent

benj_thompson
Posts: 5
Joined: Mon Jan 08, 2018 3:30 am

Re: Installing python-trezor

Mon Apr 16, 2018 6:31 pm

Thanks! I must not have been very careful copying my commands. I've updated mine in the OP to match yours.

Return to “Tutorials”