对于编程世界而言,我是一个业余爱好者,所以我绝不是一位经验丰富的专家,所以请善待和温柔,我只是在这里学习。
好的,我遇到的问题是在Mac OSX上使用buildozer。它很难为Android编译apk。
我正在运行Mac OSX 10.6.8,Kivy 1.7.1,最新的Cython,ActivePython 2.7.2。
当我运行' buildozer android debug'它开始处理app目录中的命令,然后遇到错误并停止。
以下是在终端窗口中记录的内容:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/buildozer", line 9, in <module>
load_entry_point('buildozer==0.17', 'console_scripts', 'buildozer')()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/__init__.py", line 961, in run_command
self.target.run_commands(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/target.py", line 85, in run_commands
func(args)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/target.py", line 95, in cmd_debug
self.buildozer.prepare_for_build()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/__init__.py", line 157, in prepare_for_build
self.target.install_platform()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/targets/android.py", line 394, in install_platform
self._install_android_packages()
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/targets/android.py", line 350, in _install_android_packages
self._android_update_sdk('tools,platform-tools')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/targets/android.py", line 309, in _android_update_sdk
index = child.expect([EOF, '[y/n]: '])
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/libs/pexpect.py", line 1311, in expect
return self.expect_list(compiled_pattern_list, timeout, searchwindowsize)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/libs/pexpect.py", line 1325, in expect_list
return self.expect_loop(searcher_re(pattern_list), timeout, searchwindowsize)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/libs/pexpect.py", line 1378, in expect_loop
c = self.read_nonblocking (self.maxread, timeout)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/buildozer/libs/pexpect.py", line 837, in read_nonblocking
self.logfile.write (s.decode(encoding='UTF-8'))
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd5 in position 760: invalid continuation byte
有人可以对此有所了解吗?
非常感谢
Tj
答案 0 :(得分:0)
我不知道你是否找到了答案。我遇到了类似的问题,并且从git存储库升级解决了它:
pip install --upgrade git+http://github.com/kivy/buildozer