Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

dreload doesn't seem to exclude numpy #1500

andrewgiessel opened this Issue Mar 15, 2012 · 3 comments


None yet
3 participants

andrewgiessel commented Mar 15, 2012

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?


andrewgiessel commented Mar 20, 2012

Any thoughts on how to deal with this?


bfroehle commented Apr 25, 2012

This issue should be closed, as the referenced error was fixed in #1457 and #32.


minrk commented Apr 25, 2012

closed by #1457

@minrk minrk closed this Apr 25, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment