Advertisement
chrsybrw

1st error in verify Ledger Nano S

Jan 22nd, 2018
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.11 KB | None | 0 0
  1. sudo easy_install virtualenv
  2. [sudo] password for lulu2:
  3. Searching for virtualenv
  4. Best match: virtualenv 15.1.0
  5. Adding virtualenv 15.1.0 to easy-install.pth file
  6. Installing virtualenv script to /usr/local/bin
  7.  
  8. Using /usr/local/lib/python2.7/dist-packages
  9. Processing dependencies for virtualenv
  10. Finished processing dependencies for virtualenv
  11. lulu2@linux:~$ mkdir /tmp/nanos
  12. lulu2@linux:~$ virtualenv /tmp/nanos/
  13. New python executable in /tmp/nanos/bin/python
  14. Installing setuptools, pip, wheel...done.
  15. lulu2@linux:~$ source /tmp/nanos/bin/activate
  16. (nanos) lulu2@linux:~$ pip install — no-cache-dir ledgerblue
  17. ERROR: unknown command "install — no-cache-dir"
  18. (nanos) lulu2@linux:~$ pip install --no-cache-dir ledgerblue
  19. Collecting ledgerblue
  20.   Downloading ledgerblue-0.1.16.tar.gz
  21. Collecting hidapi>=0.7.99 (from ledgerblue)
  22.   Downloading hidapi-0.7.99.post21.tar.gz (51kB)
  23.     100% |████████████████████████████████| 61kB 101kB/s
  24. Collecting protobuf>=2.6.1 (from ledgerblue)  Downloading protobuf-3.5.1-cp27-cp27mu-manylinux1_x86_64.whl (6.4MB)
  25.     100% |████████████████████████████████| 6.4MB 107kB/s
  26. Collecting pycrypto>=2.6.1 (from ledgerblue)
  27.   Downloading pycrypto-2.6.1.tar.gz (446kB)
  28.     100% |████████████████████████████████| 450kB 2.2MB/s
  29. Collecting future (from ledgerblue)
  30.   Downloading future-0.16.0.tar.gz (824kB)
  31.     100% |████████████████████████████████| 829kB 1.6MB/s
  32. Collecting ecpy>=0.8.1 (from ledgerblue)
  33.   Downloading ECPy-0.8.3.tar.gz
  34. ECPy requires Python '>=3' but the running Python is 2.7.14
  35. (nanos) lulu2@linux:~$ pip3  install --no-cache-dir ledgerblue
  36. Collecting ledgerblue
  37.   Downloading ledgerblue-0.1.16.tar.gz
  38. Collecting hidapi>=0.7.99 (from ledgerblue)
  39.   Downloading hidapi-0.7.99.post21.tar.gz (51kB)
  40.     100% |████████████████████████████████| 61kB 667kB/s
  41. Collecting protobuf>=2.6.1 (from ledgerblue)
  42.   Downloading protobuf-3.5.1-cp36-cp36m-manylinux1_x86_64.whl (6.4MB)
  43.     100% |████████████████████████████████| 6.4MB 3.2MB/s
  44. Collecting pycrypto>=2.6.1 (from ledgerblue)
  45.   Downloading pycrypto-2.6.1.tar.gz (446kB)
  46.     100% |████████████████████████████████| 450kB 292kB/s
  47. Collecting future (from ledgerblue)  Downloading future-0.16.0.tar.gz (824kB)
  48.     100% |████████████████████████████████| 829kB 599kB/s
  49. Collecting ecpy>=0.8.1 (from ledgerblue)
  50.   Downloading ECPy-0.8.3.tar.gz
  51. Collecting pillow>=3.4.0 (from ledgerblue)
  52.   Downloading Pillow-5.0.0-cp36-cp36m-manylinux1_x86_64.whl (5.9MB)
  53.     100% |████████████████████████████████| 5.9MB 1.6MB/s
  54. Collecting setuptools>=19.0 (from hidapi>=0.7.99->ledgerblue)
  55.   Downloading setuptools-38.4.0-py2.py3-none-any.whl (489kB)
  56.     100% |████████████████████████████████| 491kB 1.4MB/s
  57. Collecting six>=1.9 (from protobuf>=2.6.1->ledgerblue)
  58.   Downloading six-1.11.0-py2.py3-none-any.whl
  59. Installing collected packages: setuptools, hidapi, six, protobuf, pycrypto, future, ecpy, pillow, ledgerblue
  60.   Running setup.py install for hidapi ... error
  61.     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=:
  62.     running install
  63.     running build
  64.     running build_ext
  65.     cythoning hid.pyx to hid.c
  66.     building 'hid' extension
  67.     creating build
  68.     creating build/temp.linux-x86_64-3.6
  69.     creating build/temp.linux-x86_64-3.6/hidapi
  70.     creating build/temp.linux-x86_64-3.6/hidapi/libusb
  71.     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
  72.     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
  73.     hidapi/libusb/hid.c:47:10: fatal error: libusb.h: No such file or directory
  74.      #include <libusb.h>
  75.               ^~~~~~~~~~
  76.     compilation terminated.
  77.     error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  78.    
  79.     ----------------------------------------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/
  80. (nanos) lulu2@linux:~$ python -m ledgerblue.checkGenuine --targetId 0x31100002
  81. /tmp/nanos/bin/python: No module named ledgerblue
  82. (nanos) lulu2@linux:~$ python3 -m ledgerblue.checkGenuine --targetId 0x31100002
  83. /usr/bin/python3: Error while finding module specification for 'ledgerblue.checkGenuine' (ModuleNotFoundError: No module named 'ledgerblue')
  84. (nanos) lulu2@linux:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement