admin管理员组文章数量:1315823
I am trying to make my own android app with a kivy project on Windows 11, and buildozer is not working. I've installed WSL and have gotten to the point where I need to run buildozer android debug deploy run
, but I get this error:
Traceback (most recent call last):
File "/home/sharpy796/.local/bin/buildozer", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/sharpy796/.local/share/pipx/venvs/buildozer/lib/python3.12/site-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/home/sharpy796/.local/share/pipx/venvs/buildozer/lib/python3.12/site-packages/buildozer/__init__.py", line 1018, in run_command
targets = [x[0] for x in self.targets()]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sharpy796/.local/share/pipx/venvs/buildozer/lib/python3.12/site-packages/buildozer/__init__.py", line 910, in targets
m = __import__('buildozer.targets.{0}'.format(target),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sharpy796/.local/share/pipx/venvs/buildozer/lib/python3.12/site-packages/buildozer/targets/android.py", line 40, in <module>
from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'
Fervently searching online, it seems like this is an issue with distutils not coming with python anymore (it seems to be deprecated). Setuptools is supposed to provide it, but somehow, despite uninstalling it and reinstalling it, upgrading it, doing the same for python (I'm now trying to run version 3.12.3 instead of version 3.11.9), and more.
Why can't buildozer find distutils despite setuptools obviously being on my computer??
本文标签: pythonBuildozer not able to find distutilsdespite having setuptools installedStack Overflow
版权声明:本文标题:python - Buildozer not able to find distutils, despite having setuptools installed - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741986997a2408743.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论