summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/numpy/core/__init__.py b/numpy/core/__init__.py
index ca2f45ece..b3a6967e1 100644
--- a/numpy/core/__init__.py
+++ b/numpy/core/__init__.py
@@ -14,13 +14,15 @@ for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']:
try:
from . import multiarray
-except ImportError:
+except ImportError as exc:
msg = """
Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you're working with a numpy git repo, try `git clean -xdf` (removes all
files not under version control). Otherwise reinstall numpy.
-"""
+
+Original error was: %s
+""" % (exc,)
raise ImportError(msg)
for envkey in env_added: