我在VirtualBox上的Ubuntu 64 14.04上运行buildozer:
buildozer android debug deploy run
我有以下错误,我无法找出原因:
Traceback (most recent call last):
File "/usr/local/bin/buildozer", line 9, in <module>
load_entry_point('buildozer==0.16-dev', 'console_scripts', 'buildozer')()
File "/usr/local/lib/python2.7/dist-packages/buildozer-0.16_dev-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.16_dev-py2.7.egg/buildozer/__init__.py", line 959, in run_command
self.target.run_commands(args)
File "/usr/local/lib/python2.7/dist-packages/buildozer-0.16_dev-py2.7.egg/buildozer/target.py", line 85, in run_commands
func(args)
File "/usr/local/lib/python2.7/dist-packages/buildozer-0.16_dev-py2.7.egg/buildozer/target.py", line 97, in cmd_debug
self.buildozer.build()
File "/usr/local/lib/python2.7/dist-packages/buildozer-0.16_dev-py2.7.egg/buildozer/__init__.py", line 193, in build
self.target.build_package()
File "/usr/local/lib/python2.7/dist-packages/buildozer-0.16_dev-py2.7.egg/buildozer/targets/android.py", line 467, in build_package
version = self.buildozer.get_version()
File "/usr/local/lib/python2.7/dist-packages/buildozer-0.16_dev-py2.7.egg/buildozer/__init__.py", line 656, in get_version
version = match.groups()[0]
IndexError: tuple index out of range
在 buildozer.spec :
version.regex = __version__ = '0.0.1'
在 main.py :
__version__ = '0.0.1'
更新
另一个错误:
# Package the application
# Command failed: /usr/bin/python2.7 build.py --name Mathcore --version 0.0.1 --package org.test.mathcore --private /home/necronomicron/Code/Mathcore/.buildozer/android/app --sdk 14 --minsdk 8 --orientation landscape debug
答案 0 :(得分:2)
如果您仍然在buildozer.spec中设置版本,请尝试注释掉version.regex和version.filename行,并直接使用version = 1.2.0
。