[IPython-user] IPython error

Brian Granger ellisonbg.net@gmail....
Mon Jul 27 11:19:30 CDT 2009


Hmmm,

I don't have wx 2.8.9 installed, but I do have 2.9 and 2.8.4 and both have
the __version__ attribute.  Can you just do (without the -wthread option):

import wx
wx.__version__

And see what you get.

Thanks

Brian

On Mon, Jul 20, 2009 at 12:30 AM, abhishek banerjee <ebabur@gmail.com>wrote:

> hi all
>           I am trying to use IPython with wthread option but it always
> giving me the error given below
>
>  [abhishek@localhost ~]$ ipython -wthread
> /usr/lib/python2.6/site-packages/IPython/Magic.py:38: DeprecationWarning:
> the sets module is deprecated
>   from sets import Set
> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
>
> /usr/bin/ipython in <module>()
>      26 import IPython.Shell
>      27
> ---> 28 IPython.Shell.start().mainloop()
>      29
>      30
>
> /usr/lib/python2.6/site-packages/IPython/Shell.py in start(user_ns)
>    1231
>    1232     shell = _select_shell(sys.argv)
> -> 1233     return shell(user_ns = user_ns)
>    1234
>    1235 # Some aliases for backwards compatibility
>
>
> /usr/lib/python2.6/site-packages/IPython/Shell.py in __init__(self, argv,
> user_ns, user_global_ns, debug, shell_class)
>     880         threading.Thread.__init__(self)
>     881         self.wx = wx
> --> 882         self.wx_mainloop = hijack_wx()
>     883
>     884         # Allows us to use both Tk and GTK.
>
>
> /usr/lib/python2.6/site-packages/IPython/Shell.py in hijack_wx()
>     696         import wxPython as wx
>     697
> --> 698     ver = wx.__version__
>     699     orig_mainloop = None
>     700     if ver[:3] >= '2.5':
>
> AttributeError: 'module' object has no attribute '__version__'
> Plz help me. I want use for Mayavi2 . My wxPython version 2.8.9 and IPython
> 0.9.1
>
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20090727/6be2e3ea/attachment.html 


More information about the IPython-user mailing list