-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
apk with sqlite3 python3 kivy No module named '_sqlite3' #1564
Comments
Trying again: I was looking at my logcat output...
Then, a bit further down...
I'm very confused now. Seems like it thinks sqlite3 is loaded, then won't import the module. |
The sqlite3 and openssl libs still are not python3's compatible in the current master branch. If you want to use them, you may wanna try the branch of the pr #1537, which enables python3 support for the mentioned libs. |
Please check again. Now sqlite3 are supported with latest p4a, branch (master) |
Note: to use sqlite put "sqlite3" into |
Thank you, @Jonast for reccomendation.
I checked today, and build apk with python3 with py3-api28ndk21 you tools with sqlite3 module https://github.com/JonasT/p4a-build-spaces |
Oh, I didn't know that the order mattered at all. Is there some documentation on required order? Should python3 always come last, or does it need to be before kivy, or what? |
@ApplySci everything needs to be before |
That's odd. Doesn't p4a build a dependency graph out of that information, reordering things anyway? |
Closing as hopefully fixed by #1617, please feel free to reopen if it does still happen. |
Ran into problems with making an APK, mostly due to incorrect software and api versions. The last of those (unable to find a valid dependency graph) was solved over in #1222
Now my APK compiles fine: and crashes on load. The problem is it can't find the _sqlite3 module. The latest pythonforandroid has a recipe for sqlite3 which seems to compile just fine. It produces a libsqlite3.so file which is included in my APK (checked), but this doesn't seem to be what python is looking for when the app loads on the device.
I am able to run the rest of the app if I remove the import and use of the sqlite3 module, but it is critical to most of the functionality in the final version that sqlite3 work.
I have tried removing from blacklist.txt (wherever I could find one, there were several) any mention of sqlite3 files: no change.
I have tried whitelisting sqlite3 files in buildozer.spec: no change.
I have tried completely removing the .buildozer directory and allowing it all to re-downlooad/install/compile: no change.
Love some help if anyone has ideas.
Edit:
Just found in MyProject/.buildozer/android/platform/build/build/other_builds/python3/armeabi-v71__ndk_target_21/python3/android_build/config.log a mention of sqlite3 that looks like:
Does this mean sqlite is not being built into python3? Not sure how I would change this as buildozer is doing all the p4a stuff for me.
Edit 2:
Further research tells me that option is not required to get sqlite3 working.
The text was updated successfully, but these errors were encountered: