This is related to this question but applicable to Python 3 rather than 2.x
I am trying to run the pyqtgraph example programs under Python 3.4 (Ubuntu 14.04). When I try to run the surface-plotting example I get:
tim@MERLIN:/usr/local/lib$ python3 -m pyqtgraph.examples
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph-0.9.8-py3.4.egg/pyqtgraph/examples/GLSurfacePlot.py", line 12, in <module>
import pyqtgraph.opengl as gl
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph-0.9.8-py3.4.egg/pyqtgraph/opengl/__init__.py", line 1, in <module>
from .GLViewWidget import GLViewWidget
File "/usr/local/lib/python3.4/dist-packages/pyqtgraph-0.9.8-py3.4.egg/pyqtgraph/opengl/GLViewWidget.py", line 1, in <module>
from pyqtgraph.Qt import QtCore, QtGui, QtOpenGL
ImportError: cannot import name 'QtOpenGL'
Can anyone suggest what is the best way to go about installing this for Python 3 (it works great under Python 2.7)?