Hmmm,<br><br>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):<br><br>import wx<br>wx.__version__<br><br>And see what you get.<br>
<br>Thanks<br><br>Brian<br><br><div class="gmail_quote">On Mon, Jul 20, 2009 at 12:30 AM, abhishek banerjee <span dir="ltr"><<a href="mailto:ebabur@gmail.com">ebabur@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
hi all<br> I am trying to use IPython with wthread option but it always giving me the error given below<br><br> [abhishek@localhost ~]$ ipython -wthread<br>/usr/lib/python2.6/site-packages/IPython/Magic.py:38: DeprecationWarning: the sets module is deprecated<br>
from sets import Set<br>---------------------------------------------------------------------------<br>AttributeError Traceback (most recent call last)<br><br>/usr/bin/ipython in <module>()<br>
26 import IPython.Shell<br> 27 <br>---> 28 IPython.Shell.start().mainloop()<br> 29 <br> 30 <br><br>/usr/lib/python2.6/site-packages/IPython/Shell.py in start(user_ns)<br> 1231 <br> 1232 shell = _select_shell(sys.argv)<br>
-> 1233 return shell(user_ns = user_ns)<br> 1234 <br> 1235 # Some aliases for backwards compatibility<br><br><br>/usr/lib/python2.6/site-packages/IPython/Shell.py in __init__(self, argv, user_ns, user_global_ns, debug, shell_class)<br>
880 threading.Thread.__init__(self)<br> 881 self.wx = wx<br>--> 882 self.wx_mainloop = hijack_wx()<br> 883 <br> 884 # Allows us to use both Tk and GTK.<br><br><br>/usr/lib/python2.6/site-packages/IPython/Shell.py in hijack_wx()<br>
696 import wxPython as wx<br> 697 <br>--> 698 ver = wx.__version__<br> 699 orig_mainloop = None<br> 700 if ver[:3] >= '2.5':<br><br>AttributeError: 'module' object has no attribute '__version__'<br>
Plz help me. I want use for Mayavi2 . My wxPython version 2.8.9 and IPython 0.9.1<br>
<br>_______________________________________________<br>
IPython-user mailing list<br>
<a href="mailto:IPython-user@scipy.org">IPython-user@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br></blockquote></div><br>