-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nogil runtime error #83
Comments
#include #include "Python.h" using namespace std; void Python_run_str(const string& str) } void Python_run_file(const string& file_name) int main()
} |
It's not clear to me what's you're trying to do. It looks like you have a custom C API extension and also are trying to embed the interpreter? It looks likely that you have some build misconfiguration. Can you put together a complete reproduction, including the code and commands to build it? |
i am trying to embed the interpreter (MNN is a a custom C API extension) gcc version: export: export PYTHONHOME=/usr/local/nogil-py/ |
printf Py_GetPythonHome : /usr/local/nogil-py/
printf Py_GetPythonPath : /usr/local/nogil-py/lib/python39.zip:/usr/local/nogil-py/lib:/usr/local/nogil-py/lib/python3.9/site-packages:/usr/local/nogil-py/lib/python3.9:/usr/local/nogil-py/lib/python3.9/lib-dynload:/usr/local/nogil-py/lib/python39.zip:/usr/local/nogil-py/lib/python3.9:/usr/local/nogil-py/lib/python3.9/lib-dynload
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/nogil-py/lib/python3.9/site-packages/MNN/init.py", line 4, in
from _mnncengine import *
ImportError: /usr/local/nogil-py/lib/python3.9/site-packages/_mnncengine.nogil-39b-x86_64-linux-gnu.so: undefined symbol: _Py_TrueStruct
The text was updated successfully, but these errors were encountered: