buildozer error UnicodeEncodeError: 'latin-1' in any project



我在任何项目中都会遇到同样的问题:

Traceback (most recent call last):
File "/usr/local/bin/buildozer", line 33, in <module>
sys.exit(load_entry_point('buildozer==1.4.1.dev0', 'console_scripts', 'buildozer')())
File "/usr/local/lib/python3.10/dist-packages/buildozer-1.4.1.dev0-py3.10.egg/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/usr/local/lib/python3.10/dist-packages/buildozer-1.4.1.dev0-py3.10.egg/buildozer/__init__.py", line 1024, in run_command
self.target.run_commands(args)
File "/usr/local/lib/python3.10/dist-packages/buildozer-1.4.1.dev0-py3.10.egg/buildozer/target.py", line 93, in run_commands
func(args)
File "/usr/local/lib/python3.10/dist-packages/buildozer-1.4.1.dev0-py3.10.egg/buildozer/target.py", line 103, in cmd_debug
self.buildozer.prepare_for_build()
File "/usr/local/lib/python3.10/dist-packages/buildozer-1.4.1.dev0-py3.10.egg/buildozer/__init__.py", line 180, in prepare_for_build
self.target.compile_platform()
File "/usr/local/lib/python3.10/dist-packages/buildozer-1.4.1.dev0-py3.10.egg/buildozer/targets/android.py", line 841, in compile_platform
self._p4a(p4a_create, get_stdout=True)[0]
File "/usr/local/lib/python3.10/dist-packages/buildozer-1.4.1.dev0-py3.10.egg/buildozer/targets/android.py", line 133, in _p4a
return self.buildozer.cmd([*self._p4a_cmd, *cmd, *self.extra_p4a_args], **kwargs)
File "/usr/local/lib/python3.10/dist-packages/buildozer-1.4.1.dev0-py3.10.egg/buildozer/__init__.py", line 316, in cmd
stdout.write(chunk.decode('utf-8', 'replace'))
UnicodeEncodeError: 'latin-1' codec can't encode characters in position 7616-7677: ordinal not in range(256)

尝试删除.buildozer和其他文件夹并重新构建

解决!dpkg-reconfigure地区添加RU-ru。UTF8和EN-en。UTF8区域设置解决了这个问题!

相关内容

  • 没有找到相关文章

最新更新