我试图在我从kivy.org直接使用的虚拟机中使用buildozer为一个简单的python3 / kivy app构建一个apk,这是day2。我有很多错误,instaled pip,更新了buildozer,pip安装了morse,pnglab,sh,appdirs,pyto的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')
属性错误:&#39; str&#39;对象没有属性&#39; decode&#39;
答案 0 :(得分:0)
这看起来像buildozer中的一个错误。您可以使用python2解决它。在buildozer的github页面上随意创建一个关于它的问题。