When doing a deep reload on modules that import numpy ipython aborts with the following error:
ImportError: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python intepreter from there.
I tried using the 'exclude' option to dreload as follows:
dreload(myModule, exclude=['numpy', 'sys', 'builtin', 'main'])
I get the same error, in the same place.
in myModule i have
"from subPackage import *"
and in subPackage i have all = ['function1', 'function2', 'etc'] to prevent module names from getting in my namespaces. Therein I also import numpy as follows:
"import numpy as np"
Any thoughts or suggestions?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4