如何解决kivy应用程序启动时出现的“找不到任何有价值的文本提供者”错误?

2024-10-01 17:37:35 发布

您现在位置:Python中文网/ 问答频道 /正文

我无法启动kivy应用程序。这是由于AMD显卡问题,还是由于没有正确安装kivy?你知道吗

我安装并导入了kivy,但出现以下错误:


C:\Users\MOHAMMAD\venv\test\Scripts\python.exe
C:/Users/MOHAMMAD/Desktop/test/Main.py 
[INFO   ] [Logger      ] Record log in C:\Users\MOHAMMAD\.kivy\logs\kivy_19-07-08_90.txt 
[INFO   ] [Kivy        ] v1.11.1 
[INFO   ] [Kivy        ] Installed at "C:\Users\MOHAMMAD\venv\test\lib\site-packages\kivy\__init__.py" 
[INFO] [Python      ] v3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)] 
[INFO   ] [Python      ] Interpreter at "C:\Users\MOHAMMAD\venv\test\Scripts\python.exe" 
[INFO   ] [Factory     ] 184 symbols loaded 
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored)
[CRITICAL] [Text        ] Unable to find any valuable Text 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 sdl2 - ImportError: DLL load failed: The specified module could not be found.   File "C:\Users\MOHAMMAD\venv\test\lib\site-packages\kivy\core\__init__.py",line 63, in core_select_lib fromlist=[modulename], level=0)   File "C:\Users\MOHAMMAD\venv\test\lib\site-packages\kivy\core\text\text_sdl2.py",
  line 13, in <module>
     from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,
import kivy
from kivy.app import App
from kivy.uix.button import Button
class TestApp(App):
    def build(self):
        return Button(text='Hello World')

TestApp().run()

Tags: textinfrompycoretestimportinfo

热门问题