尝试在 Ubuntu 11.10 上使用VPython时出现错误。我使用 Ubuntu 软件中心安装了该程序。我发现的所有附加说明要么适用于更旧的版本,要么让我感到困惑。为了使用 VPython,我需要做什么?我正在运行 Python 2.7.2。
neil@neilcomp:~$ python
Python 2.7.2+ (default, Oct 4 2011, 20:06:09)
[GCC 4.6.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from visual import *
>>> sphere()
(python:26388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(python:26388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(python:26388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(python:26388): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(python:26388): GdkGLExt-WARNING **: Cannot open \xa0\u0003G\u0001
(python:26388): GdkGLExt-WARNING **: Cannot open P\u000d\x99\u0001
glibmm-ERROR **:
unhandled exception (type std::exception) in signal handler:
what: Unable to get extension function: glCreateProgramObjectARB even though the extension is advertised.
Trace/breakpoint trap