-
Notifications
You must be signed in to change notification settings - Fork 77
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
IOError: open failed #21
Comments
I have the exact same error, except for I am trying to run it in Python 3. I am on Ubuntu 16.04.3 LTS, 64-bit. Also, I cannot install the ledgerblue module under Python 2, because ECPy (which is a dependency of ledgerblue) no longer supports Python 2.
|
This issue is two years old, but to you or anyone else... make sure to set the udev rules. Ledger Support: Troubleshooting - What if Ledger Wallet is not recognized on Linux? My team also uses a script for setting udev in Ubuntu.
usage: |
TL;DR: Quit macOS desktop app Ledger Live if it is runningRunning macOS (host), not using Docker/Python virtualenv, I wanted to delete a Ledger App I previously had installed with python -m ledgerblue.deleteApp --targetId 0x31100004 --appName NAME_OF_APP_TO_DELETE (where That resulted in an error: Generated random root public key : b'0481ba79845ad171de2c0f0e38badfbaeede3ec022e7dd8cf5edc406af06d3f6ee10100649bfbcfeb76ac062d41f327afe6532dd45f430fe0febcbd734a549151f'
Traceback (most recent call last):
File "~/.pyenv/versions/anaconda3-5.3.0/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "~/.pyenv/versions/anaconda3-5.3.0/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "~/.pyenv/versions/anaconda3-5.3.0/lib/python3.6/site-packages/ledgerblue/deleteApp.py", line 75, in <module>
dongle = getDongle(args.apdu)
File "~/.pyenv/versions/anaconda3-5.3.0/lib/python3.6/site-packages/ledgerblue/comm.py", line 216, in getDongle
dev.open_path(hidDevicePath)
File "hid.pyx", line 72, in hid.device.open_path
OSError: open failed I tried using |
Great, thank you :) ! |
Hi 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.
The text was updated successfully, but these errors were encountered: