x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11' - 无法运行 Kivy
Posted
技术标签:
【中文标题】x11 - ModuleNotFoundError: No module named \'kivy.core.window.window_x11\' - 无法运行 Kivy【英文标题】:x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11' - Unable to run Kivyx11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11' - 无法运行 Kivy 【发布时间】:2020-06-10 17:34:12 【问题描述】:我正在尝试在 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.
我在类似的帖子中尝试了所有建议和答案,但均未成功。谁能帮我解决这个问题?
【问题讨论】:
»» libSDL2_image-2.0.so.0: ...没有这样的文件或目录««:安装包libsdl2-image-2.0-0
列出需要安装的需求here。
【参考方案1】:
要修复,请安装找到here 的要求。
非常感谢约翰·安德森的帮助!
【讨论】:
以上是关于x11 - ModuleNotFoundError: No module named 'kivy.core.window.window_x11' - 无法运行 Kivy的主要内容,如果未能解决你的问题,请参考以下文章
无法将“NSMutableURLRequest”(0x11beb7040)类型的值转换为“Alamofire.URLRequestConvertible”(0x11beb9040)