conorpp / u2f-zero

U2F USB token optimized for physical security, affordability, and style
Other
2.42k stars 203 forks source link

build issues, hidapi, udev #34

Closed ThomasWaldmann closed 7 years ago

ThomasWaldmann commented 7 years ago

I tried installing the client as described in your docs, but it does not work (on Ubuntu 16.04 64bit).

First issue (happens both on python 2.7 and 3.5):

(u2f-zero-env3)tw@tux:~/w/u2f-zero/tools/u2f_zero_client$ pip install -r requirements.txt 
...
error: unknown file type '.pxd' (from 'chid.pxd')

On the hidapi project page I found an additional hint missing in your docs / requirements.txt:

$ pip install -U setuptools

Now it gets farther, but still does not build:

/usr/bin/ld: cannot find -ludev

OK, so I did a apt-get install libudev-dev, which resolves this issue:

Successfully installed hidapi

So, could you please add the missing stuff to the docs?

conorpp commented 7 years ago

Thanks! I've added setuptools to the requirements.txt and added libudev-dev to wiki instructions.