I am using from tinydb import TinyDB, Query
to import the tinydb module. This works completely fine when testing my python and kivy code. After using buildozer to create an apk and debugging, it is saying that it crashed because of ImportError: no module named tinydb
. Any help would be appreciated!
Asked
Active
Viewed 1,943 times
1

Azaro
- 53
- 1
- 12
1 Answers
2
In the requirement
section of your buildozer.spec
you should add the modules your programm needs:
requirements = kivy,tinydb
This is also described in the buildozer documentation
I'm not sure what you need, but maybe the sqlite package (which is included in the python standard library) also fits your needs.
You can also download the repository as zip. Then you can copy the tinydb
folder from the zip into your project. With this method you do not get any updates, but it works ;)

salomonderossi
- 2,180
- 14
- 20
-
@salmonderossi someone had a similar problem and suggested copying the module to my App directory. Do you know how I would be able to do this? – Azaro Apr 28 '16 at 15:53
-
@Azaro I updated my answer, to copy `tinydb` inside your project ;) – salomonderossi Apr 29 '16 at 06:16