Skip to content

Kivy window_sdl2 fails: "Unable to get a Window" #16

Open
@nicolafiorello

Description

@nicolafiorello

Hi!
I am trying to get this project to work, but dependencies are pretty old and it's not that easy.

I am currently running Python 2.7.14, with these packages:

certifi==2021.10.8
chardet==4.0.0
Click==7.0
Cython==0.29.23
docutils==0.13.1
idna==2.10
Kivy==1.10.1
kivy-deps.glew==0.1.12
kivy-deps.gstreamer==0.1.17
kivy-deps.sdl2==0.1.22
Kivy-Garden==0.1.4
kivy.deps.angle==0.1.6
modbus-tk==1.1.2
Pillow==6.2.2
pygame==1.9.4
pyglet==1.2.4
Pygments==2.1.3
pymodbus==1.5.2
pypiwin32==223
pysdl2-dll==2.24.1
pyserial==3.2.1
pywin32==228
requests==2.12.4
six==1.11.0
urllib3==1.26.12

Now, with this python version I was able to get Kivy 1.10.1, which is needed because the project uses some functions deprecated in newest Kivy versions. But now I have a problem when I try to execute the script:

$ ./tools/launcher
./tools/launcher
[INFO   ] [Logger      ] Record log in C:\Users\PCUT3\.kivy\logs\kivy_22-10-11_8.txt
[INFO   ] [Kivy        ] v1.10.1
[INFO   ] [Python      ] v2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:25:58) [MSC v.1500 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: Impossibile trovare il modulo specificato.
  File "C:\Python27\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Python27\lib\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.

Anyone can help? Any similar issue found online does not have a solution that fixes this.
Thank you very much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions