尝试在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
答案 0 :(得分:5)
似乎问题与openGL有关。
尝试更新图形驱动程序(确保启用了3D加速)
另外尝试安装libgtkglextmm-x11的dev软件包,ubuntu forums上的某个人似乎以这种方式解决了他们的问题。