MatPlotLib + Py2exe, backend problems ...

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?

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.

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?

Do I understand all these correctly?

Here was the solution:
Ok I updated MatPlot from version from 0.87.7 to

0.91.2

···

-----Original Message-----

cheers,
Stef

--
John Henry

kc106_2005-matplotlib@...9... wrote:

What I need is a version of 0.91.2 ver of matplotlib
that works with Python 2.3 to see if that works...

I might be misremembering, but I thought 0.91.2 worked with Python 2.3. I don't use 2.3 every day, however. Can you send the errors that are produced when you build or run matplotlib 0.91.2 with Python 2.3? Or are you just referring to the fact that there are no Windows binaries provided for Python 2.3?

Cheers,
Mike

···

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Hi,

kc106_2005-matplotlib@...9... 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