Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo easy_install virtualenv
- [sudo] password for lulu2:
- Searching for virtualenv
- Best match: virtualenv 15.1.0
- Adding virtualenv 15.1.0 to easy-install.pth file
- Installing virtualenv script to /usr/local/bin
- Using /usr/local/lib/python2.7/dist-packages
- Processing dependencies for virtualenv
- Finished processing dependencies for virtualenv
- lulu2@linux:~$ mkdir /tmp/nanos
- lulu2@linux:~$ virtualenv /tmp/nanos/
- New python executable in /tmp/nanos/bin/python
- Installing setuptools, pip, wheel...done.
- lulu2@linux:~$ source /tmp/nanos/bin/activate
- (nanos) lulu2@linux:~$ pip install — no-cache-dir ledgerblue
- ERROR: unknown command "install — no-cache-dir"
- (nanos) lulu2@linux:~$ pip install --no-cache-dir ledgerblue
- Collecting ledgerblue
- Downloading ledgerblue-0.1.16.tar.gz
- Collecting hidapi>=0.7.99 (from ledgerblue)
- Downloading hidapi-0.7.99.post21.tar.gz (51kB)
- 100% |████████████████████████████████| 61kB 101kB/s
- Collecting protobuf>=2.6.1 (from ledgerblue) Downloading protobuf-3.5.1-cp27-cp27mu-manylinux1_x86_64.whl (6.4MB)
- 100% |████████████████████████████████| 6.4MB 107kB/s
- Collecting pycrypto>=2.6.1 (from ledgerblue)
- Downloading pycrypto-2.6.1.tar.gz (446kB)
- 100% |████████████████████████████████| 450kB 2.2MB/s
- Collecting future (from ledgerblue)
- Downloading future-0.16.0.tar.gz (824kB)
- 100% |████████████████████████████████| 829kB 1.6MB/s
- Collecting ecpy>=0.8.1 (from ledgerblue)
- Downloading ECPy-0.8.3.tar.gz
- ECPy requires Python '>=3' but the running Python is 2.7.14
- (nanos) lulu2@linux:~$ pip3 install --no-cache-dir ledgerblue
- Collecting ledgerblue
- Downloading ledgerblue-0.1.16.tar.gz
- Collecting hidapi>=0.7.99 (from ledgerblue)
- Downloading hidapi-0.7.99.post21.tar.gz (51kB)
- 100% |████████████████████████████████| 61kB 667kB/s
- Collecting protobuf>=2.6.1 (from ledgerblue)
- Downloading protobuf-3.5.1-cp36-cp36m-manylinux1_x86_64.whl (6.4MB)
- 100% |████████████████████████████████| 6.4MB 3.2MB/s
- Collecting pycrypto>=2.6.1 (from ledgerblue)
- Downloading pycrypto-2.6.1.tar.gz (446kB)
- 100% |████████████████████████████████| 450kB 292kB/s
- Collecting future (from ledgerblue) Downloading future-0.16.0.tar.gz (824kB)
- 100% |████████████████████████████████| 829kB 599kB/s
- Collecting ecpy>=0.8.1 (from ledgerblue)
- Downloading ECPy-0.8.3.tar.gz
- Collecting pillow>=3.4.0 (from ledgerblue)
- Downloading Pillow-5.0.0-cp36-cp36m-manylinux1_x86_64.whl (5.9MB)
- 100% |████████████████████████████████| 5.9MB 1.6MB/s
- Collecting setuptools>=19.0 (from hidapi>=0.7.99->ledgerblue)
- Downloading setuptools-38.4.0-py2.py3-none-any.whl (489kB)
- 100% |████████████████████████████████| 491kB 1.4MB/s
- Collecting six>=1.9 (from protobuf>=2.6.1->ledgerblue)
- Downloading six-1.11.0-py2.py3-none-any.whl
- Installing collected packages: setuptools, hidapi, six, protobuf, pycrypto, future, ecpy, pillow, ledgerblue
- Running setup.py install for hidapi ... error
- Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4bxb8sp_/hidapi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mdwixcpn-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
- running install
- running build
- running build_ext
- cythoning hid.pyx to hid.c
- building 'hid' extension
- creating build
- creating build/temp.linux-x86_64-3.6
- creating build/temp.linux-x86_64-3.6/hidapi
- creating build/temp.linux-x86_64-3.6/hidapi/libusb
- x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python3.6m -c hid.c -o build/temp.linux-x86_64-3.6/hid.o
- x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fdebug-prefix-map=/build/python3.6-sXpGnM/python3.6-3.6.3=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Ihidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python3.6m -c hidapi/libusb/hid.c -o build/temp.linux-x86_64-3.6/hidapi/libusb/hid.o
- hidapi/libusb/hid.c:47:10: fatal error: libusb.h: No such file or directory
- #include <libusb.h>
- ^~~~~~~~~~
- compilation terminated.
- error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
- ----------------------------------------Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-4bxb8sp_/hidapi/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-mdwixcpn-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-4bxb8sp_/hidapi/
- (nanos) lulu2@linux:~$ python -m ledgerblue.checkGenuine --targetId 0x31100002
- /tmp/nanos/bin/python: No module named ledgerblue
- (nanos) lulu2@linux:~$ python3 -m ledgerblue.checkGenuine --targetId 0x31100002
- /usr/bin/python3: Error while finding module specification for 'ledgerblue.checkGenuine' (ModuleNotFoundError: No module named 'ledgerblue')
- (nanos) lulu2@linux:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement