Comments (2)
I am using Cython 0.29.14. Commit 5341ff6 didn't work for me. I have to remove the 'noexcept' otherwise i get the error below when trying to install the python wrapper
$ sudo python setup.py install
running install
running build
running build_ext
cythoning freenect.pyx to freenect.c
/usr/lib/python3/dist-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /home/rosserver/Git/libfreenect/wrappers/python/freenect.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
dev_out.ctx = ctx
return dev_out
_depth_cb, _video_cb = None, None
cdef void depth_cb(freenect_device *dev, void *data, uint32_t timestamp) noexcept with gil:
^
------------------------------------------------------------
freenect.pyx:324:73: Syntax error in C variable declaration
building 'freenect' extension
x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python3.8 -c freenect.c -o build/temp.linux-x86_64-3.8/freenect.o -fPIC -I ../../include/ -I /usr/include/libusb-1.0/ -I /usr/local/include/libusb-1.0 -I /usr/local/include -I ../c_sync/ -I /usr/lib/python3/dist-packages/numpy/core/include
freenect.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
1 | #error Do not use this file, it is the result of a failed Cython compilation.
| ^~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
from libfreenect.
@lulu110997 Unfortunately, the setup.py
is outdated. The recommended way to build with the python extension is
cd libfreenect
mkdir build && cd build
cmake .. -DBUILD_PYTHON3=ON
cmake --build
This works because the cmake script has a workaround for older versions of cython. If you prefer to use setup.py
with this cython, you must change the referenced file to freenect.cython0.pyx
.
from libfreenect.
Related Issues (20)
- Distance issues with Kinect and R Pi 4 HOT 2
- tp_print is removed from Cython HOT 2
- Kinect HOT 1
- Java wrapper always has null value for buffer in callback
- freenect can't detect the kinect camera HOT 1
- same issue. i even tried different versions of python and different versions of ubuntu to run it on and none worked HOT 1
- /libfreenect/build/wrappers/python/freenect3.c:747:10: fatal error: numpy/arrayobject.h: File or directory not found
- Can we kill the sync_get_depth and sync_get_video calls after a specific amount of time?
- No such file or directory [D:\libfreenect\libfreenect\build\src\freenectstatic.vcxproj]
- [Feature request] Skeleon Tracking HOT 2
- Python3 wrapper, c1: fatal error C1083: Cannot open source file: 'freenect.c': No such file or directory HOT 2
- CMake warning about legacy GL library and GLVND libraries for OpenGL and GLX. HOT 3
- libfreenect fails to build after latest commit HOT 1
- Questions about timestamp HOT 2
- Unable to use both a kinect and a regular webcam at the same time HOT 1
- Can't import python3 wrapper (ModuleNotFoundError: No module named 'freenect') HOT 1
- missing rpath issue with 0.7.5 release
- ImportError: dynamic module does not define module export function (PyInit_freenect)
- NOT AN ISSUE, THIS IS A QUESTION ( CAN'T FIND THE FORUM TO ASK THIS ) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libfreenect.