Hi,
not a cython dev, but I believe I hit the very same problem (I'm going
on vacation now, full report in January).
You may fix the compilation error by adding the following unused import:
>>> from gldraw import vec4
Please tell me if it works for you,
Baptiste
Le 26/12/2015 11:59, B. Clausius a écrit :
> Hi cython devs,
>
> a strange error message, showing cython internals:
>
> $ cat gldraw.pxd
> ctypedef float vec4[4]
> ctypedef vec4 mat4[4]
>
> $ cat glarea.pyx
> cimport gldraw
>
> cdef struct Data:
> gldraw.mat4 matrix
>
> cdef Data data
>
> cdef void sync():
> data.changed = True # <- this wrong line produces the error
>
> $ cython glarea.pyx
>
> Error compiling Cython file:
>
> ...
> void PyTuple_SET_ITEM(object p, Py_ssize_t pos, object o)
> void PyList_SET_ITEM(object p, Py_ssize_t pos, object o)
>
>
> @cname("__Pyx_carray_to_py_vec4")
> cdef inline list __Pyx_carray_to_py_vec4(vec4 *v, Py_ssize_t length):
> ^
>
>
> carray.to_py:112:41: 'vec4' is not a type identifier
>
> Error compiling Cython file:
>
> ...
> PyList_SET_ITEM(l, i, value)
> return l
>
>
> @cname("__Pyx_carray_to_tuple_vec4")
> cdef inline tuple __Pyx_carray_to_tuple_vec4(vec4 *v, Py_ssize_t length):
> ^
>
>
> carray.to_py:124:45: 'vec4' is not a type identifier
>
> $ cython --version
> Cython version 0.23.3
>
> Best regards,
>
> B.C.
>
___
cython-devel mailing list
cython-devel@python.org
https://mail.python.org/mailman/listinfo/cython-devel