2011-07-27 8 views
1

J'ai un Ubuntu 10.10vpython dans ubuntu/fedora16: Impossible d'initialiser une OpenGL

lorsque je tente d'utiliser visuel avec python je reçois

>>> 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. 

Note: ce qui se passe dans Fedora 16 ainsi:

; 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. 

Répondre

0

Cela peut être dû à un conflit de bibliothèque entre les bibliothèques MESA et NVIDIA libGL en tant que described in this email thread. Il suffit de déplacer /usr/lib/libGL.so loin (faire une sauvegarde), en cours d'exécution ldconfig, et en corrigeant le lien /usr/lib/libGL.so cassé devrait résoudre votre problème.

Questions connexes