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
Building kivy app with python3 requirement gives "No compiled python is present to zip, skipping." warning and "Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? ..." error when run on android device.
#977
Closed
ocerri opened this issue
Sep 30, 2019
· 3 comments
I am trying to build a kivy app written in python 3 for android devices using buildozer.
When running the "buildozer -v android debug command" everything seems to go fine: the build successful message is displayed and the apk is created in the bin directory.
However I also receive a suspicious "No compiled python is present to zip, skipping." warning.
When trying to run the apk on my android smartphone, the installation is successful but when I lounch the app I can see in the log the following error message before the app crashes:
09-30 12:27:23.774 28967 28998 I python : [ERROR ] [Clock ] Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? Kivy contains Cython code which needs to be compiled. A missing kivy._clock often indicates the Cython code has not been compiled. Please follow the installation instructions and make sure to compile Kivy
However, cython is installed in the venv that I am using and the app runs fine when run on the computer itself.
Hello,
Thanks for the suggestion, I indeed checked that page during the installation and I am using a coherent version of the two packages: Kivy=1.11.1 and Cython=0.29.9
Try to use older version of buildozer (0.30 - 0.34), first uninstall Cython completely by using command pip uninstall cython repeat the command until you get Cannot uninstall requirement cython, not installed then uninstall buildozer using the same method above and then try to reinstall buildozer but this time use older versions, something like pip install buildozer==0.34. I was facing some strange errors when i use latest buildozer versions to build apk but when i downgrade to 0.33 there were no more problem. I can build for armeabi-v7a, arm64-v8a and x86 arch just fine and the apk never crash on any device
Versions
Description
I am trying to build a kivy app written in python 3 for android devices using buildozer.
When running the "buildozer -v android debug command" everything seems to go fine: the build successful message is displayed and the apk is created in the bin directory.
However I also receive a suspicious "No compiled python is present to zip, skipping." warning.
When trying to run the apk on my android smartphone, the installation is successful but when I lounch the app I can see in the log the following error message before the app crashes:
09-30 12:27:23.774 28967 28998 I python : [ERROR ] [Clock ] Unable to import kivy._clock. Have you perhaps forgotten to compile kivy? Kivy contains Cython code which needs to be compiled. A missing kivy._clock often indicates the Cython code has not been compiled. Please follow the installation instructions and make sure to compile Kivy
However, cython is installed in the venv that I am using and the app runs fine when run on the computer itself.
buildozer.spec
Command:
Spec file:
Logs
The text was updated successfully, but these errors were encountered: