Z
Z
Zakhar Zhestovsky2020-05-26 11:49:09
Python
Zakhar Zhestovsky, 2020-05-26 11:49:09

Why does it throw an error when writing the first program in Python Kivy?

pip installed everything, kivy installed without errors. Including (PIL, and removed Cyrillic from the path)
I tried to run it with pycharm, the same error.
Already uninstalled everything and reinstalled. The same.
I want to reinstall Windows, but something tells me and it will not help.
5eccd7a60e87e699245994.png

[INFO   ] [Logger      ] Record log in C:\Users\79890\.kivy\logs\kivy_20-05-26_6.txt
[INFO   ] [Kivy        ] v1.11.1
[INFO   ] [Kivy        ] Installed at "C:\Users\79890\AppData\Local\Programs\Python\Python37\lib\site-packages\kivy\__init__.py"
[INFO   ] [Python      ] v3.7.5 (tags/v3.7.5:5c02a39a0b, Oct 15 2019, 00:11:34) [MSC v.1916 64 bit (AMD64)]
[INFO   ] [Python      ] Interpreter at "C:\Users\79890\AppData\Local\Programs\Python\Python37\pythonw.exe"
[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
sdl2 - ImportError: DLL load failed: Не найден указанный модуль.
  File "C:\Users\79890\AppData\Local\Programs\Python\Python37\lib\site-packages\kivy\core\__init__.py", line 63, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Users\79890\AppData\Local\Programs\Python\Python37\lib\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.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgeny Starkov, 2020-05-26
@asencilius

Turn on debug to get more information and also log / logs on the site in the code put
Debug:
python main.py -c kivy:logl_level:debug
Try:

python -m pip install --upgrade pip wheel setuptools
python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.1.* kivy_deps.glew==0.1.*
python -m pip install kivy_deps.gstreamer==0.1.*

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question