OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.57k stars 1.15k forks source link

Can't import python3 wrapper (ModuleNotFoundError: No module named 'freenect') #683

Open Looki2000 opened 7 months ago

Looki2000 commented 7 months ago

I'm trying to build libfreenect wrapper for python 3 on Raspberry OS (pi 3 B) but I can't import it. There are no errrors when building it. (freenect-glview is working fine) Running python3 with sudo and restarting the terminal does not help. freenect is not present in pip list I have tried to follow the official build Instructions and this (I had to set DCYTHON_EXECUTABLE to /usr/local/bin/cython). How can I fix that?

Looki2000 commented 7 months ago

I managed to make it work by copying freenect.so into every possible site-packages and dist-packages locations of python3/3.9 and it started to work. Sadly, it's not very smooth, spams a lot of [Stream 70] Invalid magic ####, the IR projector stays on after everything closes and I have to run freenect-micview each time I plug in the Kinect to upload the firmware. (Kinect for Windows). I think I will try to make the official primesense python library work on ARM raspi.