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
Hello Sir, when i use cython to compile python code i found this issue
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/cythonize", line 5, in
from Cython.Build.Cythonize import main
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/Cython/Build/init.py", line 1, in
from .Dependencies import cythonize
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 3, in
import cython
SyntaxError: source code string cannot contain null bytes
I have had this problem for a long time, but I wanted to search for a solution on the Internet first before bothering you with my small problem but i don't found any sultion i try install old versions from cython but i got the same issue
"""i have this issue in phone so i don't know if this is cause of the problem"""
"""the compiled sources with cython work with me in phone but when i try compile it in phone i got this error"""
i hope you have nice day, and thanks so much for cython project it's perfect❤
Code to reproduce the behaviour:
# example code
Expected behaviour
No response
OS
Android aarch64
Python version
i use python 3.11.8
Cython version
i try cython 3.0.10
Additional context
No response
The text was updated successfully, but these errors were encountered:
I don't know. This does seem more likely to be an issue with Termux than with Cython since we don't have this issue on other platforms. Maybe try to work out were the null byte is:
with open(filename) as f:
contents = f.read().encode("utf-8")
print(contents.find(b"\0"))
But I'm not really sure what you do when you find out.
I don't know. This does seem more likely to be an issue with Termux than with Cython since we don't have this issue on other platforms. Maybe try to work out were the null byte is:
with open(filename) as f:
contents = f.read().encode("utf-8")
print(contents.find(b"\0"))
But I'm not really sure what you do when you find out.
Describe the bug
Hello Sir, when i use cython to compile python code i found this issue
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/cythonize", line 5, in
from Cython.Build.Cythonize import main
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/Cython/Build/init.py", line 1, in
from .Dependencies import cythonize
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/Cython/Build/Dependencies.py", line 3, in
import cython
SyntaxError: source code string cannot contain null bytes
I have had this problem for a long time, but I wanted to search for a solution on the Internet first before bothering you with my small problem but i don't found any sultion i try install old versions from cython but i got the same issue
"""i have this issue in phone so i don't know if this is cause of the problem"""
"""the compiled sources with cython work with me in phone but when i try compile it in phone i got this error"""
i hope you have nice day, and thanks so much for cython project it's perfect❤
Code to reproduce the behaviour:
# example code
Expected behaviour
No response
OS
Android aarch64
Python version
i use python 3.11.8
Cython version
i try cython 3.0.10
Additional context
No response
The text was updated successfully, but these errors were encountered: