Skip to content
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

Build from PyPi fails because of missing 'hid.c' #7

Open
jbaiter opened this issue Aug 23, 2013 · 2 comments
Open

Build from PyPi fails because of missing 'hid.c' #7

jbaiter opened this issue Aug 23, 2013 · 2 comments

Comments

@jbaiter
Copy link

jbaiter commented Aug 23, 2013

When I try to install hidapi from PyPi using pip, the compilation fails because it cannot find hid.c:

$ pip install hidapi                                                                                                                                                      
Downloading/unpacking hidapi
  Downloading hidapi-0.7.0-1.tar.gz
  Running setup.py egg_info for package hidapi

Installing collected packages: hidapi
  Running setup.py install for hidapi
    building 'hid' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -I/usr/include/libusb-1.0 -fPIC -I/usr/include/python2.7 -c hid.c -o build/temp.linux-x86_64-2
.7/hid.o
    gcc-4.7.real: error: hid.c: No such file or directory
    gcc-4.7.real: fatal error: no input files
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
@spacenate
Copy link

I also ran in to this issue, on Mac OS X (10.9.5). This occurred when using the PyPi package through pip, as well as when trying to build from source (using trezor's branch). I was able to resolve it by upgrading setuptools, like so:

[sudo] pip install setuptools --upgrade

@basnappl
Copy link

basnappl commented Jan 6, 2019

Thank you spacenate. Upgrading setuptools also resolved this issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants