我有一台Ubuntu 10.10
当我尝试在python中使用visual时,我得到了
>>> from visual import *
>>> sphere()
VPython ***CRITICAL ERROR***: /build/buildd/python-visual-5.12/./src/gtk2/render_surface.cpp:88: render_surface: failed to initialize any OpenGL configuration, Aborting.注意:在Fedora 16中也会发生这种情况:
; env VPYTHON_DEBUG=1 ipython test.py
VPython: ./python/cvisualmodule.cpp:144: Importing cvisual from vpython-core2.
VPython: ./gtk2/display.cpp:66: Opening a window from Python.
VPython: ./gtk2/display.cpp:474: Starting GUI thread.
VPython: ./gtk2/display.cpp:491: Adding new display object at address 0x25168a0
VPython ***CRITICAL ERROR***: ./gtk2/render_surface.cpp:88: render_surface: failed to initialize any OpenGL configuration, Aborting.发布于 2012-06-01 20:03:23
这可能是由于MESA和NVidia libGL库之间的库冲突,如described in this email thread。只需移走/usr/lib/libGL.so (备份),运行ldconfig,并修复断开的/usr/lib/libGL.so链接,就可以解决您的问题。
https://stackoverflow.com/questions/6850265
复制相似问题