Just installed QtOpenGL but cannot import it (from Python)

Nathan picture Nathan · Sep 14, 2009 · Viewed 12.9k times · Source

I just installed it with apt-get on debian linux with

apt-get install libqt4-opengl

the rest of PyQt4 is available, but I cant get to this new module.

from PyQt4 import QtOpenGL

raises ImportError. any idea what to do?

Answer

John Paulett picture John Paulett · Sep 14, 2009

Did you forget to install the Python bindings?

apt-get install python-qt4-gl