IOError: open failed
See original GitHub issueHi there. I have the ledger nano s and I’m trying to verify the Secure Element by following the steps given on Ledgers web site.
I made sure to install dependencies first with
sudo apt install libudev-dev libusb-1.0-0-dev virtualenv
Then per their instruction installed ledgerblue package with
sudo pip install --no-cache-dir ledgerblue
Now when I run
python2 -m ledgerblue.checkGenuine --targetId 0x31100002
I get the following error
Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/usr/local/lib/python2.7/dist-packages/ledgerblue/checkGenuine.py", line 127, in <module> dongle = getDongle(args.apdu) File "/usr/local/lib/python2.7/dist-packages/ledgerblue/comm.py", line 188, in getDongle dev.open_path(hidDevicePath) File "hid.pyx", line 72, in hid.device.open_path IOError: open failed
Note I’m using Ubuntu 16.04.2 LTS. Hopefully this is just some simple fix, like maybe I’m not using the correct version of everything.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top GitHub Comments
TL;DR: Quit macOS desktop app Ledger Live if it is running
Running macOS (host), not using Docker/Python virtualenv, I wanted to delete a Ledger App I previously had installed with
python -m ledgerblue.App
. In my Terminal I tried running:(where
0x31100004
is the id of a Ledger Nano S, with firmware 1.6.0)That resulted in an error:
I tried using
sudo python -m .....
but did not help. Then I realized that I had the Desktop app Ledger Live running, after I quit that and rerun the command, it succeded! And I was able to uninstall the app.For me running the command with
sudo
is a workaround for this issue.For ECPy / Python 2.7 there is a workaround here https://github.com/LedgerHQ/blue-loader-python/issues/29, however in my experience the results are the same.
I’m now stuck on https://github.com/LedgerHQ/blue-loader-python/issues/26 with
Invalid sequence
, so can’t confirm that the above leads to a working end result.