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
The current version of the interpreter does not support the full list of python api. I checked that the Py_LIMITED_API flag is not set, but some functions are not available for some reason
start.c
...
LOGP("Initializing Python for Android");
#ifdefPy_LIMITED_APILOGP("Py_LIMITED_API is defined");
LOGP(Py_LIMITED_API);
#elseLOGP("Py_LIMITED_API is not defined");
#endif#ifdefPY_VERSION_HEXLOGP("PY_VERSION_HEX is defined");
LOGP(PY_VERSION_HEX);
#elseLOGP("PY_VERSION_HEX is not defined");
#endif#ifdefPyCell_GetLOGP("PyCell_Get is defined");
#elseLOGP("PyCell_Get is not defined");
#endif
...
2024-08-24 15:04:17.259 3043-3077 python org.test.test I Initializing Python for Android
2024-08-24 15:04:17.259 3043-3077 python org.test.test I Py_LIMITED_API is not defined
2024-08-24 15:04:17.259 3043-3077 python org.test.test I PY_VERSION_HEX is defined
2024-08-24 15:04:17.259 3043-3077 python org.test.test I PyCell_Get is not defined
Sorry, I added debug code before python initialization. Now all the necessary functions are available in the code, but for some reason they are still not accessible from the outside. I tried to use pyarmor and get the error
Traceback (most recent call last):
File "/Users/leonidgvozdev/Work/example/.buildozer/android/app/main.py", line 31, in <module>
File "/Users/leonidgvozdev/Work/example/.buildozer/android/app/test.py", line 2, in <module>
File "/Users/leonidgvozdev/Work/ex ample/.buildozer/android/app/pyarmor_runtime_005896/__init__.py", line 55, in <module>
File "/Users/leonidgvozdev/Work/example/.buildozer/android/app/pyarmor_runtime_005896/__init__.py", line 52, in __pyarmor__
RuntimeError: failed to get api PyCell_Get
The current version of the interpreter does not support the full list of python api. I checked that the Py_LIMITED_API flag is not set, but some functions are not available for some reason
start.c
...
LOGP("Initializing Python for Android");
#ifdefPy_LIMITED_APILOGP("Py_LIMITED_API is defined");
LOGP(Py_LIMITED_API);
#elseLOGP("Py_LIMITED_API is not defined");
#endif#ifdefPY_VERSION_HEXLOGP("PY_VERSION_HEX is defined");
LOGP(PY_VERSION_HEX);
#elseLOGP("PY_VERSION_HEX is not defined");
#endif#ifdefPyCell_GetLOGP("PyCell_Get is defined");
#elseLOGP("PyCell_Get is not defined");
#endif
...
2024-08-24 15:04:17.259 3043-3077 python org.test.test I Initializing Python for Android
2024-08-24 15:04:17.259 3043-3077 python org.test.test I Py_LIMITED_API is not defined
2024-08-24 15:04:17.259 3043-3077 python org.test.test I PY_VERSION_HEX is defined
2024-08-24 15:04:17.259 3043-3077 python org.test.test I PyCell_Get is not defined
Activity
GvozdevLeonid commentedon Aug 25, 2024
Sorry, I added debug code before python initialization. Now all the necessary functions are available in the code, but for some reason they are still not accessible from the outside. I tried to use pyarmor and get the error
It seems worth closing this issue.
AL-MKHTAR commentedon Feb 26, 2025