Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read Monero Elect keywords with "online mode" #105

Open
lpiechowiak opened this issue May 31, 2022 · 2 comments
Open

Can't read Monero Elect keywords with "online mode" #105

lpiechowiak opened this issue May 31, 2022 · 2 comments

Comments

@lpiechowiak
Copy link

lpiechowiak commented May 31, 2022

Hello. I have issue than I can't resolve from a long time. I have Ledger Nano X, newest firmware, everything installed as you describe in instruction, but I can't read election words in online mode. Device is bricked after this command. Only disconnect from usb-c make it alive again
MacOS Catalina 10.15.7 (below you have similar error to some Live Linux distro)
Here is the log:

$ PYTHONPATH=pwd/src python3 -m ledger.monero.seedconv.py online

=============================================================
Monero Seed Converter v0.9. Copyright (c) Ledger SAS 20018.
Licensed under the Apache License, Version 2.0

  • Select Language
    2 : English (English)
    3 : Esperanto (Esperanto)
    4 : Français (French)
    5 : Italiano (Italian)
    7 : Lobjan (Lobjan)
    8 : Português (Portuguese)
    Enter the number corresponding to the language of your choice (2):
    Open device...
    Erase old key words...
    Traceback (most recent call last):
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/runpy.py", line 183, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/lib/python3.7/runpy.py", line 109, in _get_module_details
    import(pkg_name)
    File "/Users/poison/KRYPTO/app-monero-master-2/tools/python/src/ledger/monero/seedconv.py", line 356, in
    get_online_seed(retrieve_language(True))
    File "/Users/poison/KRYPTO/app-monero-master-2/tools/python/src/ledger/monero/seedconv.py", line 303, in get_online_seed
    send_dict_chunk(dongle,lang['prefix_length'], chunk, start, cnt)
    File "/Users/poison/KRYPTO/app-monero-master-2/tools/python/src/ledger/monero/seedconv.py", line 276, in send_dict_chunk
    dongle.exchange(apdu)
    File "/Library/Python/3.7/site-packages/ledgerblue/comm.py", line 93, in exchange
    result = self.waitImpl.waitFirstResponse(timeout)
    File "/Library/Python/3.7/site-packages/ledgerblue/comm.py", line 152, in waitFirstResponse
    data = self.device.read(65)
    File "hid.pyx", line 200, in hid.device.read
    OSError: read error
    Load dictionnary...............................................................................................

And after this my Ledger is turning off and that's all folks.
Any hints? Any suggestions?

Is there any possiblity to publish binary for all ledger+monero users or it isn't so easy as I think?

Best regards.
Luke

P.S. I've also checked on some Linux Live distros, similar error + one extra error "no dongle found"

PYTHONPATH=pwd/src python3 -m ledger.monero.seedconv.py online

=============================================================
Monero Seed Converter v0.9. Copyright (c) Ledger SAS 20018.
Licensed under the Apache License, Version 2.0

  • Select Language
    2 : English (English)
    3 : Esperanto (Esperanto)
    4 : Français (French)
    5 : Italiano (Italian)
    7 : Lobjan (Lobjan)
    8 : Português (Portuguese)
    Enter the number corresponding to the language of your choice (2): 2
    Open device...
    Erase old key words...
    Traceback (most recent call last):
    File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
    File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
    import(pkg_name)
    File "/home/linux/Downloads/app-monero-master/tools/python/src/ledger/monero/seedconv.py", line 356, in
    get_online_seed(retrieve_language(True))
    File "/home/linux/Downloads/app-monero-master/tools/python/src/ledger/monero/seedconv.py", line 303, in get_online_seed
    send_dict_chunk(dongle,lang['prefix_length'], chunk, start, cnt)
    File "/home/linux/Downloads/app-monero-master/tools/python/src/ledger/monero/seedconv.py", line 276, in send_dict_chunk
    dongle.exchange(apdu)
    File "/home/linux/.local/lib/python3.10/site-packages/ledgerblue/comm.py", line 93, in exchange
    result = self.waitImpl.waitFirstResponse(timeout)
    File "/home/linux/.local/lib/python3.10/site-packages/ledgerblue/comm.py", line 152, in waitFirstResponse
    data = self.device.read(65)
    File "hid.pyx", line 219, in hid.device.read
    OSError: read error
    Load dictionnary...............................................................................................
     

=============================================================
Monero Seed Converter v0.9. Copyright (c) Ledger SAS 20018.
Licensed under the Apache License, Version 2.0

  • Select Language
    2 : English (English)
    3 : Esperanto (Esperanto)
    4 : Français (French)
    5 : Italiano (Italian)
    7 : Lobjan (Lobjan)
    8 : Português (Portuguese)
    Enter the number corresponding to the language of your choice (2):
    Open device...
    Traceback (most recent call last):
    File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
    File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
    import(pkg_name)
    File "/home/linux/Downloads/app-monero-master/tools/python/src/ledger/monero/seedconv.py", line 356, in
    get_online_seed(retrieve_language(True))
    File "/home/linux/Downloads/app-monero-master/tools/python/src/ledger/monero/seedconv.py", line 284, in get_online_seed
    dongle = getDongle(False)
    File "/home/linux/.local/lib/python3.10/site-packages/ledgerblue/comm.py", line 240, in getDongle
    raise CommException("No dongle found")
    ledgerblue.commException.CommException: Exception : No dongle found

BTW. After this operation - Dongle is bricked and doesn't response to any key, only when I disconnect device it works back

@logicalup
Copy link

logicalup commented Jun 19, 2022

Was able to replicate the same exact behavior/bug with Python 3.9.7, MacOs Monterey 12.4, and ledger nano x with firmware 2.0.2 and monero app version 1.78:

app-monero/tools/python (master) » PYTHONPATH=`pwd`/src  python3 -m ledger.monero.seedconv.py online                                                                             1 ↵ jack@Algo-Smith-MBP

=============================================================
Monero Seed Converter v0.9. Copyright (c) Ledger SAS 20018.
Licensed under the Apache License, Version 2.0
=============================================================
        
* Select Language
   2 : English (English)
   3 : Esperanto (Esperanto)
   4 : Français (French)
   5 : Italiano (Italian)
   7 : Lobjan (Lobjan)
   8 : Português (Portuguese)
Enter the number corresponding to the language of your choice (2): 
Open device...
Erase old key words...
Traceback (most recent call last):
  File "/Users/jack/.asdf/installs/python/3.9.7/lib/python3.9/runpy.py", line 188, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "/Users/jack/.asdf/installs/python/3.9.7/lib/python3.9/runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "/Users/jack/projects/app-monero/tools/python/src/ledger/monero/seedconv.py", line 356, in <module>
    get_online_seed(retrieve_language(True))
  File "/Users/jack/projects/app-monero/tools/python/src/ledger/monero/seedconv.py", line 303, in get_online_seed
    send_dict_chunk(dongle,lang['prefix_length'], chunk, start, cnt)
  File "/Users/jack/projects/app-monero/tools/python/src/ledger/monero/seedconv.py", line 276, in send_dict_chunk
    dongle.exchange(apdu)
  File "/Users/jack/.asdf/installs/python/3.9.7/lib/python3.9/site-packages/ledgerblue/comm.py", line 93, in exchange
    result = self.waitImpl.waitFirstResponse(timeout)
  File "/Users/jack/.asdf/installs/python/3.9.7/lib/python3.9/site-packages/ledgerblue/comm.py", line 152, in waitFirstResponse
    data = self.device.read(65)
  File "hid.pyx", line 219, in hid.device.read
OSError: read error
Load dictionnary...............................................................................................%

@logicalup
Copy link

this is duplicate of #104 but I wish 104 had better title

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants