我正在尝试在我直接从 kivy.org 获得的虚拟机中使用 buildozer 为简单的 python3/kivy 应用程序构建一个 apk,这是第 2 天。我有很多错误,安装了 pip,更新了 buildozer,pip 安装了 morse,pnglab,sh,appdirs,py3 的 setuptools,现在我在编写 $ buildozer android debug 时遇到了这个错误,我的虚拟机使用 python 2.7 和 3.4,任何人知道这是怎么回事吗?我非常感谢您的回答,因为我计划有一天将机器人开发作为我的工作,谢谢。这是错误:AttributeError:'str'对象没有属性'decode'
和追溯:
Traceback (most recent call last):
File "/usr/local/bin/buildozer", line 9, in <module> load_entry_point('buildozer==0.32dev', 'console_scripts', 'buildozer')()
File "/usr/local/lib/python3.4/dist-packages/buildozer-0.32dev-py3.4.eg /buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/usr/local/lib/python3.4/dist-packages/buildozer-0.32dev-py3.4.egg/buildozer/__init__.py", line 992, in run_command
self.target.run_commands(args)
File "/usr/local/lib/python3.4/dist-packages/buildozer-0.32dev-py3.4.egg/buildozer/target.py", line 85, in run_commands
func(args)
File "/usr/local/lib/python3.4/dist-packages/buildozer-0.32dev-py3.4.egg/buildozer/target.py", line 97, in cmd_debug
self.buildozer.build()
File "/usr/local/lib/python3.4/dist-packages/buildozer-0.32dev-py3.4.egg/buildozer/__init__.py", line 198, in build
self.target.build_package()
File "/usr/local/lib/python3.4/dist-packages/buildozer-0.32dev-py3.4.egg/buildozer/targets/android.py", line 747, in build_package
apktitle = ''.join([x for x in config.get('app', 'title').decode('utf-8')
AttributeError:“str”对象没有属性“decode”