1

我有一个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.
4

1 回答 1

0

这可能是由于本电子邮件线程中所述的MESA 和 NVidia libGL 库之间的库冲突。只需/usr/lib/libGL.so离开(备份)、运行ldconfig并修复损坏的/usr/lib/libGL.so链接即可解决您的问题。

于 2012-06-01T12:03:23.357 回答