From: Werner F. B. <wer...@fr...> - 2008-02-20 09:45:26
|
Hi, kc1...@ya... wrote: > So, do I understand this correctly: > > In order to get rid of the Tkinter problem when > building a matplotlib application using py2exe, I need > 0.91.2 ver of matplotlib and use the setup.cfg file to > select the backend I want (wxpython in my case). Then > run py2exe to build the ap. Correct? > I haven't tried it with 0.91.x but with 0.90 I used a matplotlib exe installer for Windows and I can create a distribution of my application with py2exe which does NOT contain tkinter. > But then, as I posted earlier, this create a new > problem for me in that py2exe says it can't find > wxmsw26uh_vc.dll - even though the file exists. > That dll should no longer be needed by matplotlib. Obviously if you use a wxPython build you will get the it, i.e. I am on 2.8 so I have a bunch of "wxmsw26uh???.dll" files in my dist folder. > What I need is a version of 0.91.2 ver of matplotlib > that works with Python 2.3 to see if that works, or I > guess I would include Tkinter with my exe? > There was another message from Stef which might be the explanation, the default matplotlibrc file is defining TKAgg as the default backend, so change it to the following: backend : WXAgg numerix : numpy # numpy, Numeric or numarray Werner |