I'm attempting to use imp.load_module
to import a file I've created which relies on the pandas
library. However, when importing the module an exception is thrown:
File "/usr/local/lib/python2.7/dist-packages/pandas/__init__.py", line 6, in
from . import hashtable, tslib, lib
ImportError: cannot import name hashtable
The weird thing is that if I examine sys.modules, I can see the module is loaded:
{ ...
'hashtable': <module 'pandas.hashtable' from '/usr/local/lib/python2.7/dist-packages/pandas/hashtable.so'>,
...
'pandas.hashtable': <module 'pandas.hashtable' from '/usr/local/lib/python2.7/dist-packages/pandas/hashtable.so'>,
... }
Am I missing something? I'm unsure of what I can do from this point, and I'm wondering if this is somehow related to this issue.