Kivy: Kivy for python 3 detect OpenGL as 1.1 on windows 10/7

Created on 29 Jun 2017  ·  16Comments  ·  Source: kivy/kivy

Versions

  • Python: 3.6
  • OS: Windows 10/7 64bit
  • Kivy: 1.10.0
  • Kivy installation method: pip

Description

I try to running kivy for python 3 on windows 7 but get this error
Open GL detected as 1.1, actually using opengl viewer it is 3.1
This issue not found on kivy for python 2.7 for windows or kivy for python 3 for ubuntu

Code and Logs

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

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

TestApp().run()

Most helpful comment

I had the same problem and solved it by running this in the cmd -
bash pip install kivy.deps.angle && set KIVY_GL_BACKEND=angle_sdl2

All 16 comments

What happens if you add this before the first line of your code?

from kivy import Config
Config.set('graphics', 'multisamples', '0')

nothing happened.
(clock) D:anaconda projectclock>Scriptspython main.py
[INFO ] [Logger ] Record log in C:UsersYen.kivylogskivy_17-06-29_9.txt
[INFO ] [Kivy ] v1.10.1.dev0, git-a4116a5, 20170507
[INFO ] [Python ] v3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_pil, img_gif (img_ffpyplayer ignored)
[INFO ] [OSC ] using for socket
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] No framebuffers extension is supported
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer
[INFO ] [GL ] OpenGL parsed version: 1, 1
[CRITICAL] [GL ] Minimum required OpenGL version (2.0) NOT found!

OpenGL version detected: 1.1

Version: b'1.1.0'
Vendor: b'Microsoft Corporation'
Renderer: b'GDI Generic'

Try upgrading your graphics drivers and/or your graphics hardware in case of problems.

The application will leave now.

I just try in windows 7 32 bit with python 3.6. It's worked

Ah, Anaconda. There are a couple of issues opened for their Python distribution not always working with Kivy.

I just fresh install python 3.6 and the problem still remain.

(hello) D:anaconda projecthello>Scriptspython main.py
[INFO ] [Logger ] Record log in C:UsersYen.kivylogskivy_17-06-29_10.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [OSC ] using for socket
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] No framebuffers extension is supported
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer
[INFO ] [GL ] OpenGL parsed version: 1, 1
[CRITICAL] [GL ] Minimum required OpenGL version (2.0) NOT found!

OpenGL version detected: 1.1

Version: b'1.1.0'
Vendor: b'Microsoft Corporation'
Renderer: b'GDI Generic'

Try upgrading your graphics drivers and/or your graphics hardware in case of problems.

The application will leave now.

Anaconda crashes regardless of the Windows/Python bitness combination, while the official Python distribution only has issues when the 32 bit version is executed on a 64 bit Windows?

at the last attempt, I use python36 not anaconda bundle, and the problem still there

Please accept my apologize, my mistake to download wrong version of python 36. This is the correct one and the problem still there.

(hello) D:anaconda projecthello>scriptspython main.py
[INFO ] [Logger ] Record log in C:UsersYen.kivylogskivy_17-06-29_14.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 18:41:36) [MSC v.1900 64 bit (AMD64)]
[INFO ] [Factory ] 194 symbols loaded
[INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] [Text ] Provider: sdl2
[INFO ] [OSC ] using for socket
[INFO ] [Window ] Provider: sdl2
[INFO ] [GL ] Using the "OpenGL" graphics system
[INFO ] [GL ] GLEW initialization succeeded
[INFO ] [GL ] No framebuffers extension is supported
[INFO ] [GL ] Backend used
[INFO ] [GL ] OpenGL version
[INFO ] [GL ] OpenGL vendor
[INFO ] [GL ] OpenGL renderer
[INFO ] [GL ] OpenGL parsed version: 1, 1
[CRITICAL] [GL ] Minimum required OpenGL version (2.0) NOT found!

OpenGL version detected: 1.1

Version: b'1.1.0'
Vendor: b'Microsoft Corporation'
Renderer: b'GDI Generic'

Try upgrading your graphics drivers and/or your graphics hardware in case of problems.

The application will leave now.

Somehow after reinstall python and using SET KIVY_GL_BACKEND=angle_sdl2 (I also used this method before and failed). Finally it's working. Thanks everyone for the support.
Case Closed

@srudyanto I see (hello) D:\anaconda project\hello>scripts\python main.py like in virtualenv. Before I only thought that's some kind of mistake, but now... try to install kivy normally, without virtualenv and run it normally (without angle, don't even install it for this test). I think it might be just an issue with the virtualenv and anaconda/virtualenv somehow removed the openGL libs from the path for you which resulted in this OpenGL 1.1 error.

What you may try with the current distribution before trying a non-virtualenv one is this:

echo %PATH%

if there's no C:\Windows\System32 (that's where the `opengl32.dll" and other important libs are) in there, do this:

set PATH=C:\Windows\System32;%PATH%

if there is that path, do this:

set

to show all env vars and look if anaconda doesn't use some special path for its libs. Then just run it.

Angle backend for py3.5+. In the command line, I make this:

pip install kivy.deps.angle
set KIVY_GL_BACKEND=angle_sdl2

And change multisamples key value in config file (%HOMEPATH%.kivyconfig.ini for me) from multisamples = 2 to multisamples = 0.

It works perfectly on windows 10.

Did not work for me on Windows 10 although I have OpenGL 3.1 !

snap1

Finally found the solution and documented it here (go to the bottom) !

I had the same problem and solved it by running this in the cmd -
bash pip install kivy.deps.angle && set KIVY_GL_BACKEND=angle_sdl2

I am windows 10 user having opengl above 2.0 and face same problem and resolve it using help from ----

[link] (https://stackoverflow.com/questions/34969990/kivy-does-not-detect-opengl-2-0)

  1. right click on This PC then open Properties .
  2. go to Advanced system settings .
  3. click on Environment Variables .
  4. click on New in User variables for --- .
  5. put KIVY_GL_BACKEND in Variable name .
  6. put angle_sdl2 in Variable value

Thank you, Ruithlzz09. It also works on Windows 10 in combination with opengl 1.1 !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

damienflament picture damienflament  ·  3Comments

davied9 picture davied9  ·  4Comments

frankgould picture frankgould  ·  4Comments

hansent picture hansent  ·  3Comments

shifters67 picture shifters67  ·  6Comments