diff --git a/wrappers/python/freenect.pyx b/wrappers/python/freenect.pyx index 5bda18b4..f69483d4 100644 --- a/wrappers/python/freenect.pyx +++ b/wrappers/python/freenect.pyx @@ -27,7 +27,6 @@ import numpy as np cimport numpy as npc cdef extern from "numpy/arrayobject.h": - void import_array() cdef object PyArray_SimpleNewFromData(int nd, npc.npy_intp *dims, int typenum, void *data) @@ -455,7 +454,7 @@ def base_runloop(CtxPtr ctx, body=None): except Kill: pass -import_array() +npc.import_array() cdef object _depth_cb_np(void *data, freenect_frame_mode *mode): cdef npc.npy_intp dims[2]