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
What could possibly be the reason to return a null? The script works fine unless I try to import matplotlib or numpy, in this case it throws exeption, being 'result' = null.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I get a null in return from executing a script in a thread.
PyObject *result = PyRun_FileEx(f, fname_str.c_str(), start, global.ptr(), local.ptr(), closeFile);
What could possibly be the reason to return a null? The script works fine unless I try to import matplotlib or numpy, in this case it throws exeption, being 'result' = null.
Python interpreter is initialized in the thread.
Beta Was this translation helpful? Give feedback.
All reactions