2

I have a problem when installing Kivy in The Kivy Android Virtual Machine. This is all the terminal help me if you can't or propose idea I'm in kivy VM.

kivy@kivy-VirtualBox:~/Desktop/work/pygame$ python main.py
[INFO   ] [Logger      ] Record log in /home/kivy/.kivy/logs/kivy_17-04-12_14.txt
[INFO   ] [Kivy        ] v1.9.1
[INFO   ] [Python      ] v2.7.6 (default, Mar 22 2014, 22:59:56) 
[GCC 4.8.2]
[INFO   ] [Factory     ] 179 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 <multiprocessing> for socket
[INFO   ] [Window      ] Provider: sdl2(['window_egl_rpi'] ignored)
libGL error: pci id for fd 7: 80ee:beef, driver (null)
OpenGL Warning: glFlushVertexArrayRangeNV not found in mesa table
OpenGL Warning: glVertexArrayRangeNV not found in mesa table
OpenGL Warning: glCombinerInputNV not found in mesa table
OpenGL Warning: glCombinerOutputNV not found in mesa table
OpenGL Warning: glCombinerParameterfNV not found in mesa table
OpenGL Warning: glCombinerParameterfvNV not found in mesa table
OpenGL Warning: glCombinerParameteriNV not found in mesa table
OpenGL Warning: glCombinerParameterivNV not found in mesa table
OpenGL Warning: glFinalCombinerInputNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterfvNV not found in mesa table
OpenGL Warning: glGetCombinerOutputParameterivNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterfvNV not found in mesa table
OpenGL Warning: glGetFinalCombinerInputParameterivNV not found in mesa table
OpenGL Warning: glDeleteFencesNV not found in mesa table
OpenGL Warning: glFinishFenceNV not found in mesa table
OpenGL Warning: glGenFencesNV not found in mesa table
OpenGL Warning: glGetFenceivNV not found in mesa table
OpenGL Warning: glIsFenceNV not found in mesa table
OpenGL Warning: glSetFenceNV not found in mesa table
OpenGL Warning: glTestFenceNV not found in mesa table
libGL error: core dri or dri2 extension not found
libGL error: failed to load driver: vboxvideo
[INFO   ] [GL          ] OpenGL version <1.1 Chromium 1.9>
[INFO   ] [GL          ] OpenGL vendor <Humper>
[INFO   ] [GL          ] OpenGL renderer <Chromium>
[INFO   ] [GL          ] OpenGL parsed version: 1, 1
[CRITICAL] [GL          ] Minimum required OpenGL version (2.0) NOT found!

OpenGL version detected: 1.1

Version: 1.1 Chromium 1.9
Vendor: Humper
Renderer: Chromium

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

The application will leave now.
[INFO   ] [GL          ] Shading version <>
[INFO   ] [GL          ] Texture max size <1024>
[INFO   ] [GL          ] Texture max units <154129232>
[CRITICAL] [Window      ] Unable to find any valuable Window provider at all!
egl_rpi - ImportError: cannot import name bcm
  File "/usr/lib/python2.7/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)
  File "/usr/lib/python2.7/dist-packages/kivy/core/window/window_egl_rpi.py", line 12, in <module>
    from kivy.lib.vidcore_lite import bcm, egl

sdl2 - Exception: Shader didnt link, check info log.
  File "/usr/lib/python2.7/dist-packages/kivy/core/__init__.py", line 67, in core_select_lib
    cls = cls()
  File "/usr/lib/python2.7/dist-packages/kivy/core/window/window_sdl2.py", line 138, in __init__
    super(WindowSDL, self).__init__()
  File "/usr/lib/python2.7/dist-packages/kivy/core/window/__init__.py", line 722, in __init__
    self.create_window()
  File "/usr/lib/python2.7/dist-packages/kivy/core/window/window_sdl2.py", line 255, in create_window
    super(WindowSDL, self).create_window()
  File "/usr/lib/python2.7/dist-packages/kivy/core/window/__init__.py", line 897, in create_window
    self.render_context = RenderContext()
  File "instructions.pyx", line 750, in kivy.graphics.instructions.RenderContext.__init__ (kivy/graphics/instructions.c:10001)
  File "shader.pyx", line 184, in kivy.graphics.shader.Shader.__init__ (kivy/graphics/shader.c:3742)
  File "shader.pyx", line 687, in kivy.graphics.shader.Shader.vs.__set__ (kivy/graphics/shader.c:9979)
  File "shader.pyx", line 549, in kivy.graphics.shader.Shader.build_vertex (kivy/graphics/shader.c:8218)
  File "shader.pyx", line 579, in kivy.graphics.shader.Shader.link_program (kivy/graphics/shader.c:8596)

x11 - ImportError: No module named window_x11
  File "/usr/lib/python2.7/dist-packages/kivy/core/__init__.py", line 59, in core_select_lib
    fromlist=[modulename], level=0)

[CRITICAL] [App         ] Unable to get a Window, abort.
 Exception SystemExit: 1 in 'kivy.properties.dpi2px' ignored
[CRITICAL] [App         ] Unable to get a Window, abort.
kivy@kivy-VirtualBox:~/Desktop/work/pygame$ 

I install pygame and all the thing and look at this :

ImportError: cannot import name bcm--------
and this ----------
ImportError: No module named window_x11
Peter Badida
  • 11,310
  • 10
  • 44
  • 90

1 Answers1

2
[CRITICAL] [GL          ] Minimum required OpenGL version (2.0) NOT found!

This is the most important error and it tells you that you don't have an appropriate OpenGL version. I managed to make Kivy work in the VM, but that was after a change from Pygame as the default provider to the SDL2, therefore I'm pointing you at the sdl2 installation.

Also, to make it work, you'll first need to enable 3D acceleration in the VirtualBox, so that Kivy can actually use the GPU. For that see 3.5 Display Settings to get it right. IIRC, it's in SettingsDisplay3D acceleration, but check the manual if they changed it.

Peter Badida
  • 11,310
  • 10
  • 44
  • 90