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
File "home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Helios/arm64-v8a/cryptography/hazmat/primitives/_serialization.py", line 10, in <module>
File "home/runner/work/Helios/Helios/.buildozer/android/platform/build-arm64-v8a/build/python-installs/Helios/arm64-v8a/cryptography/hazmat/primitives/hashes.py", line 9, in <module>
ImportError: dlopen failed: cannot locate symbol "PyExc_MemoryError" referenced by "/data/data/org.gleo.helios/files/app/_python_bundle/site-packages/cryptography/hazmat/bindings/_rust.abi3.so"...
The build is completed successfully. I didn't change the configuration or recipes. Tell me where to dig
buildozer = 1.5.0
python for android = dev ( but im using my fork)
python = 3.11.9
It cannot find PyExc_MemoryError which usually is in libpython. Maybe you can confirm this symbol exists in libpython produced by your build env with nm maybe.
Activity
T-Dynamos commentedon May 12, 2026
It cannot find
PyExc_MemoryErrorwhich usually is inlibpython. Maybe you can confirm this symbol exists in libpython produced by your build env withnmmaybe.GvozdevLeonid commentedon May 12, 2026
I solved the problem by adding the flag in
CryptographyRecipeb3b commentedon May 17, 2026
I have the same issue, but with a different missing symbol:
_Py_TrueStructReproduced it outside my app with:
p4a create --dist_name=crypto_test --bootstrap=sdl2 --sdk-dir="$ANDROIDSDK" --ndk-dir="$ANDROIDNDK" --ndk-api=22 --android-api=36 --ignore-setup-py --requirements=python3==3.14.2,hostpython3==3.14.2,cryptography --arch=arm64-v8a --copy-libs --debugThe resulting
_rust.abi3.sois not linked againstlibpython, checked with:find ~/.local/share/python-for-android/ -name '_rust.abi3.so' -exec readelf -d {} \; | grep libpythonAdding libpython link args via
RUSTFLAGSin the cryptography recipe fixed it for me.CluckyMedia commentedon May 18, 2026
Where to add the flag? Where is CryptographyRecipe? I use buildozer on a github runner. Thanks
T-Dynamos commentedon May 18, 2026
Recipe is in:
pythonforandroid/recipes/cryptography/__init__.pyThis is an open issue - not yet fixed in
develop.For now you can use p4a locally with modified files or use fork.
CluckyMedia commentedon May 18, 2026
I will wait till the issue is fixed, hopefully it is not far off. Thanks
CluckyMedia commentedon May 21, 2026
Are many developers working on this codebase?
T-Dynamos commentedon May 21, 2026
@CluckyMedia Issue is fixed in #3333, You can test by setting
p4a.branch = issue-3329.P4A's core team is relatively small - most of us are volunteers balancing this with daily jobs.