"无法获得文本提供者,中止"在Windows上使用python 2.7的kivy

时间:2016-01-13 01:04:58

标签: python kivy pillow

我刚买了一台新笔记本电脑,并试图在上面安装kivy几个小时我非常沮丧。我的代码在我的桌面上运行,产生错误声称没有文本提供程序。我在网上进行了大量的搜索,发现它与pygame和枕头相关联,并且我在使用64位python的32位模块时遇到了错误等等。重新安装kivy和python两次之后,我仍然一无所获。安装Pillow会产生另一个错误,然后是GUI,但是使用了奇怪的模糊而不是字母。卸载枕头可以解决问题。我在使用此代码的任何其他PC上都没有安装枕头。有人有任何想法吗?

[INFO              ] [Logger      ] Record log in C:\Users\willh\.kivy\logs\kivy_16-01-13_10.txt
[INFO              ] [Kivy        ] v1.9.1
[INFO              ] [Python      ] v2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit (Intel)]
[INFO              ] [Factory     ] 179 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 at all!
sdl2 - ImportError: DLL load failed: The specified procedure could not be found.
  File "C:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Python27\lib\site-packages\kivy\core\text\text_sdl2.py", line 12, in <module>
    from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,

pil - ImportError: No module named PIL
  File "C:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Python27\lib\site-packages\kivy\core\text\text_pil.py", line 8, in <module>
    from PIL import Image, ImageFont, ImageDraw

[CRITICAL          ] [App         ] Unable to get a Text provider, abort.

0 个答案:

没有答案