btchip-python icon indicating copy to clipboard operation
btchip-python copied to clipboard

"enableAlternate2fa" error when using standard install on Ubuntu 16.04

Open rachyandco opened this issue 8 years ago • 0 comments

Objective: using Ledger Nano S with Electrum to sign a bitcoin transaction

Electrum 2.9.3 Ledger bitcoin app: 1.1.10 Ubuntu 16.04 official ubuntu repo: btchip-python 0.1.16-1

This error happens:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/electrum_plugins/ledger/ledger.py", line 365, in sign_transaction
    self.get_client().enableAlternate2fa(False)
AttributeError: btchip instance has no attribute 'enableAlternate2fa'
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/electrum_gui/qt/util.py", line 582, in run
    result = task.task()
  File "/usr/local/lib/python2.7/dist-packages/electrum/wallet.py", line 1141, in sign_transaction
    k.sign_transaction(tx, password)
  File "/usr/local/lib/python2.7/dist-packages/electrum_plugins/ledger/ledger.py", line 422, in sign_transaction
    self.give_error(e, True)
  File "/usr/local/lib/python2.7/dist-packages/electrum_plugins/ledger/ledger.py", line 201, in give_error
    raise Exception(message)
Exception: btchip instance has no attribute 'enableAlternate2fa'

the workaround was to install with PIP version 0.1.24

rachyandco avatar Dec 13 '17 09:12 rachyandco