kivy windows. Unable to get a Window, abort

2,308 views
Skip to first unread message

leia velonisha

unread,
Aug 3, 2015, 1:42:34 AM8/3/15
to Kivy users support
so, I was coding in linux. It runs perfectly fine and good.
Untill I want to make an exe for my .py script. I used my Windows7. downloaded kivy. ran the batch, and tried to run my script. However this error appeared

E:\Kivy-1.9.0-py2.7-win32-x86>python ex3.py -
[INFO              ] [Logger      ] Record log in C:\Users\TOSHIBA\.kivy\logs\ki
vy_15-08-03_8.txt
[INFO              ] [Kivy        ] v1.9.0
[INFO              ] [Python      ] v2.7.9 (default, Dec 10 2014, 12:24:55) [MSC
 v.1500 32 bit (Intel)]
[INFO              ] [Image       ] Providers: img_tex, img_dds, img_gif, img_sd
l2, img_pil (img_ffpyplayer ignored)
[INFO              ] [Factory     ] 173 symbols loaded
[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: No matching GL pixel format available
  File "E:\Kivy-1.9.0-py2.7-win32-x86\kivy27\kivy\core\__init__.py", line 65, in
 core_select_lib
    cls = cls()
  File "E:\Kivy-1.9.0-py2.7-win32-x86\kivy27\kivy\core\window\window_sdl2.py", l
ine 121, in __init__
    super(WindowSDL, self).__init__()
  File "E:\Kivy-1.9.0-py2.7-win32-x86\kivy27\kivy\core\window\__init__.py", line
 616, in __init__
    self.create_window()
  File "E:\Kivy-1.9.0-py2.7-win32-x86\kivy27\kivy\core\window\window_sdl2.py", l
ine 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/window\_window_sdl2.c:1542)
    self.die()
  File "kivy\core\window\_window_sdl2.pyx", line 21, in kivy.core.window._window
_sdl2._WindowSDL2Storage.die (kivy\core/window\_window_sdl2.c:954)
    raise RuntimeError(<bytes> SDL_GetError())

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


and I have no idea how I can fix this :/
please help me

qua non

unread,
Aug 3, 2015, 1:45:15 AM8/3/15
to kivy-...@googlegroups.com
No matching GL pixel format available


This is usually raised when you do not have the correct window drivers.
Make sure to download the drivers from your GPU vendor not from Microsoft.

Microsoft is known to cripple OpenGL by only including OpenGL 1.x support in their drivers.


--
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.
For more options, visit https://groups.google.com/d/optout.

leia velonisha

unread,
Aug 5, 2015, 7:12:53 PM8/5/15
to Kivy users support
Hi I have installed other driver and it works! although kinda slower than in linux.
but when I tried to make exe with pyinstaller, this error came out

E:\kivywin\folder>pyinstaller --name touchtracer ..\kivy27\examples\demo\touchtr
acer\main.py
Fatal error in launcher: Unable to create process using '"E:\Kivy-1.9.0-py2.7-wi
n32-x86\Python27\python.exe"  "E:\kivywin\Python27\Scripts\pyinstaller.exe" --na
me touchtracer ..\kivy27\examples\demo\touchtracer\main.py'

leia velonisha

unread,
Aug 8, 2015, 8:50:50 PM8/8/15
to Kivy users support
update = I just reinstalled pyinstaller for a few times. And then the problem solved

Jaenal Kim

unread,
Sep 27, 2015, 6:16:06 PM9/27/15
to Kivy users support
Hi Leia, I'm having the same problem as you right there. Since you have fix the problem can you send me the driver that you previously install? It might be helpful to solved my problem. Thanks.

Bill Janssen

unread,
Oct 1, 2016, 6:30:31 PM10/1/16
to Kivy users support
A really naive question:  how to I find out what my GPU vendor is?

Bill

Keith Terrill

unread,
Nov 25, 2016, 11:57:56 AM11/25/16
to Kivy users support
I am having this problem.
Last year I attempted to use Kivy because of my interest in Cross Platform development between MicroSoft and Linux (Mint). I gave up after weeks of frustration trying to get it to work. I found that I could accomplish what I wanted with Tkinter.

Now, because of my interest in being Cross Platform with iPad, Android, and Linux, I have been brought back to looking at Kivy.

After a couple weeks of trying things, I am still here: "Unable to get a Window, abort."

Every place I look, I get different answers. Is Kivy so messed up, and disorganized despite what looks like very good documentation, that it is worthless?!!

Help, I am trying to get a Hello World to work... and it isn't.

ZenCODE

unread,
Nov 25, 2016, 2:29:17 PM11/25/16
to Kivy users support
@Keith Terrill. Works easily for the most of us, but what did you try? What messages or errors do you get? Any logs? We can't help without knowing that...

ivs...@mail.harvard.edu

unread,
Dec 29, 2017, 12:37:27 PM12/29/17
to Kivy users support
I was trying to figure out the same error (Unable to get a window abort) and came across this simple answer that works perfectly for me.

I am diseminating it because this problem appears to affect many users.

Hope it helps. Thank you so much Kent Tong

Kent Tong
Jan 8
no worry; I fixed it by copying libpng-16-16.dll from SDL2 into the dist folder.
- show quoted text -
Auto Generated Inline Image 1
Reply all
Reply to author
Forward
0 new messages