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

autoreload does not work in ipython 0.13.x, python 3.3 #3302

Closed
2sn opened this issue May 10, 2013 · 7 comments
Closed

autoreload does not work in ipython 0.13.x, python 3.3 #3302

2sn opened this issue May 10, 2013 · 7 comments
Labels
Milestone

Comments

@2sn
Copy link

2sn commented May 10, 2013

~/python/source3>ipython3
Python 3.3.0 (default, Sep 29 2012, 22:07:38) 
Type "copyright", "credits" or "license" for more information.

IPython 0.13.2 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: %load_ext autoreload

In [2]: %autoreload 2

In [3]: from multiprocessing import util
[autoreload of importlib._bootstrap failed: Traceback (most recent call last):
  File "/usr/lib/python3.3/site-packages/IPython/extensions/autoreload.py", line 243, in check
    superreload(m, reload, self.old_objects)
AttributeError: 'module' object has no attribute '__loader__'
]

In [4]: from multiprocessing import util

ImportError                               Traceback (most recent call last)
<ipython-input-4-11d3538f481e> in <module>()
----> 1 from multiprocessing import util

ImportError: cannot import name util

...

@takluyver
Copy link
Member

importlib._bootstrap is a Python 3.3 thing. I'm not sure why the tests haven't picked it up, though... ah, no, they were disabled in #1911.

I had a feeling there was a blacklist of modules not to try reloading, but I can't see it anywhere in the code. See also #2976 for a similar (but not the same) failure.

@takluyver
Copy link
Member

I can't currently replicate this with master in Python 3.3 on Ubuntu. Can you see if it still affects you?

@2sn
Copy link
Author

2sn commented Jul 1, 2013

I think it seems now fixed. It seems different in 3.3 than in earlier
versions - the entire import/reload. Thanks! -Alexander

On 30/06/13 07:37, Thomas Kluyver wrote:

I can't currently replicate this with master in Python 3.3 on Ubuntu. Can you see if it still affects you?


Reply to this email directly or view it on GitHub:
#3302 (comment)

@takluyver
Copy link
Member

Yep, the import machinery was reworked in Python 3.3 - there are some details here: http://docs.python.org/3/whatsnew/3.3.html#using-importlib-as-the-implementation-of-import

Anyway, closing this now as it seems to be fixed, we can reopen it if the bug reappears.

@2sn
Copy link
Author

2sn commented Jul 2, 2013

Dear Thomas,

OK, Thanks!

-Alexander

On 01/07/13 22:40, Thomas Kluyver wrote:

Yep, the import machinery was reworked in Python 3.3 - there are some details here: http://docs.python.org/3/whatsnew/3.3.html#using-importlib-as-the-implementation-of-import

Anyway, closing this now as it seems to be fixed, we can reopen it if the bug reappears.


Reply to this email directly or view it on GitHub:
#3302 (comment)

@2sn
Copy link
Author

2sn commented Jul 12, 2013

... but it actually still does not work. %autorelaod seems to be just
ignored. I would classify this as 'fail'.

On 01/07/13 22:40, Thomas Kluyver wrote:

Yep, the import machinery was reworked in Python 3.3 - there are some details here: http://docs.python.org/3/whatsnew/3.3.html#using-importlib-as-the-implementation-of-import

Anyway, closing this now as it seems to be fixed, we can reopen it if the bug reappears.


Reply to this email directly or view it on GitHub:
#3302 (comment)

@Carreau
Copy link
Member

Carreau commented Jul 12, 2013

@2sn did you try on master?

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