gpt4 book ai didi

linux - x11 - ModuleNotFoundError : No module named 'kivy.core.window.window_x11' - Unable to run Kivy

转载 作者:行者123 更新时间:2023-12-04 19:09:32 52 4
gpt4 key购买 nike

我正在尝试在 Pycharm 中运行 Kivy 应用程序,但不断收到以下错误:

    /usr/bin/python3.6 /home/mark/PycharmProjects/KivyExample/venv/main.py
[INFO ] [Logger ] Record log in /home/mark/.kivy/logs/kivy_20-02-26_18.txt
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "/usr/lib/python3/dist-packages/kivy/__init__.py"
[INFO ] [Python ] v3.6.9 (default, Nov 7 2019, 10:44:02)
[GCC 8.3.0]
[INFO ] [Python ] Interpreter at "/usr/bin/python3.6"
[INFO ] [Factory ] 184 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored)
[CRITICAL] [Window ] Unable to find any valuable Window provider. Please enable debug logging (e.g. add -d if running from the command line, or change the log level in the config) and re-run your app to identify potential causes
egl_rpi - ImportError: cannot import name 'bcm'
File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "/usr/lib/python3/dist-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
from kivy.lib.vidcore_lite import bcm, egl

sdl2 - ImportError: libSDL2_image-2.0.so.0: cannot open shared object file: No such file or directory
File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "/usr/lib/python3/dist-packages/kivy/core/window/window_sdl2.py", line 27, in <module>
from kivy.core.window._window_sdl2 import _WindowSDL2Storage

x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11'
File "/usr/lib/python3/dist-packages/kivy/core/__init__.py", line 63, in core_select_lib
fromlist=[modulename], level=0)

[CRITICAL] [App ] Unable to get a Window, abort.


我已经在类似的线程中尝试了每一个建议和答案,但都没有成功。谁能帮我解决这个问题?

最佳答案

要修复,请安装找到的要求 here .

非常感谢约翰安德森的帮助!

关于linux - x11 - ModuleNotFoundError : No module named 'kivy.core.window.window_x11' - Unable to run Kivy,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60420793/

52 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com