Re: /libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File or directory not found
Hello. I have installed these packages on Debian 11 : freenect/stable,now 1:0.5.3-2 amd64 [installed] libfreenect-bin/stable,now 1:0.5.3-2 amd64 [installed, automatic] libfreenect-demos/stable,now 1:0.5.3-2 amd64 [installed] libfreenect-dev/stable,now 1:0.5.3-2 amd64 [installed] libfreenect-doc/stable,stable,now 1:0.5.3-2 all [installed, automatic] libfreenect0.5/stable,now 1:0.5.3-2 amd64 [installed, automatic] What I really like to do is to choose the kinect xbox 360 as a mic. I find it very comfortable to talk without having a mic in my mouth. I can use it to send voice messages to my whatsapp and Telegram friends. I've already done the same with the kinect 2 that I have attached to my Jetson nano and it worked. But on the Jetson Nano I have installed Ubuntu 20.04. So,I would like to know...what's still missing on Debian,after having installed the packages that you see above ? Because I don't see any Xbox NUI Sensor Analog Surround 4.0 on the XFCE pulseaudio addon (instead,it is present on Ubuntu 20.04). Thanks. On Sun, Apr 2, 2023 at 1:18 AM Kushal Kumaran wrote: > On Sat, Apr 01 2023 at 10:42:11 PM, Mario Marietto > wrote: > > Hello. > > > > I'm trying to compile libfreenect because I want to use my kinect xbox > 360 > > on Debian 11. I'm following the tutorial that I've found here : > > > > libfreenect is already packaged in debian. Is there a reason you're > building from source? It seems like quite a complex package to build. > If you must, consider taking a look at the existing debian packaging for > hints. > > > snipped numpy/cython errors > > -- > regards, > kushal > > -- Mario.
Re: /libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File or directory not found
On Sat, Apr 01 2023 at 10:42:11 PM, Mario Marietto wrote: > Hello. > > I'm trying to compile libfreenect because I want to use my kinect xbox 360 > on Debian 11. I'm following the tutorial that I've found here : > libfreenect is already packaged in debian. Is there a reason you're building from source? It seems like quite a complex package to build. If you must, consider taking a look at the existing debian packaging for hints. > snipped numpy/cython errors -- regards, kushal
/libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File or directory not found
Hello. I'm trying to compile libfreenect because I want to use my kinect xbox 360 on Debian 11. I'm following the tutorial that I've found here : https://github.com/OpenKinect/libfreenect here : https://itsourcecode.com/modulenotfounderror/no-module-named-numpy-core-_multiarray_umath-solved/ here : https://github.com/lava/matplotlib-cpp/issues/46 this is what I did : # python3 --versionPython 3.8.10# /usr/bin/python3 --versionPython 3.8.10marietto@marietto:/mnt/zroot2/zroot2/libfreenect/build# sudo cmake .. -L -DBUILD_PYTHON3=ON -DPython3_EXACTVERSION=3.8.10 -DCYTHON_EXECUTABLE=/usr/bin/cython3 -DBUILD_REDIST_PACKAGE=OFF -DPYTHON_INCLUDE_DIR=/usr/local/lib/python3.8/dist-packages/numpy/core/include-- Operating system is Linux-- Got System Processor x86_64-- Linux x86_64 Detected-- libfreenect will be installed to /usr/local-- Headers will be installed to /usr/local/include/libfreenect-- Libraries will be installed to /usr/local/lib-- Found libusb-1.0:-- - Includes: /usr/include/libusb-1.0-- - Libraries: /usr/lib/x86_64-linux-gnu/libusb-1.0.soTraceback (most recent call last): File "/usr/local/lib/python3.8/numpy/core/__init__.py", line 23, in from . import multiarray File "/usr/local/lib/python3.8/numpy/core/multiarray.py", line 10, in from . import overrides File "/usr/local/lib/python3.8/numpy/core/overrides.py", line 6, in from numpy.core._multiarray_umath import (ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'During handling of the above exception, another exception occurred:Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.8/numpy/__init__.py", line 141, in from . import core File "/usr/local/lib/python3.8/numpy/core/__init__.py", line 49, in raise ImportError(msg)ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!Importing the numpy C-extensions failed. This error can happen formany reasons, often due to issues with your setup or how NumPy wasinstalled.We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.htmlPlease note and check the following: * The Python version is: Python3.8 from "/usr/local/bin/python3.8" * The NumPy version is: "1.24.2"and make sure that they are the versions you expect.Please carefully study the documentation linked above for further help.Original error was: No module named 'numpy.core._multiarray_umath'-- Configuring done (0.6s)-- Generating done (0.0s)CMake Warning: Manually-specified variables were not used by the project:PYTHON_INCLUDE_DIR-- Build files have been written to: /mnt/zroot2/zroot2/libfreenect/build-- Cache valuesBUILD_AS3_SERVER:BOOL=OFFBUILD_CPACK_DEB:BOOL=OFFBUILD_CPACK_RPM:BOOL=OFFBUILD_CPACK_TGZ:BOOL=OFFBUILD_CPP:BOOL=ONBUILD_CV:BOOL=OFFBUILD_C_SYNC:BOOL=ONBUILD_EXAMPLES:BOOL=ONBUILD_FAKENECT:BOOL=ONBUILD_OPENNI2_DRIVER:BOOL=OFFBUILD_PYTHON:BOOL=OFFBUILD_PYTHON2:BOOL=OFFBUILD_PYTHON3:BOOL=ONBUILD_REDIST_PACKAGE:BOOL=OFFCMAKE_BUILD_TYPE:STRING=CMAKE_INSTALL_PREFIX:PATH=/usr/localCYTHON_EXECUTABLE:FILEPATH=/usr/bin/cython3LIBUSB_1_INCLUDE_DIR:PATH=/usr/include/libusb-1.0LIBUSB_1_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libusb-1.0.soPython2_EXACTVERSION:STRING=Python3_EXACTVERSION:STRING=3.8.10marietto@marietto:/mnt/zroot2/zroot2/libfreenect/build# sudo makeAlready have audios.bin[ 0%] Built target firmware[ 16%] Built target freenect[ 32%] Built target freenectstatic[ 35%] Built target freenect-camtest[ 39%] Built target freenect-wavrecord[ 42%] Built target freenect-glview[ 46%] Built target freenect-regview[ 50%] Built target freenect-hiview[ 53%] Built target freenect-chunkview[ 57%] Built target freenect-micview[ 60%] Built target freenect_sync[ 64%] Built target freenect-regtest[ 67%] Built target freenect-tiltdemo[ 71%] Built target freenect-glpclview[ 78%] Built target fakenect[ 83%] Built target fakenect-record[ 87%] Built target freenect_sync_static[ 91%] Built target freenect-cppview[ 94%] Built target freenect-cpp_pcview[ 96%] Building C object wrappers/python/CMakeFiles/cython3_freenect.dir/freenect3.c.o/mnt/zroot2/zroot2/libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File o directory non esistente 747 | #include "numpy/arrayobject.h" | ^compilation terminated.make[2]: *** [wrappers/python/CMakeFiles/cython3_freenect.dir/build.make:80: wrappers/python/CMakeFiles/cython3_freenect.dir/freenect3.c.o] Errore 1make[1]: *** [CMakeFiles/Makefile2:741: wrappers/python/CMakeFiles/cython3_freenect.dir/all] Errore 2make: *** [Makefile:136: all] Errore 2 -- Mario.