打包 kivymd 应用程序时发生错误
Posted
技术标签:
【中文标题】打包 kivymd 应用程序时发生错误【英文标题】:Error occured while packaging the kivymd application 【发布时间】:2021-07-29 19:57:30 【问题描述】:我正在 Google colab 中打包 kivyMD 应用程序。该应用程序是来自official github page of kivyMD的厨房水槽应用程序源代码。
编辑:错误发生在:!buildozer -v android debug
# Package the application
Traceback (most recent call last):
File "/usr/local/bin/buildozer", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/buildozer/scripts/client.py", line 13, in main
Buildozer().run_command(sys.argv[1:])
File "/usr/local/lib/python3.7/dist-packages/buildozer/__init__.py", line 1047, in run_command
self.target.run_commands(args)
File "/usr/local/lib/python3.7/dist-packages/buildozer/target.py", line 92, in run_commands
func(args)
File "/usr/local/lib/python3.7/dist-packages/buildozer/target.py", line 104, in cmd_debug
self.buildozer.build()
File "/usr/local/lib/python3.7/dist-packages/buildozer/__init__.py", line 205, in build
self.target.build_package()
File "/usr/local/lib/python3.7/dist-packages/buildozer/targets/android.py", line 990, in build_package
version = self.buildozer.get_version()
File "/usr/local/lib/python3.7/dist-packages/buildozer/__init__.py", line 701, in get_version
with open(fn) as fd:
FileNotFoundError: [Errno 2] No such file or directory: './../../kivymd/__init__.py'
完整输出 + 错误 File
信息:File Structure is same as source code
我应该怎么做才能处理这个错误。 提前致谢
【问题讨论】:
【参考方案1】:试试下面的命令:
buildozer android debug deploy run logcat
对于此命令,您必须在手机上使用 USB 调试。
【讨论】:
以上是关于打包 kivymd 应用程序时发生错误的主要内容,如果未能解决你的问题,请参考以下文章
使用 KivyMD 库运行应用程序时出现错误 No module named 'kivymd.app'