- Windows 10 (сборка 2004)
- Python 3.7.8
Сначала я пытался установить на Python 3.8
- но потом понял, что это невозможно, затем я снизился до Python 3.7
. Я несколько раз пытался установить и удалить kivy и его зависимости, и даже вручную удалил все предыдущие папки kivy на моем компьютере. (следующее: это , это и то )
Но снова и снова тот же результат:
INFO ] [Logger ] Record log in C:\Users\MyName\.kivy\logs\kivy_20-08-01_5.txt
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.2.0
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "C:\Users\MyName\AppData\Roaming\Python\Python37\site-packages\kivy\__init__.py"
[INFO ] [Python ] v3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Program Files\Python37\python.exe"
[INFO ] [Factory ] 184 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, 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
sdl2 - ImportError: DLL load failed: The specified module could not be found.
File "C:\Users\MyName\AppData\Roaming\Python\Python37\site-packages\kivy\core\__init__.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\MyName\AppData\Roaming\Python\Python37\site-packages\kivy\core\window\window_sdl2.py", line 27, in <module>
from kivy.core.window._window_sdl2 import _WindowSDL2Storage
[CRITICAL] [App ] Unable to get a Window, abort.
Когда Пробую простейшую прогарм от вот :
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='Hello world')
if __name__ == '__main__':
MyApp().run()
Вызывает ошибку и про PIL:
[INFO ] [Logger ] Record log in C:\Users\MyName\.kivy\logs\kivy_20-08-01_7.txt
[INFO ] [deps ] Successfully imported "kivy_deps.gstreamer" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.2.0
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.2.0
[INFO ] [Kivy ] v1.11.1
[INFO ] [Kivy ] Installed at "C:\Users\MyName\AppData\Roaming\Python\Python37\site-packages\kivy\__init__.py"
[INFO ] [Python ] v3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit (AMD64)]
[INFO ] [Python ] Interpreter at "C:\Program Files\Python37\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\MyName\AppData\Roaming\Python\Python37\site-packages\kivy\core\__init__.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\MyName\AppData\Roaming\Python\Python37\site-packages\kivy\core\text\text_sdl2.py", line 13, in <module>
from kivy.core.text._text_sdl2 import (_SurfaceContainer, _get_extents,
pil - ModuleNotFoundError: No module named 'PIL'
File "C:\Users\MyName\AppData\Roaming\Python\Python37\site-packages\kivy\core\__init__.py", line 63, in core_select_lib
fromlist=[modulename], level=0)
File "C:\Users\MyName\AppData\Roaming\Python\Python37\site-packages\kivy\core\text\text_pil.py", line 7, in <module>
from PIL import Image, ImageFont, ImageDraw
[CRITICAL] [App ] Unable to get a Text provider, abort.
pip list:
Package Version
------------------- ---------
appdirs 1.4.4
astroid 2.4.2
certifi 2020.6.20
chardet 3.0.4
colorama 0.4.3
Cython 0.29.21
distlib 0.3.1
docutils 0.16
filelock 3.0.12
idna 2.10
importlib-metadata 1.7.0
isort 4.3.21
Kivy 1.11.1
kivy-deps.angle 0.2.0
kivy-deps.glew 0.2.0
kivy-deps.gstreamer 0.2.0
kivy-deps.sdl2 0.2.0
Kivy-examples 1.11.1
Kivy-Garden 0.1.4
lazy-object-proxy 1.4.3
mccabe 0.6.1
pip 20.2
pyenchant 3.1.1
Pygments 2.6.1
pylint 2.5.3
pypiwin32 223
pywin32 228
requests 2.24.0
setuptools 49.2.0
six 1.15.0
toml 0.10.1
typed-ast 1.4.1
urllib3 1.25.10
virtualenv 20.0.29
wheel 0.34.2
wrapt 1.12.1
zipp 3.1.0
Есть предложения, что происходит и как это исправить?