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

unfriendly error handling with pythonw and ipython-qtconsole #1437

Closed
mwiebe opened this issue Feb 23, 2012 · 2 comments
Closed

unfriendly error handling with pythonw and ipython-qtconsole #1437

mwiebe opened this issue Feb 23, 2012 · 2 comments
Milestone

Comments

@mwiebe
Copy link
Contributor

mwiebe commented Feb 23, 2012

See issue #1436. The following is copy/pasted from a comment there:

Behavior of ipython-qtconsole.exe and "pythonw ipython-qtconsole-script.pyw" is very unhelpful when it errors. It assumes users will see the message printed to the console. They will not, and just assume ipython has poor quality standards. ;) If IPython detected it was run with pythonw, it could pop up a message box instead of just printing to the nonexistent console and exiting. This is also important for the case where dependencies like pyside/pyqt are not installed.

C:\>python "C:\Python27\Scripts\ipython-qtconsole-script.pyw" --gui qt
IPython: an enhanced interactive Python shell.

Options
-------
<SNIP>
To see all available configurables, use `--help-all`

[IPKernelApp] Bad config encountered during initialization:
[IPKernelApp] Unrecognized flag: '--gui'
<HANG>
@takluyver
Copy link
Member

If we don't have PySide/PyQt, do we have any reliably available means to pop up an error?

@mwiebe
Copy link
Contributor Author

mwiebe commented Feb 23, 2012

Yes, we can use ctypes to call the MessageBox function.

http://msdn.microsoft.com/en-us/library/windows/desktop/ms645505(v=vs.85).aspx

@minrk minrk closed this as completed in 1fa7eb1 Mar 3, 2012
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Fix for issue ipython#1437, unfriendly windows qtconsole error handling

closes ipython#1437
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants