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