Hello,
I am running Macos 10.9.5, with anaconda on python 3.4.4, ipython 4.0.3.
I installed Phoenix and latest version of matplotlib (1.5.1)
I managed ipython to call the bundled version of python by replacing in the python file
#!//anaconda/envs/py3k/bin/python3
by
#!//anaconda/envs/py3k/python.app/Contents/MacOS/python
Everything seems to go well (I can execute ‘import wx’ for instance)
However both
ipython --pylab = wx
or executing (in ipython)
%gui wx
generate the following error :
Traceback (most recent call last):
File “_ctypes/callbacks.c”, line 234, in ‘calling callback function’
File “//anaconda/envs/py3k/lib/python3.4/site-packages/IPython/lib/inputhookwx.py”, line 96, in inputhook_wx2
assert wx.Thread_IsMain()
AttributeError: ‘module’ object has no attribute ‘Thread_IsMain’
If I understand well, in Phoenix wx.Thread_IsMain() has been replaced by wx.IsMainThread(). So there seems to be a compatibility problem.
Replacing wx.Thread_IsMain() by wx.IsMainThread() in the python hooks does not seem to work.
Is there a workaround ?
Does anybody have a solution for running ipython with a wxPhoenix event loop ?
Thank you
Emmanuel