【问题标题】:vpython in ubuntu/fedora16 : failed to initialize any OpenGLubuntu/fedora16 中的 vpython:无法初始化任何 OpenGL
【发布时间】:2011-07-27 19:41:25
【问题描述】:

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

【问题讨论】:

    标签: ubuntu fedora vpython


    【解决方案1】:

    这可能是由于 MESA 和 NVidia libGL 库(described in this email thread)之间的库冲突。只需将/usr/lib/libGL.so 移走(备份),运行ldconfig,并修复损坏的/usr/lib/libGL.so 链接即可解决您的问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-10
      • 2018-11-19
      • 2020-11-15
      • 1970-01-01
      • 2016-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多