Skip to content

Loading…

Better error message if %paste fails #880

Closed
takluyver opened this Issue · 2 comments

2 participants

@takluyver
IPython member

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
IPython member

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

@mattrco mattrco added a commit that referenced this issue
@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.
14d011c
@takluyver
IPython member

Closed by PR #999, merged in 6c20358.

@takluyver takluyver closed this
@mattvonrocketstein mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue
@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.
e3d9bf0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.