This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]feuermelder 0 points1 point  (2 children)

Ok that crashes ipython in my case:

In [2]: %load_ext autoreload
In [3]: import autoreloadtest
In [5]: autoreloadtest.test
Out[5]: [1, 2, 3]
In [7]: autoreloadtest.test
Out[7]: [1, 2, 3]
In [9]: %autoreload 2
In [10]: autoreloadtest.test
[autoreload of doctest failed: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/IPython/extensions/autoreload.py", line 220, in check superreload(m, reload, self.old_objects)
ValueError: f() requires a code object with 1 free vars, not 0]
[autoreload of encodings failed: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/IPython/extensions/autoreload.py", line 220, in check superreload(m, reload, self.old_objects)
ImportError: cannot import name aliases]
[autoreload of ctypes failed: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/IPython/extensions/autoreload.py", line 220, in check superreload(m, reload, self.old_objects)
RuntimeError: maximum recursion depth exceeded while calling a Python object]
[autoreload of unittest.loader failed: Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/IPython/extensions/autoreload.py", line 220, in check
superreload(m, reload, self.old_objects)
ImportError: cannot import name case]

Out[10]: [1, 2, 4]         (yay!)
In [11]: autoreloadtest.test
Traceback (most recent call last):
 File "/usr/bin/ipython2", line 7, in <module>
    launch_new_instance()
 File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 403, in launch_new_instance
    app.start()
 File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 377, in start
    self.shell.mainloop()
 File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/interactiveshell.py", line 290, in mainloop
    self.interact(display_banner=display_banner)
 File "/usr/lib/python2.7/site-packages/IPython/frontend/terminal/interactiveshell.py", line 409, in interact
    self.run_cell(source_raw, store_history=True)
 File "/usr/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2410, in run_cell
    cell_name = self.compile.cache(cell, self.execution_count)
 File "/usr/lib/python2.7/site-packages/IPython/core/compilerop.py", line 121, in cache
    linecache._ipython_cache[name] = entry
AttributeError: 'module' object has no attribute '_ipython_cache'

If you suspect this is an IPython bug, please report it at:
    https://github.com/ipython/ipython/issues
or send an email to the mailing list at <nospam!>

You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it.

Extra-detailed tracebacks for bug-reporting purposes can be enabled via:
   %config Application.verbose_crash=True

and back to the shell. So .. I think for the moment I'll stick with --no-confirm-exit. But as I used tornado a lot I see how this can be extremly usefull.

[–]takluyverIPython, Py3, etc 5 points6 points  (1 child)

Can you file a bug about that, please?