简体   繁体   English

Ubuntu 11.10上的VPython错误

[英]VPython Error on Ubuntu 11.10

I get an error when trying to use VPython on Ubuntu 11.10. 尝试在Ubuntu 11.10上使用VPython时出现错误。 I installed the program using the Ubuntu Software Center. 我使用Ubuntu软件中心安装了该程序。 All the additional instructions that I've found are either for much older versions or confuse me. 我发现的所有其他说明都是针对较旧的版本或使我感到困惑。 What do I need to do in order to use VPython? 为了使用VPython,我需要做什么? I am running Python 2.7.2. 我正在运行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

It seems like the problem is openGL related. 看来问题与openGL有关。

Try updating your graphics driver (make sure you have 3D acceleration enabled) 尝试更新图形驱动程序(确保已启用3D加速)

Also try installing the dev package for libgtkglextmm-x11, someone on the ubuntu forums seem to have solved their problem this way. 还可以尝试为libgtkglextmm-x11安装dev软件包, ubuntu论坛上的某人似乎已经通过这种方式解决了他们的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM