-
Notifications
You must be signed in to change notification settings - Fork 22
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
Adding custom Python libraries: No module named 'numpy.core._multiarray_umath' #76
Comments
The reason why I got a black screen was that I used Python 3.10 with p4a but Serious-Python expects Python 3.11 to run properly.
My requirements file in the |
My problem was that I thought I need the |
I'm trying to build the flet_example app for Android on a Ubuntu 23.10 system with a simple numpy import.
The
p4a create --requirements numpy ...
command for compiling the files works fine and thedart run serious_python:main package app/src --mobile
also.When building the apk with
flutter build apk
this results in an error:/home/janik/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip: error: '/home/janik/Downloads/serious-python/src/serious_python/example/flet_example/build/serious_python_android/intermediates/merged_native_libs/release/out/lib/arm64-v8a/libpythonbundle.so': The file was not recognized as a valid object file
Nevertheless I can install the apk to my Android device but I get a black screen.
Have you any ideas how to fix that?
The text was updated successfully, but these errors were encountered: