D
D
dsfgfh2021-07-08 08:26:26
Python
dsfgfh, 2021-07-08 08:26:26

Why doesn't python kivy window launch?

The window does not open.
Here is the code:
from kivy.app import App

class MyApp(App):
pass

if __name__ == "__main__":
MyApp().run()

Here is the output:
[INFO ] [Logger ] Record log in C:\Users\ASUS \.kivy\logs\kivy_21-07-08_6.txt
[INFO ] [deps ] Successfully imported "kivy_deps.angle" 0.3.0
[INFO ] [deps ] Successfully imported "kivy_deps.glew" 0.3.0
[INFO ] [deps ] Successfully imported "kivy_deps.sdl2" 0.3.1
[INFO ] [Kivy ] v2.0.0
[INFO ] [Kivy ] Installed at "C:\Users\ASUS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.
[INFO] [Python] v3.8.10 (tags/v3.8.10:3d8993a, May 3 2021, 11:48:03) [MSC v.1928 64 bit (AMD64)]
[INFO] [Python] Interpreter at "C: \Users\ASUS\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\python.exe"
[INFO ] [Factory ] 186 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_pil (img_sdl2, img_ffpyplayer ignored)
[INFO ] [Text ] Provider: pil(['text_sdl2'] ignored)
[CRITICAL] [Window ] Unable to find any valuable Window provider. Please enable debug logging (eg 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 while importing _window_sdl2: The specified module could not be found.
File "C:\Users\ASUS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\kivy\core\__init__.py", line 58, in core_select_lib
mod= __import__(name='{2}.{0}.{1}'.format(
File "C:\Users\ASUS\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\ site-packages\kivy\core\window\window_sdl2.py", line 27, in
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)
S
shellnet, 2021-07-08
@warlinx

maybe try a different version of python

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question