question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to find any valuable Window provider

See original GitHub issue

Versions

Description

Trying to install Kivy

Code and Logs

[INFO   ] Logger: Record log in C:\Users\CASTILLO\.kivy\logs\kivy_18-12-10_124.txt
[INFO   ] Kivy: v1.10.1
[INFO   ] Python: v3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:06:47) [MSC v.1914 32 bit (Intel)]
[INFO   ] Factory: 194 symbols loaded
[INFO   ] Image: Providers: img_tex, img_dds, img_gif (img_sdl2, img_pil, img_ffpyplayer ignored)
[INFO   ] Text: Provider: sdl2
[CRITICAL] Window: Unable to find any valuable Window provider.
sdl2 - ImportError: DLL load failed: The specified procedure could not be found.
  File "C:\Users\CASTILLO\AppData\Local\Programs\Python\Python37-32\lib\site-packages\kivy\core\__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "C:\Users\CASTILLO\AppData\Local\Programs\Python\Python37-32\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.
import kivy
kivy.require('1.10.1')

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()

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
VictorCabellocommented, Dec 16, 2018

I got the same issue on windows 10 but I was able to solve it.

Versions

Python : 3.7.1 OS: Windows 10 Kivy: 1.10.1

Fix

I found that the problem are the dependencies used by Kivy, so I use pip tools to get a good set of dependencies.

Install pip-tools

pip-tools is a great tool to get your pacakges on place you could get more information here

pip install pip-tools

Generate requirements.in

From the kivy page I got the main libraries that I need and based on that I created my requirments.in

(.venv) PS D:\projects\game> Get-Content -path .\requirements.in
kivy
cython
docutils
pygments
pypiwin32
kivy.deps.sdl2
kivy.deps.glew
kivy.deps.gstreamer
(.venv) PS D:\projects\game>

Compile requirements.in

(.venv) PS D:\projects\game> pip-compile.exe .\requirements.in
#
# This file is autogenerated by pip-compile
# To update, run:
#
#    pip-compile --output-file .\requirements.txt .\requirements.in
#
certifi==2018.11.29       # via requests
chardet==3.0.4            # via requests
cython==0.29.2
docutils==0.14
idna==2.7                 # via requests
kivy-garden==0.1.4        # via kivy
kivy.deps.glew==0.1.10
kivy.deps.gstreamer==0.1.13
kivy.deps.sdl2==0.1.18
kivy==1.10.1
pygments==2.3.0
pypiwin32==223
pywin32==224              # via pypiwin32
requests==2.20.1          # via kivy-garden
urllib3==1.24.1           # via requests
(.venv) PS D:\projects\game>

Install depdencies

In this point you could use different commands but just to continue with pip-tools I use pip-sync:

(.venv) PS D:\projects\game> pip-sync.exe .\requirements.txt

Please use the requirments.txt to install the dependencies.

I hope this help you a little bit.

1reaction
supergitnessycommented, Nov 13, 2019

I had the same problem. I solved it by first uninstalling Kivy and its dependencies :

python -m pip uninstall kivy python -m pip uninstall kivy.deps.sdl2 python -m pip uninstall kivy.deps.glew python -m pip uninstall kivy.deps.gstreamer

Now reinstalling everything except gstreamer.

python -m pip install --upgrade pip wheel setuptools python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew --extra-index-url https://kivy.org/downloads/packages/simple/

the https://kivy.org/......etc is the end of the previous python -m pip install docutils…etc… then install kivy again

python -m pip install kivy

It should work, it worked for me !!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kivy not working (Error: Unable to find any valuable Window ...
I have been getting this error: Unable to find any valuable Window provider. With kivy heres the "full" error:
Read more >
Kivy: "Unable to find any valuable Window provider" [SOLVED]
I have installed Kivy. I followed the instructions for Python3 "Using software packages (PPA etc.)" here:.
Read more >
[CRITICAL] [Window ] Unable to find any valuable ... - GitHub
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 ...
Read more >
Kivy Runtime Error Unable to find any valuable window provider
For the Last 24 hrs, I'm trying to run a simple kivy app. It's not running. It shows Unable to find any valuable...
Read more >
[CRITICAL] [Window ] Unable to find any valuable ... - Reddit
[CRITICAL] [Window ] Unable to find any valuable Window provider. I have na Error while starting project with kivy.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found