Giter Site home page Giter Site logo

Comments (5)

jbaiter avatar jbaiter commented on August 15, 2024

Same with Debian unstable:

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 -O2 -pipe -march=native -fPIC -I/home/jbaiter/.envs/spreads/build/hidapi/hidapi/hidapi -I/usr/include/libusb-1.0 -I/usr/include/python2.7 -c hid.c -o build/temp.linux-x86_64-2.7/hid.o
    x86_64-linux-gnu-gcc: error: hid.c: No such file or directory
    x86_64-linux-gnu-gcc: fatal error: no input files
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 4
    Complete output from command /home/jbaiter/.envs/spreads/bin/python -c "import setuptools;__file__='/home/jbaiter/.envs/spreads/build/hidapi/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-KtyJO8-record/install-record.txt --single-version-externally-managed --install-headers /home/jbaiter/.envs/spreads/include/site/python2.7:

from cython-hidapi.

prusnak avatar prusnak commented on August 15, 2024

Cannot reproduce with pip 1.5 on openSUSE 13.1.

The problem I have on Mac is with pip version 1.4.1. You do have the same version right?

from cython-hidapi.

jbaiter avatar jbaiter commented on August 15, 2024

Hm, no, I have a more recent version:

(hidapi)~ ◆ pip --version
pip 1.5.2 from /home/jbaiter/.envs/hidapi/local/lib/python2.7/site-packages (python 2.7)

Cython is also the most recent version, from pip:

(hidapi)~ ◆ pip freeze |grep Cython
Cython==0.20.1

from cython-hidapi.

jbaiter avatar jbaiter commented on August 15, 2024

Interestingly enough, the problem only arises when Cython was installed in a virtual environment.
If I install hidapi with my system-wide Python/Cython installation, everything works flawlessly....

from cython-hidapi.

jbaiter avatar jbaiter commented on August 15, 2024

I think I have it now, the problem was with an outdated version of virtualenv. I was using 1.9.1 previously, after an update to 1.11.1, everything works.

from cython-hidapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.