Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dreload doesn't seem to exclude numpy #1500

Closed
andrewgiessel opened this issue Mar 15, 2012 · 3 comments
Closed

dreload doesn't seem to exclude numpy #1500

andrewgiessel opened this issue Mar 15, 2012 · 3 comments
Labels
Milestone

Comments

@andrewgiessel
Copy link
Contributor

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
Copy link
Contributor Author

Any thoughts on how to deal with this?

@bfroehle
Copy link
Contributor

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

@minrk
Copy link
Member

minrk commented Apr 25, 2012

closed by #1457

@minrk minrk closed this as completed Apr 25, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants