From 499cf8509a9ee4db14f4221804ee94d93f7db682 2008-08-12 16:28:52 From: gvaroquaux Date: 2008-08-12 16:28:52 Subject: [PATCH] Helpful error message if trying to run the ipythonx entry point without wx installed. --- diff --git a/IPython/frontend/wx/ipythonx.py b/IPython/frontend/wx/ipythonx.py index 5c6ef04..e4df7f2 100755 --- a/IPython/frontend/wx/ipythonx.py +++ b/IPython/frontend/wx/ipythonx.py @@ -4,7 +4,16 @@ Entry point for a simple application giving a graphical frontend to ipython. """ -import wx +try: + import wx +except ImportError, e: + e.message = """%s +________________________________________________________________________________ +You need wxPython to run this application. +""" % e.message + e.args = (e.message, ) + e.args[1:] + raise e + from wx_frontend import WxController import __builtin__