kivy / buildozer

Generic Python packager for Android and iOS
https://buildozer.readthedocs.io
MIT License
1.75k stars 503 forks source link

Buildozer unable to make apk #430

Closed neutralboy closed 7 years ago

neutralboy commented 7 years ago

It isn't able to make my Kivy application into an apk Here's the traceback with log_level2:

> **pc-eME732Z App01 #** buildozer -v android debug
>  # Check configuration tokens
> Buildozer is running as root!
> This is not recommended, and may lead to problems later.
> Are you sure you want to continue [y/n]? y
> # Ensure build layout
> # Check configuration tokens
> # Preparing build
> # Check requirements for android
> # Run 'dpkg --version'
> # Cwd None
> Debian 'dpkg' package management program version 1.18.15 (i386).
> This is free software; see the GNU General Public License version 2 or
> later for copying conditions. There is NO warranty.
> # Search for Git (git)
> #  -> found at /usr/bin/git
> # Search for Cython (cython)
> #  -> found at /usr/local/bin/cython
> # Search for Java compiler (javac)
> #  -> found at /usr/lib/jvm/java-7-oracle/bin/javac
> # Search for Java keytool (keytool)
> #  -> found at /usr/lib/jvm/java-7-oracle/jre/bin/keytool
> # Install platform
> # Apache ANT found at /root/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /root/.buildozer/android/platform/android-sdk-20
> # Android NDK found at /root/.buildozer/android/platform/android-ndk-r9c
> # Check application requirements
> # Run './distribute.sh -l'
> # Cwd /home/pc/Apps/App01/.buildozer/android/platform/python-for-android
> Available modules: android apsw audiostream bidi boost cherrypy c_igraph click cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer ffpyplayer_tito flask freetype gevent greenlet harfbuzz hostpython igraph itsdangerous jinja2 jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto markupsafe midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws werkzeug wokkel zeroconf zope
> # Application requirements already installed, pass
> # Check garden requirements
> # Compile platform
> # Run './distribute.sh -l'
> # Cwd /home/pc/Apps/App01/.buildozer/android/platform/python-for-android
> Available modules: android apsw audiostream bidi boost cherrypy c_igraph click cprotobuf cymunk django docutils ecdsa enum34 evdev ffmpeg ffmpeg2 ffpyplayer ffpyplayer_tito flask freetype gevent greenlet harfbuzz hostpython igraph itsdangerous jinja2 jpeg kivent_core kivent_cymunk kivy leveldb libevent libpq libsodium libswift libtorrent libxml2 libxslt libyaml lxml m2crypto markupsafe midistream msgpack mysql_connector netifaces numpy opencv openssl paramiko pil plyer plyvel png polygon protobuf psutil psycopg2 pyasn1 pycrypto pygame pyjnius pylibpd pyopenssl pyparsing pyqrcode python pyyaml sdl setuptools six sqlalchemy sqlite3 storm swift thrift twisted txws werkzeug wokkel zeroconf zope
> # Distribution already compiled, pass.
> # Build the application #10
> # Copy application source from /home/pc/Apps/App01/main.py
> # Package the application
> # project.properties updated
> # Run "python build.py --name 'Happy Birthday' --version 1.0.2 --package org.test.b'day --sdk 19 --minsdk 9 --private /home/pc/Apps/App01/.buildozer/android/app --orientation landscape debug"
> # Cwd /home/pc/Apps/App01/.buildozer/android/platform/python-for-android/dist/B'day
> /bin/sh: 1: Syntax error: Unterminated quoted string
> # Command failed: python build.py --name 'Happy Birthday' --version 1.0.2 --package org.test.b'day --sdk 19 --minsdk 9 --private /home/pc/Apps/App01/.buildozer/android/app --orientation landscape debug
> # 
> # Buildozer failed to execute the last command
> # The error might be hidden in the log above this error
> # Please read the full log, and search for it before
> # raising an issue with buildozer itself.
> # In case of a bug report, please add a full log with log_level = 2
> 

For the code please visit the Code @ dpaste.com

saqib1707 commented 7 years ago

Just remove the quote from your package name "b'day" as it is not able to handle quoted string.Hope this works.