We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27bbea7 commit 7c478d7Copy full SHA for 7c478d7
pandas/__init__.py
@@ -28,7 +28,11 @@
28
tslib as _tslib)
29
except ImportError as e: # pragma: no cover
30
# hack but overkill to use re
31
- module = str(e).replace('cannot import name ', '')
+ module = str(e).replace('cannot import name ', '')\
32
+ .replace('No module named ', '')
33
+ if 'does not export' in module:
34
+ # GH#18089
35
+ raise
36
raise ImportError("C extension: {0} not built. If you want to import "
37
"pandas from the source directory, you may need to run "
38
"'python setup.py build_ext --inplace --force' to build "
0 commit comments