Greetings,
I am getting a segmentation fault:
~/anaconda/bin/pythonw: line 3: 71574 Segmentation fault: 11 ~/anaconda/python.app/Contents/MacOS/python “$@”
after a call to wx.App(None) which I use to open a file dialog and load a set of data. The file dialog process works fine and appears to close without incident. The segmentation fault comes later in the program when I try to plot some data using pylab.show(). I use the frame.Destroy() command within a function that is used to open and close the file dialog, but it appears that this is persisting and causing the segmentation fault. The code works fine on a Windows machine but fails on my Mac. Please see the attached code fragment that reproduces the problem on my Mac.
I’ve installed python 2.7 through anaconda. In order to run this problem, I’ve added modules wxpython and python.app. I am running the problem from the command line with pythonw.
I suspect that the problem is that I am not using event handlers. If this is the case, I would appreciate some guidance on how to implement an event handler as I am new to python. Otherwise, any advice on the problem would be most appreciated.
Thanks,
Bill
Mac OSX 10.11.6
temp3.py (926 Bytes)