Kivy not working (Error: Unable to find any valuable Window provider.)
You're probably missing some dependencies. From the docs:
Install the dependencies (skip gstreamer (~120MB) if not needed, see
Kivy’s dependencies):
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew;
python -m pip install kivy.deps.gstreamer
To install these dependencies, open up a terminal (can be a console, Pycharm Terminal window, etc.), run the first command and then the second command.
Pyinstaller Kivy: [CRITICAL] [Window ] Unable to find any valuable Window provider
I have got the same issue and fixed it by the help of kivy's pyinstaller guide
But now when i ran the compiled exe i recieve this error.
Traceback (most recent call last):
File "kivy\lang\parser.py", line 553, in execute_directives
File "<frozen importlib._bootstrap>", line 1109, in __import__
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'kivymd.toast'
Python 3.7.7 Kivy: Unable to find any valuable Window provider. sdl2 - ValueError: Not a boolean: 400
The error fixed by configuring C:\Users\<UserName>\.kivy\config.ini
:
[graphics]
display = -1
fullscreen = 0
height = 600
left = 0
maxfps = 60
multisamples = 2
position = auto
rotation = 0
show_cursor = 1
top = 0
width = 800
resizable = 1
borderless = 0
window_state = visible
minimum_width = 0
minimum_height = 0
min_state_time = .035
allow_screensaver = 1
shaped = 0
resizable value must be 1 or 0. Or else it could make a windows provider error. And also, install preresquisites to avoid another errors:
python -m pip install docutils pygments pypiwin32 kivy.deps.sdl2 kivy.deps.glew kivy.deps.angle
python -m pip install kivy_deps.gstreamer
Error when running any kivy code: Kivy 2.0.0 , python 3.9 error: [CRITICAL] [Window ] Unable to find any valuable Window provider
The solution for this problem is to uninstall kivy
and reinstall the cutting-edge version from master:
python3 -m pip uninstall kivy
python3 -m pip install "kivy[base] @ https://github.com/kivy/kivy/archive/master.zip"
Related Topics
Gunicorn Autoreload on Source Change
Mixing Cdef and Regular Python Attributes in Cdef Class
Using Monotonically_Increasing_Id() for Assigning Row Number to Pyspark Dataframe
Writing to a File in a for Loop Only Writes the Last Value
How to Convert Escaped Characters
Python: Start New Command Prompt on Windows and Wait for It Finish/Exit
How to Change Foreignkey Display Text in the Django Admin
Download File Using Partial Download (Http)
How to Normalize JSON Correctly by Python Pandas
How to Write Code to Autocomplete Words and Sentences
A Queryset by Aggregate Field Value
Thread Local Storage in Python
How to Run Python Script on Terminal
Best Way to Parse a Url Query String