PyEval_EvalCodeEx: Assertion crash fixed with WXAgg
Status: Pre-Alpha
Brought to you by:
dgil
SVN head, Fedora 9, kept getting this error:
python: Python/ceval.c:2624: PyEval_EvalCodeEx: Assertion `tstate != ((void *)0)' failed.
Occurs when clicking on a security in the main window (didn't get any further yet) and halts entire application.
According to this thread, this error can be caused by faulty matplotlib/wx interaction:
http://www.nabble.com/Mlab-doesn't-work-td17822126.html
The according fix I found is to add this after "import matplotlib" in itrade_wxgraph.py:
matplotlib.use('WXAgg')