Better error message if %paste fails #880

takluyver opened this Issue Oct 15, 2011 · 2 comments


None yet

2 participants


The %paste magic can try a number of options, but on Linux it depends on having Tkinter installed. As reported on the mailing list, if Tkinter is missing, the user gets a traceback and an uninformative TryNext exception. We should catch this and provide a more informative message.

minrk commented Oct 20, 2011

Note that this should also close #211, where it is detected as just not working, presumably on account of the lame error.


Closed by PR #999, merged in 6c20358.

@takluyver takluyver closed this Nov 21, 2011
@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
@mattrco mattrco Fix issue #880 - initialize TryNext with args and kwargs.
Presents a message to the user along with the traceback prompting them to install tkinter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment