import pyqtgraph as pg
import pyqtgraph as pg
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-1-e5a51b506085> in <module>()
----> 1 import pyqtgraph as pg
C:\Anaconda\lib\site-packages\pyqtgraph\__init__.py in <module>()
11 ## 'Qt' is a local module; it is intended mainly to cover up the differences
12 ## between PyQt4 and PySide.
---> 13 from .Qt import QtGui
14
15 ## not really safe--If we accidentally create another QApplication, the process hangs (and it is very difficult to trace the cause)
C:\Anaconda\lib\site-packages\pyqtgraph\Qt.py in <module>()
30 USE_PYSIDE = True
31 except ImportError:
---> 32 raise Exception("PyQtGraph requires either PyQt4 or PySide; neither package could be imported.")
33
34 if USE_PYSIDE:
Exception: PyQtGraph requires either PyQt4 or PySide; neither package could be imported.
import PyQt4
%gui qt
import PyQt4
---------------------------------------------------------------------------ImportError Traceback (most recent call last)<ipython-input-3-0c3b8c686717> in <module>()----> 1 import PyQt4
C:\Anaconda\lib\site-packages\IPython\external\qt_loaders.pyc in load_module(self, fullname) 45 Importing %s disabled by IPython, which has 46 already imported an Incompatible QT Binding: %s---> 47 """ % (fullname, loaded_api())) 48 49 ID = ImportDenier()
ImportError: Importing PyQt4 disabled by IPython, which has already imported an Incompatible QT Binding: pyqtv1
import sip
try:
sip.setapi('QDate', 2)
sip.setapi('QDateTime', 2)
sip.setapi('QString', 2)
sip.setapi('QtextStream', 2)
sip.setapi('Qtime', 2)
sip.setapi('QUrl', 2)
sip.setapi('QVariant', 2)
except ValueError, e:
raise RuntimeError('Could not set API version (%s): did you import PyQt4 directly?' % e)
import PyQt4
import siptry: sip.setapi('QDate', 2) sip.setapi('QDateTime', 2) sip.setapi('QString', 2) sip.setapi('QtextStream', 2) sip.setapi('Qtime', 2) sip.setapi('QUrl', 2) sip.setapi('QVariant', 2)except ValueError, e: raise RuntimeError('Could not set API version (%s): did you import PyQt4 directly?' % e)
%gui qt
import PyQt4