gbishop / cython-hidapi

Python wrapper for the hidapi (not active, use one of the forks)
Other
50 stars 56 forks source link

Compilation error building "setup.py" #18

Closed MatthieuMuschinowski closed 9 years ago

MatthieuMuschinowski commented 9 years ago

Hello,

I cannot get "python setup.py build" to work, I get the following error: "

Error compiling Cython file:

... cdef extern from "stdlib.h": void free(void* ptr) void* malloc(size_t size)

cdef extern from : object PyUnicode_FromWideChar(const wchar_t w, Py_ssize_t size)

^

hid.pyx:14:46: Expected ')', found '*' "

I'm new at python and I don't really see what's wrong, my guess is I'm missing a plugin but I didn't find which one...

I'm running on Ubuntu 14.04.02 LTS.

Thanks in advance!

MatthieuMuschinowski commented 9 years ago

Problem solved by updating Cython to the most recent version with "sudo pip install cython --upgrade" .