运行此处的基本 hello world 脚本 -https://kivy.org/docs/guide/basic.html生成以下日志并弹出一个完全空白和黑色的窗口。
我已经在 Ubuntu 14.04 上安装了 Kivy 1.9.1 和 python 2.7,我也尝试过升级我的图形驱动程序,但这并不能解决问题。
日志:
[INFO ] Logger: Record log in /home/minzey/.kivy/logs/kivy_16-04-22_7.txt
[INFO ] Kivy: v1.9.1
[INFO ] Python: v2.7.6 (default, Jun 22 2015, 17:58:13)
[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)
[INFO ] GL: OpenGL version <3.0 Mesa 10.1.0>
[INFO ] GL: OpenGL vendor <Intel Open Source Technology Center>
[INFO ] GL: OpenGL renderer <Mesa DRI Intel(R) Broadwell >
[INFO ] GL: OpenGL parsed version: 3, 0
[INFO ] GL: Shading version <1.30>
[INFO ] GL: Texture max size <8192>
[INFO ] GL: Texture max units <32>
[INFO ] Window: auto add sdl2 input provider
[INFO ] Window: virtual keyboard not allowed, single mode, not docked
[INFO ] Base: Start application main loop
[INFO ] GL: NPOT texture support is available
[INFO ] Base: Leaving application in progress...
以下是代码:
import kivy
kivy.require('1.9.1') # replace with your current kivy version !
from kivy.app import App
from kivy.uix.label import Label
class MyApp(App):
def build(self):
return Label(text='Hello world')
if __name__ == '__main__':
MyApp().run()
答案1
xclip
使用安装sudo apt-get install xclip
。另外,检查您的gtk
版本。将其更新至gtk3
。
编辑:也安装 ffmpeg。