kivy buildozer get some version error

120 views
Skip to first unread message

Brice DORA

unread,
Feb 11, 2015, 4:09:15 AM2/11/15
to python-...@googlegroups.com
hi i'm newbie in kivy buildozer for building apk and i tried to build an apk with buildozer and i got this error. Someone can help me please and thanks in advance.

this is error:
# Package the application
Traceback (most recent call last):
  File "/usr/local/bin/buildozer", line 9, in <module>
    load_entry_point('buildozer==0.22dev', 'console_scripts', 'buildozer')()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.22dev-py2.7.egg/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.22dev-py2.7.egg/buildozer/__init__.py", line 967, in run_command
    self.target.run_commands(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.22dev-py2.7.egg/buildozer/target.py", line 85, in run_commands
    func(args)
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.22dev-py2.7.egg/buildozer/target.py", line 97, in cmd_debug
    self.buildozer.build()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.22dev-py2.7.egg/buildozer/__init__.py", line 194, in build
    self.target.build_package()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.22dev-py2.7.egg/buildozer/targets/android.py", line 492, in build_package
    version = self.buildozer.get_version()
  File "/usr/local/lib/python2.7/dist-packages/buildozer-0.22dev-py2.7.egg/buildozer/__init__.py", line 661, in get_version
    ' (looking for `{1}`)'.format(fn, regex))
Exception: Unable to find capture version in ./main.py
 (looking for `__version__ = ['"](.*)['"]`)



Ben Rousch

unread,
Feb 11, 2015, 11:24:26 AM2/11/15
to python-...@googlegroups.com
You need to specify the version number for your APK in the main.py file. It should take the format of:
__version__ = '0.0.1'

You could also specify the version in your buildozer.spec file by commenting out lines 29 and 29 and uncommenting line 32.

Brice DORA

unread,
Feb 23, 2015, 4:05:16 AM2/23/15
to python-...@googlegroups.com
Thanks for your help, i did generate the apk but when i run it on my device, there is a loading and after it go out, i can't open the application. but the application has been correctly installed on device. thans in advance for your help

Ben Rousch

unread,
Feb 23, 2015, 11:22:33 AM2/23/15
to python-...@googlegroups.com
You need to get the logs from the device to have any idea why it is crashing.

Brice DORA

unread,
Feb 25, 2015, 3:33:21 AM2/25/15
to python-...@googlegroups.com
okey but how can i get it? i remind you that i'm newbie so will you help me step by step please how can i fix it. I installed an android emulator such as Bluestacks but it's the same when i ran the app by clicking on the app's logo, i got a app's loading and after it all came back on the menu of device. it seem that  the apk is empty or bad. thanks in advance for your help.

oliver marks

unread,
Mar 4, 2015, 9:51:03 AM3/4/15
to python-...@googlegroups.com
use this

buildozer android debug deploy run logcat

that will launch your app and start showing you the device logs at the terminal in real time.

oliver marks

unread,
Mar 4, 2015, 9:54:12 AM3/4/15
to python-...@googlegroups.com
also if your not using buildozer you can run.

adb logcat

at a terminal to start logging for your device.
Reply all
Reply to author
Forward
0 new messages