I am currently trying to build a mobile app using Python, Kivy and SQLAlchemy. However, I am having difficulty implementing database migrations using Alembic.
Basically, the migrations work just fine on my computer but Alembic is not finding any migrations when called from my phone. I am using buildozer for the APK building.
My guess is that Alembic is not finding the migrations files from the versions folder when run on android, probably because of a path issue.
Additional notes on the app functioning on Android :
The database is created correctly when the app the launched for the first time
When the app is launched, Alembic starts to run but doesn't find any migrations to apply. Then the app exits without any error code.
If I replace manually the database with one already up-to-date, the app runs smootly.
If I replace the database with one initialized but not up-to-date (containing the initial migration but not the updates). I get this error using adb logcat
So far, I have tried many things to reset the way Alembic is looking for migrations but nothing works (and I have a hard time remembering everything I tried...)
Also, with the current code, this is the adb logcat i get when I launch the app for the first time (I removed everything before that is just about the normal kivy app setup) :
02-17 21:19:43.422 12846 17556 I python : [INFO ] [Window ] auto add sdl2 input provider--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/kivy-users/1396df9f-8387-4a08-a25f-4718f60eeec3n%40googlegroups.com.