Hello, I am getting segmentation faults when I try to freeze a script which uses the TkAgg backend, on python2.5.2, gcc 4.2.3 (ubuntu 8.04, hardy heron). A trial script is:
import matplotlib matplotlib.use("TkAgg") # unless you have it in matplotlibrc import matplotlib.backends.backend_tkagg # explicit for freezer from matplotlib.pylab import plot, show plot(range(10), range(10), "+") show() Is anyone already familiar with the problem? Things seem to work with the GTkAgg backend, but sadly many years ago I decided to use Tk as I thought it'd be easier to distribute. In order to reproduce the problem with bbfreeze you should just need this freezing script: from bbfreeze import Freezer f = Freezer("dist", includes=("matplotlib", "matplotlib.numerix.fft", "matplotlib.numerix.linear_algebra", "matplotlib.numerix.ma", "matplotlib.numerix.mlab", "matplotlib.numerix.random_array")) f.addScript("t.py") f() For reproducing the problem with cx-freeze you need to (a) install it by patching the cx-freeze setup.py [so that (2, 5) -> (2, 6)] and (b) add an import for numpy.linalg.lapack_lite and edit your numpy.__init__ to remove numpy.test. Thanks for any advice, Jon --- PS: gdb says Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7c806b0 (LWP 8158)] 0xb6e145a0 in ?? () from /home/wright/testcx/build/exe.linux-i686-2.5/matplotlib.backends._tkagg.so (gdb) bt #0 0xb6e145a0 in ?? () from /home/wright/testcx/build/exe.linux-i686-2.5/matplotlib.backends._tkagg.so #1 0xb6badb6e in TclInvokeStringCommand () from /usr/lib/libtcl8.4.so.0 #2 0xb6baee56 in TclEvalObjvInternal () from /usr/lib/libtcl8.4.so.0 #3 0xb6baf0db in Tcl_EvalObjv () from /usr/lib/libtcl8.4.so.0 #4 0xb6ef96c6 in ?? () from /home/wright/testcx/build/exe.linux-i686-2.5/_tkinter.so #5 0x0827a0c8 in ?? () #6 0x00000005 in ?? () ... ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users