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

Cannot detect device #69

Open
patnir opened this issue Aug 7, 2024 · 0 comments
Open

Cannot detect device #69

patnir opened this issue Aug 7, 2024 · 0 comments

Comments

@patnir
Copy link

patnir commented Aug 7, 2024

I am able to install the app on device and delete the app using the VS Code extension.

Running Quick initial device setup cases the following error (even though I did open the right application)

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/Users/patni/dev/app-boilerplate/ledger/lib/python3.12/site-packages/ledgerblue/hostOnboard.py", line 88, in <module>
    dongle.exchange(apdu, timeout=3000)
  File "/Users/patni/dev/app-boilerplate/ledger/lib/python3.12/site-packages/ledgerblue/comm.py", line 163, in exchange
    raise CommException("Invalid status %04x (%s)" % (sw, possibleCause), sw, response)
ledgerblue.commException.CommException: Exception : Invalid status 6d00 (Unexpected state of device: verify that the right application is opened?)

Running Run tests with display - on device produces the following errors:

___________________________________________________ ERROR at setup of test_sign_tx_refused[nanosp] ____________________________________________________
/usr/lib/python3.9/site-packages/ragger/backend/ledgerwallet.py:57: in __enter__
    self._client = LedgerClient()
/usr/lib/python3.9/site-packages/ledgerwallet/client.py:115: in __init__
    raise NoLedgerDeviceException("No Ledger device has been found.")
E   ledgerwallet.client.NoLedgerDeviceException: No Ledger device has been found.

During handling of the above exception, another exception occurred:
/usr/lib/python3.9/site-packages/ragger/conftest/base_conftest.py:220: in backend
    with create_backend(root_pytest_dir, backend_name, firmware, display, log_apdu_file,
/usr/lib/python3.9/site-packages/ragger/backend/ledgerwallet.py:62: in __enter__
    self._client = LedgerClient()
/usr/lib/python3.9/site-packages/ledgerwallet/client.py:115: in __init__
    raise NoLedgerDeviceException("No Ledger device has been found.")
E   ledgerwallet.client.NoLedgerDeviceException: No Ledger device has been found.
---------------------------------------------------------------- Captured stderr setup ----------------------------------------------------------------
[2024-08-07 17:53:08,714][INFO] ragger.gui.RaggerGUI - Initiated
[2024-08-07 17:53:08,715][INFO] ragger.logger - Starting LedgerWalletBackend stream
----------------------------------------------------------------- Captured log setup ------------------------------------------------------------------
INFO     ragger.gui.RaggerGUI:process.py:90 Initiated
INFO     ragger.logger:ledgerwallet.py:55 Starting LedgerWalletBackend stream

I am using an M2 mac. I have a ledger nano S plus. I am using the Ledger VS Code extension.

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

1 participant