From 296b709550a39cf1a99a07fcb0fd662aa1e310c4 Mon Sep 17 00:00:00 2001 From: Luke Campagnola Date: Sat, 12 Jan 2013 14:39:23 -0500 Subject: [PATCH] import numpy in pyqtgraph.__init__ to avoid confusing import errors --- pyqtgraph/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pyqtgraph/__init__.py b/pyqtgraph/__init__.py index c35992a2..da197aa6 100644 --- a/pyqtgraph/__init__.py +++ b/pyqtgraph/__init__.py @@ -16,6 +16,9 @@ from .Qt import QtGui #if QtGui.QApplication.instance() is None: #app = QtGui.QApplication([]) +import numpy ## pyqtgraph requires numpy + ## (import here to avoid massive error dump later on if numpy is not available) + import os, sys ## check python version