Skip to content

Commit 16c247b

Browse files
David Readjreback
David Read
authored andcommitted
Fixes truncated error message "C extension: umpy.core.multiarray failed to import" (#16366)
1 parent bd300e4 commit 16c247b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
tslib as _tslib)
2929
except ImportError as e: # pragma: no cover
3030
# hack but overkill to use re
31-
module = str(e).lstrip('cannot import name ')
31+
module = str(e).replace('cannot import name ', '')
3232
raise ImportError("C extension: {0} not built. If you want to import "
3333
"pandas from the source directory, you may need to run "
3434
"'python setup.py build_ext --inplace --force' to build "

0 commit comments

Comments
 (0)