kivy: [CRITICAL] [Window ] Unable to find any valuable Window provider.

Versions

  • Python: 3.7.0
  • OS: Windows 10 64bit build 17763
  • Kivy: 1.10.1
  • Kivy installation method: pip install kivy --user

Description

I run kivy for the first time and something went wrong. I have fixed some of the errors but not all.

Code and Logs

This is the log when I run it.

[INFO   ] [Logger      ] Record log in C:\Users\werto\.kivy\logs\kivy_19-04-29_10.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit (AMD64)]
[INFO   ] [Factory     ] 194 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pil(['text_sdl2'] ignored)
[CRITICAL] [Window      ] Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: Uvedený modul nebyl nalezen.
  File "C:\Users\werto\AppData\Roaming\Python\Python37\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Users\werto\AppData\Roaming\Python\Python37\site-packages\kivy\core\window\window_sdl2.py", line 26, in <module>
    from kivy.core.window._window_sdl2 import _WindowSDL2Storage

[CRITICAL] [App         ] Unable to get a Window, abort.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 33 (12 by maintainers)

Most upvoted comments

I think I’m very unlucky.

[INFO   ] [Logger      ] Record log in C:\Users\werto\.kivy\logs\kivy_19-05-04_2.txt
[INFO   ] [Kivy        ] v1.11.0.dev0, git-8f375d8, 20190502
[INFO   ] [Kivy        ] Installed at "C:\Users\werto\AppData\Roaming\Python\Python37\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:\Program Files\Python37\python.exe"
[INFO   ] [deps        ] Successfully imported "kivy.deps.gstreamer_dev"
[INFO   ] [deps        ] Successfully imported "kivy.deps.gstreamer"
[INFO   ] [deps        ] Successfully imported "kivy.deps.angle"
[INFO   ] [deps        ] Successfully imported "kivy.deps.glew"
[INFO   ] [deps        ] Successfully imported "kivy.deps.glew_dev"
[INFO   ] [deps        ] Successfully imported "kivy.deps.sdl2"
[INFO   ] [deps        ] Successfully imported "kivy.deps.sdl2_dev"
[INFO   ] [Factory     ] 184 symbols loaded
[DEBUG  ] [Cache       ] register <kv.lang> with limit=None, timeout=None
[DEBUG  ] [Cache       ] register <kv.image> with limit=None, timeout=60
[DEBUG  ] [Cache       ] register <kv.atlas> with limit=None, timeout=None
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[DEBUG  ] [Cache       ] register <kv.texture> with limit=1000, timeout=60
[DEBUG  ] [Cache       ] register <kv.shader> with limit=1000, timeout=3600
[INFO   ] [Text        ] Provider: sdl2
[DEBUG  ] [Cache       ] register <textinput.label> with limit=None, timeout=60.0
[DEBUG  ] [Cache       ] register <textinput.width> with limit=None, timeout=60.0
[DEBUG  ] [App         ] Loading kv <.\epic.kv>
[DEBUG  ] [App         ] kv <.\epic.kv> not found
[INFO   ] [Window      ] Provider: sdl2
[INFO   ] [Window      ] Activate GLES2/ANGLE context
[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 - RuntimeError: b'Could not initialize OpenGL / GLES library'
  File "C:\Users\werto\AppData\Roaming\Python\Python37\site-packages\kivy\core\__init__.py", line 71, in core_select_lib
    cls = cls()
  File "C:\Users\werto\AppData\Roaming\Python\Python37\site-packages\kivy\core\window\window_sdl2.py", line 146, in __init__
    super(WindowSDL, self).__init__()
  File "C:\Users\werto\AppData\Roaming\Python\Python37\site-packages\kivy\core\window\__init__.py", line 970, in __init__
    self.create_window()
  File "C:\Users\werto\AppData\Roaming\Python\Python37\site-packages\kivy\core\window\window_sdl2.py", line 282, in create_window
    self.fullscreen, resizable, state)
  File "kivy\core\window\_window_sdl2.pyx", line 225, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
  File "kivy\core\window\_window_sdl2.pyx", line 75, in kivy.core.window._window_sdl2._WindowSDL2Storage.die

[CRITICAL] [App         ] Unable to get a Window, abort.

Did you re-start your terminal? It does not change existing terminals, you have to restart it.

Did you see the error log? Please follow the instructions given in the log.

[DEBUG ] [window ] Failed trying to import the "sdl2" provider from "C:\Users\werto\AppData\Roaming\Python\Python37\site-packages\kivy\core\window\_window_sdl2.cp37-win_amd64.pyd". This error is often encountered when a dependency is missing, or if there are multiple copies of the same dependency dll on the Windows PATH and they are incompatible with each other. This can occur if you are mixing installations (such as different python installations, like anaconda python and a system python) or if another unrelated program added its directory to the PATH. Please examine your PATH and python installation for potential issues. To further troubleshoot a "DLL load failed" error, please download "Dependency Walker" (64 or 32 bit version - matching your python bitness) from dependencywalker.com and set the environment variable KIVY_SDL2_DEPENDENCY_WALKER to the full path of the downloaded depends.exe file and rerun your application to generate an error report