Bitcoin Forum
December 15, 2017, 09:10:51 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Trezor lock_time error  (Read 295 times)
sportscliche
Jr. Member
*
Offline Offline

Activity: 44


View Profile
August 14, 2017, 12:07:04 AM
 #1

I setup a Trezor hardware wallet and moved my BTC to it.  The balance is correct and Trezor is unlocking the new Electrum wallet.  When I attempt to send BTC from it, I get the following message:

TypeError: sign_tx() got an unexpected keyword argument 'lock_time'

I am on Ubuntu.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513329051
Hero Member
*
Offline Offline

Posts: 1513329051

View Profile Personal Message (Offline)

Ignore
1513329051
Reply with quote  #2

1513329051
Report to moderator
GiGa#
Full Member
***
Offline Offline

Activity: 199


View Profile
August 14, 2017, 12:29:04 AM
 #2

Install the latest python-trezor from Github
sportscliche
Jr. Member
*
Offline Offline

Activity: 44


View Profile
August 14, 2017, 01:22:34 AM
 #3

I removed python-trezor 0.6, downloaded the current version from github and ran

sudo pip install trezor

When I attempt to launch Electrum 2.9.3 or trezorctl, I get the following error

TypeError: __init__() got an unexpected keyword argument 'syntax'

My system is running:
protobuf 3.3.0
libprotoc 2.6.1

I can recover the Electrum GUI by switching back to 0.6, but am unable to move any funds from the hardware wallet.


GiGa#
Full Member
***
Offline Offline

Activity: 199


View Profile
August 14, 2017, 03:02:19 PM
 #4

I usually build from source and never have problems (I don't use pip).  This is the workflow I use:

- Create Github directory in home directory
-    cd Github
-    git clone https://github.com/spesmilo/electrum
-    git clone https://github.com/trezor/python-trezor
-    cd python-trezor
-    sudo python setup.py install   *** resolve/install any missing dependencies ***  - should get version 0.8.0 installed
- Check to see if Trezor works - plug it - then issue command:
           trezorctl list   (your USB port should show up)
           trezorctl list_coins (your supported coins should show up)
           trezorctl get_features (a whole bunch of information, including your firmware ID at the beginning of the dump)
Ensure that your Trezor is at least at firmware 1.5.0 (or 1.5.1 if you want BCash support).   If not, upgrade firmware at wallet.trezor.io (beta-wallet.trezor.io for the 1.5.1 version).

-   cd ..
-   cd Electrum
-   sudo python setup.py install  -- should get version 2.9.3 installed
-   ./electrum

You should run the setup.py install command on electrum, every time you update a dependency like python-trezor, btchip-python (for Ledger wallets), or python-keepkey (for KeepKey).
sportscliche
Jr. Member
*
Offline Offline

Activity: 44


View Profile
August 15, 2017, 04:09:06 AM
 #5

I took a far less systematic approach and hacked around until I got it to work.  The key seemed to be un-installing protobuf and then letting the setup.py routine in python-trezor re-install it. 

I appreciate the guide written here and I'm sure others will find it useful. 
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!