You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.local/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: psrdada/reader.pyx
we build the psrdada_python in the ubuntu22 ,python3.10,but met some problmes, resolve it by:
1,cd psrdada
modified dada_hdu.pxd
ctypedef unsigned long int uint64_t
to
cdef extern from "stdint.h":
ctypedef unsigned long int uint64_t
ctypedef unsigned long key_t
to
cdef extern from "stdint.h":
ctypedef unsigned long key_t
2,
modified the setup line 1 to #!/usr/bin/env python3
Thanks for reporting the issue!
I tried installing on my laptop (Fedora 39, python 3.12). I had to fix some errors with cython not finding dada_hdu.pxd, but i cannot reproduce your error. Can you try again with current master version, and copy-paste the error in more detail?
To respond to your points:
The first change seems reasonable: 'unsigned long int' is defined in 'stdint.h' on my system. The 'key_t' supposedly comes from "sys/ipc.h" -- see 'man ftok', so i prefer to get it from there instead.
seems reasonable, i've changed the #! env line in setup to python3.
I've created a new branch can you see if that works?
.local/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: psrdada/reader.pyx