Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

FIXED: Problems installing btchip-pyhon on Ubuntu 17.x via PIP #27

Open
MarcinOrlowski opened this issue Oct 12, 2017 · 0 comments
Open

Comments

@MarcinOrlowski
Copy link

MarcinOrlowski commented Oct 12, 2017

My first attempt pip install btchip-python failed and error message suggested I lack libusb package. I fixed this by doing pip install libusb, yet btchip-python installation was still failing, this time with:

....
hidapi/libusb/hid.c:47:20: fatal error: libusb.h: No such file or directory

I installed missling dev package:

apt install libusb-dev

but it did not help much, and it was still failing the same way. It appears that on Ubuntu/Debian you need to install libusb-1.0.0-dev instead of libusb-dev:

apt install libusb-1.0.0-dev

This solved my problem, but instead it started failing

....
/usr/bin/ld: cannot find -ludev

which I solved with

apt install libudev-dev

This time all worked fine

$ pip install btchip-python
Collecting btchip-python
Collecting hidapi>=0.7.99 (from btchip-python)
  Using cached hidapi-0.7.99.post21.tar.gz
Collecting setuptools>=19.0 (from hidapi>=0.7.99->btchip-python)
  Using cached setuptools-36.6.0-py2.py3-none-any.whl
Building wheels for collected packages: hidapi
  Running setup.py bdist_wheel for hidapi ... done
  Stored in directory: /<PATH>/.cache/pip/wheels/90/ea/5c/9827ea51c117f43a0df937f29d02630ecf0bdbc3e5b2fa2bba
Successfully built hidapi
Installing collected packages: setuptools, hidapi, btchip-python
Successfully installed btchip-python-0.1.21 hidapi-0.7.99.post21 setuptools-36.6.0

If you do not have to install it via PIP, then

apt install python-btchip

would be much less painful.

Hope this helps.

@MarcinOrlowski MarcinOrlowski changed the title FIXED: Problems installing btchip-pyhon on Ubuntu 17.x FIXED: Problems installing btchip-pyhon on Ubuntu 17.x via PIP Oct 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant