Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Just installed QtOpenGL but cannot import it (from Python)

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?

like image 259
Nathan Avatar asked Sep 14 '09 04:09

Nathan


2 Answers

Did you forget to install the Python bindings?

apt-get install python-qt4-gl
like image 102
John Paulett Avatar answered Oct 23 '22 20:10

John Paulett


For Python3, I had to do sudo apt-get install python3-pyqt4.qtopengl

like image 13
Nick Crews Avatar answered Oct 23 '22 20:10

Nick Crews