Window: Unable to find any valuable Window provider at all!

984 views
Skip to first unread message

Ed Lipson

unread,
Aug 27, 2015, 2:40:23 PM8/27/15
to Kivy users support, ed.l...@bnymellon.com
I have a command line python program which works. I want to add a GUI to it and thought to try kivy.

Trying the first example, I made a class out of my startup and added the App class. I get the attached error. Windows 7. I'm not expecting much to happen here except for the kivy App to open. Just a first test before I start making the main line of code 'GUI'.

Looking at some of the posts about this error, I'm not on Android and I can't change company GL drivers, machine is locked down at some level. SO what do I do to fix this? I could do tkinter but I wanted to try this.
kivy_15-08-27_1.txt
OptimStreamlineGUI.py

Brent Picasso

unread,
Aug 27, 2015, 5:29:21 PM8/27/15
to Kivy users support, ed.l...@bnymellon.com
Hi Ed, 

Make sure you launch your kivy app in the context of the Kivy virtual environment. Instructions here:

Ed Lipson

unread,
Aug 28, 2015, 7:52:51 AM8/28/15
to Kivy users support, ed.l...@bnymellon.com
I followed the instructions for the SendTo method and got the same results. I had run previously as just kivy.bat script.py.
botstrapping Kivy @ C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\ with Python C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\Python34
Setting Environment Variables:
#################################
GST_REGISTRY
C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\gstreamer\registry.bin
---------------
KIVY_SDL2_PATH
C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\SDL2\lib;C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\SDL2\include\SDL2;C:\kivy190\Kivy-1.9.0-py3.4-w
in32-x86\SDL2\bin
---------------
USE_SDL2
1
---------------
GST_PLUGIN_PATH:
C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\gstreamer\lib\gstreamer-1.0
---------------
PATH:
C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\;C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\Python34;C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\tools;C:
\kivy190\Kivy-1.9.0-py3.4-win32-x86\Python34\Scripts;C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\gstreamer\bin;C:\kivy190\Kivy-1.9.0-py3.4
-win32-x86\MinGW\bin;C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\SDL2\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\IBM\InfoSph
ere\Optim\services\jdk\jre\bin\j9vm;C:\Program Files\IBM\InfoSphere\Optim\services\jdk\jre\bin\j9vm;C:\Oracle_11G_ClientR2\product\1
1.2.0\client_1\bin;C:\PROGRA~1\CA\SC\etpki\lib;C:\Program Files\CA\SharedComponents\PEC\bin;C:\Windows\system32;C:\Windows;C:\Window
s\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Enterprise Vault\EVClient\;C:\Windows\System32\WindowsP
owerShell\v1.0\;C:\Program Files\CA\Cryptography\;C:\Program Files\CA\SCM;C:\Tcl\bin;C:\Oracle_11G_ClientR2\product\11.2.0\client_1\
bin;C:\PROGRA~1\CA\SC\etpki\lib;C:\Program Files\CA\SharedComponents\PEC\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Enterprise Vault\EVClient\;C:\Windows\System32\WindowsPowerShell\v1.0\
;C:\Program Files\CA\Cryptography\;C:\Program Files\CA\SCM;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\Program Fil
es\1E\NomadBranch\;C:\Program Files\QuickTime\QTSystem\;C:\Tcl\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\IBM\InfoSphe
re\Optim\services\jdk\jre\bin\j9vm;C:\Program Files\IBM\InfoSphere\Optim\services\jdk\jre\bin\j9vm;C:\Oracle_11G_ClientR2\product\11
.2.0\client_1\bin;C:\PROGRA~1\CA\SC\etpki\lib;C:\Program Files\CA\SharedComponents\PEC\bin;C:\Windows\system32;C:\Windows;C:\Windows
\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Enterprise Vault\EVClient\;C:\Windows\System32\WindowsPo
werShell\v1.0\;C:\Program Files\CA\Cryptography\;C:\Program Files\CA\SCM;C:\Tcl\bin;C:\Oracle_11G_ClientR2\product\11.2.0\client_1\b
in;C:\PROGRA~1\CA\SC\etpki\lib;C:\Program Files\CA\SharedComponents\PEC\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Enterprise Vault\EVClient\;C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\CA\Cryptography\;C:\Program Files\CA\SCM;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\Program File
s\1E\NomadBranch\;C:\Program Files\QuickTime\QTSystem\
----------------------------------
PYTHONPATH:
C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\kivy34;
----------------------------------
##################################
done bootstraping kivy...have fun!\n
running "python.exe C:\Users\xeaa2ll\Documents\code\ILMG\python\ExcelADGenerator\OptimStreamlineGUI.py" \n
[INFO              ] [Logger      ] Record log in C:\Users\xeaa2ll\.kivy\logs\kivy_15-08-28_0.txt
[INFO              ] [Kivy        ] v1.9.0
[INFO              ] [Python      ] v3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) [MSC v.1600 32 bit (Intel)]
[INFO              ] [Factory     ] 173 symbols loaded
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sdl2, img_pil (img_ffpyplayer ignored)
[INFO              ] [Text        ] Provider: sdl2
[INFO              ] [OSC         ] using <thread> for socket
[INFO              ] [Window      ] Provider: sdl2
[CRITICAL          ] [Window      ] Unable to find any valuable Window provider at all!
sdl2 - RuntimeError: b'No matching GL pixel format available'
  File "C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\kivy34\kivy\core\__init__.py", line 65, in core_select_lib
    cls = cls()
  File "C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\kivy34\kivy\core\window\window_sdl2.py", line 121, in __init__
    super(WindowSDL, self).__init__()
  File "C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\kivy34\kivy\core\window\__init__.py", line 616, in __init__
    self.create_window()
  File "C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\kivy34\kivy\core\window\window_sdl2.py", line 171, in create_window
    self.fullscreen, resizable, state)
  File "kivy\core\window\_window_sdl2.pyx", line 80, in kivy.core.window._window_sdl2._WindowSDL2Storage.setup_window (kivy\core/win
dow\_window_sdl2.c:1556)
  File "kivy\core\window\_window_sdl2.pyx", line 21, in kivy.core.window._window_sdl2._WindowSDL2Storage.die (kivy\core/window\_wind
ow_sdl2.c:958)

[CRITICAL          ] [App         ] Unable to get a Window, abort.
 Exception ignored in: 'kivy.properties.dpi2px'
 Traceback (most recent call last):
   File "C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\kivy34\kivy\utils.py", line 360, in __get__
     retval = self.func(inst)
   File "C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\kivy34\kivy\metrics.py", line 169, in dpi
     EventLoop.ensure_window()
   File "C:\kivy190\Kivy-1.9.0-py3.4-win32-x86\kivy34\kivy\base.py", line 126, in ensure_window
     sys.exit(1)
 SystemExit: 1
[CRITICAL          ] [App         ] Unable to get a Window, abort.
Press any key to continue . . .


To make it simpler, I deleted all but the imports and the kivy code:
from openpyxl import load_workbook
from datetime import datetime
import logging
import os
import sys
import re
import OptimStreamline_wb
import OptimStreamline_db
import OptimStreamline_dbdsn
import OptimStreamline_gen
import sqlite3
import pprint

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='Hello World')

TestApp().run()



Same error. Then I removed all the imports but kivy. Same error.

from kivy.app import App
from kivy.uix.button import Button

class TestApp(App):
    def build(self):
        return Button(text='Hello World')

TestApp().run()

I tried to run demo\kivycatalog and got the same reslts/error.

Brent Picasso

unread,
Aug 28, 2015, 9:58:53 AM8/28/15
to kivy-...@googlegroups.com, ed.l...@bnymellon.com

Do any of the kivy examples run, when launched from the context of the kivy virtual environment?  (Kivy.bat)

Brent Picasso
Autosport Labs
Technology for Race and Street

--
You received this message because you are subscribed to a topic in the Google Groups "Kivy users support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kivy-users/Vl8a53fA8Xg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ed Lipson

unread,
Aug 28, 2015, 10:47:30 AM8/28/15
to Kivy users support, ed.l...@bnymellon.com
None of the samples run. I installed this at home (Win8.1) and the all work. I have not tried my script from the office at home.
I did install some python libraries, but I don't see how that can impact this.

Ed Lipson

unread,
Aug 28, 2015, 12:18:03 PM8/28/15
to Kivy users support, ed.l...@bnymellon.com
to rule out some other impact I may have had on the python, I unpacked the 1.90 version to a new location, created a new send to for it and tried to run a sample program. It still failed.

I just tried to capture the video stuff from the system and got a warning that the settings can't be changed from a remote session. I have RDP's to the PC. Might that be the issue? I normally use dual, different sized, monitors but only a single one is active during RDP. I don't know how it fits in, but it is an observation.

Brent Picasso

unread,
Aug 28, 2015, 12:30:14 PM8/28/15
to kivy-...@googlegroups.com, ed.l...@bnymellon.com

Are you using RDP to access the system attempting to run kivy?

If so, RDP isn't supported.  You can try VNC if you can stomach the performance hit.

Brent Picasso
Autosport Labs
Technology for Race and Street

Ed Lipson

unread,
Aug 28, 2015, 3:01:49 PM8/28/15
to Kivy users support, ed.l...@bnymellon.com
Yes, I am remoting to the desktop where the code is hosted and running. Do you mean rdp is not supported for development or development and runtime (if I build an exe with pyinstaller, will it run rdp)? We run a lot of citrix/rdp users. I do it myself when I am remote to the office. This may be a real roadblock for me. But I always have tkinter. just more work. Is it on the development horizon?

Thanks, now I know what the problem is.

Brent Picasso

unread,
Aug 28, 2015, 3:05:50 PM8/28/15
to kivy-...@googlegroups.com, ed.l...@bnymellon.com
Yes, not supported due to the opengl 2 requirements.

However, it's really bizarre. If you launch the app using VNC, close VNC client and re-connect using RDP, I've observed the app will still be running fine in RDP. Not sure what kind of black magic is behind this, or if there's some overly stringent check upon startup.

-Brent
--

jbalt...@gmail.com

unread,
Aug 28, 2015, 6:03:23 PM8/28/15
to Kivy users support, ed.l...@bnymellon.com




I have a similar Problem with the Cutbuffer:

[INFO   ] [Logger      ] Record log in /home/devilstriker/.kivy/logs/kivy_15-08-28_18.txt
[INFO   ] [Kivy        ] v1.9.1-dev
[INFO   ] [Python      ] v2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2]
[INFO   ] [Factory     ] 177 symbols loaded
[INFO   ] [Image       ] Providers: img_tex, img_dds, img_gif, img_pygame, img_pil (img_ffpyplayer ignored)
[INFO   ] [Text        ] Provider: pygame
[INFO   ] [Window      ] Provider: pygame(['window_egl_rpi'] ignored)
[INFO   ] [GL          ] OpenGL version <3.0 Mesa 10.5.2>
[INFO   ] [GL          ] OpenGL vendor <Intel Open Source Technology Center>
[INFO   ] [GL          ] OpenGL renderer <Mesa DRI Intel(R) Bay Trail >
[INFO   ] [GL          ] OpenGL parsed version: 3, 0
[INFO   ] [GL          ] Shading version <1.30>
[INFO   ] [GL          ] Texture max size <8192>
[INFO   ] [GL          ] Texture max units <16>
[INFO   ] [Window      ] virtual keyboard not allowed, single mode, not docked
[INFO   ] [Clipboard   ] Provider: gtk3(['clipboard_dbusklipper'] ignored)
[CRITICAL] [Cutbuffer   ] Unable to find any valuable Cutbuffer provider at all!
xclip - OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden
  File "/usr/local/lib/python2.7/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/local/lib/python2.7/dist-packages/kivy/core/clipboard/clipboard_xclip.py", line 17, in <module>
    p = subprocess.Popen(['xclip', '-version'], stdout=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception

xsel - OSError: [Errno 2] Datei oder Verzeichnis nicht gefunden
  File "/usr/local/lib/python2.7/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/local/lib/python2.7/dist-packages/kivy/core/clipboard/clipboard_xsel.py", line 15, in <module>
    p = subprocess.Popen(['xsel'], stdout=subprocess.PIPE)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception

 /usr/lib/python2.7/dist-packages/gobject/constants.py:24: Warning: g_boxed_type_register_static: assertion 'g_type_from_name (name) == 0' failed
   import gobject._gobject
[INFO   ] [Video       ] Provider: pygst
[INFO   ] [GL          ] NPOT texture support is available
[INFO   ] [OSC         ] using <multiprocessing> for socket
[INFO   ] [Base        ] Start application main loop
** Message: don't know how to handle video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)3, profile=(string)high, codec_data=(buffer)0164001effe100196764001eacd940b429b011000003000100000300328f162d9601000668ebe3cb22c0, width=(int)720, height=(int)320, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1
Fatal Python error: (pygame parachute) Segmentation Fault
Abgebrochen (Speicherabzug geschrieben)




I have no idea what the Problem is.
 

Ed Lipson

unread,
Aug 29, 2015, 7:14:34 AM8/29/15
to Kivy users support, ed.l...@bnymellon.com
Windows 10 has Open GL 4 support. I've asked if they are backporting, don't expect a response and if I do get one I don't expect a positive answer. Company moves slowly, just got Win7 at the last moments before WinXP went off support. Win10 could be a while. 

I'm not sure if I can build it as a dual mode app, if under RDP don't use Kivy. I think I still have to bootstrap it though, so I'm not sure if it is possible. I may need two separate binaries. Time to experiment.

Ed Lipson

unread,
Aug 29, 2015, 7:19:29 AM8/29/15
to Kivy users support, ed.l...@bnymellon.com


On Friday, August 28, 2015 at 6:03:23 PM UTC-4, jbalt...@gmail.com wrote:


Am Donnerstag, 27. August 2015 20:40:23 UTC+2 schrieb Ed Lipson:
I have a command line python program which works. I want to add a GUI to it and thought to try kivy.

Trying the first example, I made a class out of my startup and added the App class. I get the attached error. Windows 7. I'm not expecting much to happen here except for the kivy App to open. Just a first test before I start making the main line of code 'GUI'.

Looking at some of the posts about this error, I'm not on Android and I can't change company GL drivers, machine is locked down at some level. SO what do I do to fix this? I could do tkinter but I wanted to try this.




I have a similar Problem with the Cutbuffer:



I suspect, after a quick Google search on what cutbuffer is, that it is also related to how you are running. I know I have very strange behavior with my Clipmate program if I try and let it interact across the RDP session from the local PC to the remote PC. When I shut off the option of having it interact both copies run OK separately on their respective systems. Just a guess. 
Reply all
Reply to author
Forward
0 new messages