ubuntu / fedora16中的vpython:无法初始化任何OpenGL

时间:2011-07-27 19:41:25

标签: ubuntu fedora vpython

我有Ubuntu 10.10

当我尝试使用python的视觉效果时,我得到了

>>> 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.

1 个答案:

答案 0 :(得分:0)

这可能是由于MESA和NVidia libGL库之间的库冲突described in this email thread。只需移动/usr/lib/libGL.so(进行备份),运行ldconfig,修复损坏的/usr/lib/libGL.so链接即可解决您的问题。