Closed DOX007 closed 5 months ago
This should fix your problem: https://github.com/kivy/buildozer/issues/1543#issuecomment-1382574110
If you are using WSL v1, you will most probably face another issue: https://github.com/kivy/python-for-android/issues/3000
To check WSL version, under Windows:
wsl -l -v
Version 1 will mean that your Linux is running using WSL v1.
If yes, make sure you are have installed OpenJDK 11 instead of 17 for Buildozer on Linux, make sure that Java 11 is default one. To check:
java --version
Also make sure you are using latest Buildozer (currently 1.5.0). To check:
buildozer --version
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have the means to take action. Please reach out if you have or find the answers we need so that we can investigate further.
I'm trying to compile an APK
This script is a small project based on a simple python calendar with date and time. It allows you to add your working hours to a Google sheet, which then calculates your hours, and gives you your salary before and after taxes. And this has been working flawlessly for months. I made changes in google and added a new API in the crypt .json file, and now I only get 'syntax error when I try to compile the app ???. I have tried using different versions of python, versions of Kivy etc etc etc. But nothing works!. However, everything works perfectly on the computer?.
The error codes I get are:
*** File "/home/cd/Desktop/APP/.buildozer/android/app/python/Python-3.12.0b3/Lib/typing.py", line 2687 class SupportsAbsT (Protocol): ^ SyntaxError: invalid syntax
No setup.py/pyproject.toml used, copying full private data into .apk. Error while running "/home/cd/Desktop/APP/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a/build/other_builds/hostpython3/desktop/hostpython3/native-build/python3 -OO -m compileall -b -f /home/cd/Desktop/APP/.buildozer/android/app/python/Python-3.12.0b3/Lib/typing.py" This probably means one of your Python files has a syntax error, see logs above
Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'apk', '--bootstrap', 'sdl2', '--dist_name', 'myapp', '--name', 'My Application', '--version', '0.1', '--package', 'org.test.myapp', '--minsdk', '21', '--ndk-api', '21', '--private', '/home/cd/Desktop/APP/.buildozer/android/app', '--android-entrypoint', 'org.kivy.android.PythonActivity', '--android-apptheme', '@android:style/Theme.NoTitleBar', '--presplash', '/home/cd/Desktop/APP/././logopc.png', '--icon', '/home/cd/Desktop/APP/././logopc.png', '--orientation', 'portrait', '--window', '--enable-androidx', '--copy-libs', '--arch', 'arm64-v8a', '--arch', 'armeabi-v7a', '--color=always', '--storage-dir=/home/cd/Desktop/APP/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
my buildozer.spec and main.py script:
I use this command to start the process from Terminal: _pip3 install buildozer kivy==2.3.0 Cython==3.0.10 openpyxl==3.1.2 datetime==5.4.0 pillow etxmlfile==1.1.0 gspread==6.1.0 oauth2client==4.1.3 google==3.0.0 google-cloud==0.34.0 google-cloud-vision==3.7.2 google.auth==2.29.0 cryptography==42.0.5 export PATH=$PATH:~/.local/bin/ buildozer android debug
Script: