在Kivy Android虚拟机中安装kivy时

时间:2017-04-12 12:47:51

标签: linux ubuntu virtual-machine kivy

在Kivy Android虚拟机中安装Kivy时遇到问题。如果您不能或想出我在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$ 

我安装pygame以及所有内容并查看:

ImportError: cannot import name bcm--------
and this ----------
ImportError: No module named window_x11

1 个答案:

答案 0 :(得分:2)

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

这是最重要的错误,它告诉您没有合适的OpenGL版本。我设法让Kivy在VM中工作,但那是在从Pygame更改为SDL2的默认提供者之后,因此我指向了sdl2 installation

此外,为了使其工作,您首先需要在VirtualBox中启用 3D加速,以便Kivy可以实际使用GPU。为此,请参阅3.5 Display Settings以使其正确。 IIRC,它位于SettingsDisplay3D acceleration,但检查手册是否有更改。