Maybe this is a duplicate, but I couldn’t find an answer for this particular situation: I want to compile and distribute my python Code to c and then to a binary using gcc. For distribution, I use appimagetool to include libraries. I use the command cython3 -3 myapp.py –embed to create the C code, and then gcc myapp.c -o myapp
Tag: cythonize
Cython class AttributeError
I have started to experiment with Cython and ran into the following problem. Consider the following class representing a vertex in the 3D space: Now I try to create an object from the Python console: which works fine. However, when I’m trying to access the class attributes, I’m getting an AttributeError: Any ideas why this could happen? Answer By default