I get the following errors when running a python file using kivy on a new Windows 10:
C:UsersMeAppDataLocalProgramsPythonPython36-32python.exe C:/Users/Me/Desktop/PycharmProjects/music_game_kivy/music_game_kivy.py
[INFO ] [Logger ] Record log in C:UsersMe.kivylogskivy_17-12-26_10.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
[INFO ] [Factory ] 194 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.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
File "C:UsersMeAppDataLocalProgramsPythonPython36-32libsite-packageskivycore\__init__.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
File "C:UsersMeAppDataLocalProgramsPythonPython36-32libsite-packageskivycore ext ext_sdl2.py", line 12, in <module>
from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,
pil - ModuleNotFoundError: No module named 'PIL'
File "C:UsersMeAppDataLocalProgramsPythonPython36-32libsite-packageskivycore\__init__.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
File "C:UsersMeAppDataLocalProgramsPythonPython36-32libsite-packageskivycore ext ext_pil.py", line 7, in <module>
from PIL import Image, ImageFont, ImageDraw
[CRITICAL] [App ] Unable to get a Text provider, abort.
Process finished with exit code 1
The exact same python file was running just fine on my old Mac. I'm not posting the entire code, because it is almost 1500 lines long... In case it's helpful, here are my imports from the top of the code:
from kivy.app import App
from kivy.clock import Clock
from kivy.graphics import Color, Rectangle
from kivy.uix.button import Button
from kivy.uix.image import Image
from kivy.uix.label import Label
from kivy.uix.widget import Widget
from random import randrange
Any help is greatly appreciated!
This is the new error message after installing Pillow:
C:UsersMeAppDataLocalProgramsPythonPython36-32python.exe C:/Users/Me/Desktop/PycharmProjects/music_game_kivy/music_game_kivy.py
[INFO ] [Logger ] Record log in C:UsersMe.kivylogskivy_17-12-26_11.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:04:45) [MSC v.1900 32 bit (Intel)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored)
[INFO ] [Audio ] Providers: (audio_ffpyplayer, audio_sdl2 ignored)
[CRITICAL] [Window ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified module could not be found.
File "C:UsersMeAppDataLocalProgramsPythonPython36-32libsite-packageskivycore\__init__.py", line 59, in core_select_lib
fromlist=[modulename], level=0)
File "C:UsersMeAppDataLocalProgramsPythonPython36-32libsite-packageskivycorewindowwindow_sdl2.py", line 26, in <module>
from kivy.core.window._window_sdl2 import _WindowSDL2Storage
[INFO ] [Text ] Provider: pil(['text_sdl2'] ignored)
[CRITICAL] [App ] Unable to get a Window, abort.
Process finished with exit code 1
See Question&Answers more detail:
os