A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/issues/1500/ below:

dreload doesn't seem to exclude numpy · Issue #1500 · ipython/ipython · GitHub

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

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:

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