Kivy Runtime Error Unable to find any valuable window provider

599 views
Skip to first unread message

murali the warrior

unread,
Jul 26, 2020, 1:17:41 PM7/26/20
to Kivy users support
Hi kivy Team,

Greeting for the day!
Myself Murali. I'm from India. We are looking for some cross-platform libraries to build a few applications as an initiative for upcoming projects.
I have heard about Kivy tried to use it. 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 window provider error.

I have gone throw all your issues and tried all solutions. But none of them worked for me. I don't know what's wrong. Please let me know how to solve this. Otherwise, there is no option for me to move for another framework.

It will be helpful if you give any support.

My Code 
import os
os.environ['KIVY_GL_BACKEND'] = 'sdl2'
import kivy
kivy.require('1.11.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()

I'm using Ubuntu 20.04LTS. VS Code as codeeditor. 
Using python 3.7

Record log:

[INFO   ] Logger: Record log in /home/murali/.kivy/logs/kivy_20-07-26_27.txt
[INFO   ] Kivy: v1.11.1
[INFO   ] Kivy: Installed at "/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/__init__.py"
[INFO   ] Python: v3.7.7 (default, Mar 26 2020, 15:48:22)
[GCC 7.3.0]
[INFO   ] Python: Interpreter at "/home/murali/miniconda3/envs/sassy/bin/python"
[INFO   ] Factory: 184 symbols loaded
[INFO   ] Image: Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO   ] Text: Provider: sdl2
[INFO   ] Window: Provider: sdl2(['window_egl_rpi'] ignored)
[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
egl_rpi - ImportError: cannot import name 'bcm' from 'kivy.lib.vidcore_lite' (/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/lib/vidcore_lite/__init__.py)
  File "/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/core/__init__.py", line 63, in core_select_lib
    fromlist=[modulename], level=0)
  File "/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
    from kivy.lib.vidcore_lite import bcm, egl

sdl2 - RuntimeError: b'No available video device'
  File "/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/core/__init__.py", line 71, in core_select_lib
    cls = cls()
  File "/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/core/window/window_sdl2.py", line 152, in __init__
    super(WindowSDL, self).__init__()
  File "/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/core/window/__init__.py", line 981, in __init__
    self.create_window()
  File "/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/core/window/window_sdl2.py", line 290, in create_window
    self.get_gl_backend_name())
  File "kivy/core/window/_window_sdl2.pyx", line 110, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window
  File "kivy/core/window/_window_sdl2.pyx", line 74, in kivy.core.window._window_sdl2._WindowSDL2Storage.die

x11 - AttributeError: module 'kivy.core.window.window_info' has no attribute 'WindowInfoX11'
  File "/home/murali/miniconda3/envs/sassy/lib/python3.7/site-packages/kivy/core/__init__.py", line 63, in core_select_lib
    fromlist=[modulename], level=0)
  File "kivy/core/window/window_info.pxd", line 12, in init kivy.core.window.window_x11

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

Installed packages
Package            Version
------------------ ----------
appdirs            1.4.4
asgiref            3.2.10
buildozer          1.2.0.dev0
certifi            2020.6.20
chardet            3.0.4
colorama           0.4.3
Cython             0.29.10
distlib            0.3.1
Django             3.0.8
docutils           0.16
ffpyplayer         4.3.1
filelock           3.0.12
idna               2.10
image              1.5.32
importlib-metadata 1.7.0
Jinja2             2.11.2
Kivy               2.0.0rc3
Kivy-examples      1.11.1
Kivy-Garden        0.1.4
MarkupSafe         1.1.1
numpy              1.19.1
pep517             0.6.0
pexpect            4.8.0
Pillow             7.2.0
pip                20.1.1
ptyprocess         0.6.0
pygame             1.9.6
Pygments           2.6.1
python-for-android 2020.6.2
pytoml             0.1.21
pytz               2020.1
requests           2.24.0
setuptools         49.2.0
sh                 1.13.1
six                1.15.0
sqlparse           0.3.1
style              1.1.0
toml               0.10.1
update             0.0.1
urllib3            1.25.10
virtualenv         20.0.28
wheel              0.34.2
zipp               3.1.0

Elliot Garbus

unread,
Jul 26, 2020, 1:54:49 PM7/26/20
to kivy-...@googlegroups.com

This looks like an install issue.   Did you follow the directions here:

https://kivy.org/doc/stable/installation/installation-linux.html

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/a74ad9b8-95ce-49d8-9c8b-bc1d85dcb6a3o%40googlegroups.com.

 

murali the warrior

unread,
Jul 26, 2020, 11:46:02 PM7/26/20
to Kivy users support
Yeah. I installed perfectly by those description. After that I have uninstalled and reinstalled with conda also. Still the issue is occurring

Arumugam Maharaja

unread,
Jul 27, 2020, 2:01:43 AM7/27/20
to kivy-...@googlegroups.com, thewarri...@gmail.com
Hi Murli,

Please setup new virtual environment in case of installation issue.

Also below video might help you


Regards,
Arumugam Maharaja M,
Chennai, India.


On Mon, Jul 27, 2020, 9:16 AM murali the warrior <thewarri...@gmail.com> wrote:
Yeah. I installed perfectly by those description. After that I have uninstalled and reinstalled with conda also. Still the issue is occurring

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.

murali the warrior

unread,
Jul 27, 2020, 2:15:03 PM7/27/20
to Kivy users support
Hi Arumugam,

I have installed pycharm and created a new environment. Installed kivy package.
Tried to install kivy-deps.angle, kivy-deps.glew, kivy-deps.gstreamer. I had following error. 

ERROR: Could not find a version that satisfies the requirement kivy-deps.angle (from versions: none)
ERROR: No matching distribution found for kivy-deps.angle

ERROR: Could not find a version that satisfies the requirement kivy-deps.glew (from versions: none)
ERROR: No matching distribution found for kivy-deps.glew

ERROR: Could not find a version that satisfies the requirement kivy-deps.gstreamer (from versions: none)
ERROR: No matching distribution found for kivy-deps.gstreamer


On Monday, July 27, 2020 at 11:31:43 AM UTC+5:30, Arumugam Maharaja wrote:
Hi Murli,

Please setup new virtual environment in case of installation issue.

Also below video might help you


Regards,
Arumugam Maharaja M,
Chennai, India.


On Mon, Jul 27, 2020, 9:16 AM murali the warrior <thewarri...@gmail.com> wrote:
Yeah. I installed perfectly by those description. After that I have uninstalled and reinstalled with conda also. Still the issue is occurring

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.

Arumugam Maharaja

unread,
Jul 27, 2020, 10:06:47 PM7/27/20
to kivy-...@googlegroups.com
Hi Murli,

May I know your Python version?

Python 3.6 is best suitable for Kivy.

Regards,
Arumugam Maharaja M.

To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/2e91eda8-a65b-4f57-b1c4-7abda6c9a8ffo%40googlegroups.com.

murali the warrior

unread,
Jul 28, 2020, 1:27:20 AM7/28/20
to Kivy users support
I'm using Python 3.7.7. I thought it's a supported version.
Arumugam Maharaja M.

planckp...@gmail.com

unread,
Jul 28, 2020, 3:04:51 AM7/28/20
to Kivy users support
3.7 is fine.  This is an install issue, but what?

I see Kivy    2.0.0rc3   is installed. This didn't happen by following the install instructions ;)

Uninstall this version then follow the instructions, you may want this version for some reason but since nobody has any idea what the issue is we need to remove any variable we can.

Next, don't use the wheel, it clearly says Linux wheels are experimental.

It appears you may be using conda, if this is the use the conda install instructions.

Forget running from your editor (if you are doing this), run everything from the command line.

This may not be what you want but there is a strange issue here so start simple.
Reply all
Reply to author
Forward
0 new messages