Re: [Matplotlib-users] PY2EXE with Matplotlib and wxPython compiles but won't run???

2010-05-22 Thread David

Thanks for your help Werner. 
When I read that in the wiki I thought the setup.py
needed to be modified and since I had no reference 
to the fix in my setup Ididn't know where to change it. 
I made the change in mlab.py ( thank you again)
and it works fine. 



--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] PY2EXE with Matplotlib and wxPython compiles but won't run???

2010-05-20 Thread Werner F. Bruhin
On 19/05/2010 20:45, David wrote:
 Werner F. Bruhinwerner.bru...@...  writes:



 On 19/05/2010 19:55, David Grudoski wrote:

I'm trying to build an executable using
 PY2EXE; running Python 2.5.2 and wxPython 2.8.10.1 and MatplotLib 0.99.0
I tried using the setup.py from the
 PY2EXE.org Matplotlib page and although everything compiles correctly
 and generates an executable.
When I launch the executable I get the
 following error:

The application requires a version of
 wxPython greater than or equal to 2.8, but a matching version was not
 found.
You currently have these version(s)
 installed.




I can compile an executable with PY2EXE and
 wxPython that works fine, but apparantly somethins in the setup for
 matplotlib is causing a problem.

Has anyone else seen this problem or know of
 a solution?

 You need to patch matplotlib (backend_wx.py), see the bottom of this
 page:http://www.py2exe.org/index.cgi/MatPlotLib
 Werner


 --



 ___
 Matplotlib-users mailing list
 matplotlib-us...@...
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users

  
 Thanks for the reply Werner,
 I decided to try and construct the executable from the site using the
 embedding_in_wx2.py example. Again making sure the patch was in place on the
 backend_wx.py I again ran the python setup.py py2exe and everything compiled.
 Now when I run the exe it generate the following log file errors:
 Traceback (most recent call last):
File embedding_in_wx2.py, line 21, inmodule
File zipextimporter.pyo, line 82, in load_module
File matplotlib\backends\backend_wxagg.pyo, line 20, inmodule
File zipextimporter.pyo, line 82, in load_module
File matplotlib\figure.pyo, line 19, inmodule
File zipextimporter.pyo, line 82, in load_module
File matplotlib\axes.pyo, line 14, inmodule
File zipextimporter.pyo, line 82, in load_module
File matplotlib\collections.pyo, line 21, inmodule
File zipextimporter.pyo, line 82, in load_module
File matplotlib\backend_bases.pyo, line 32, inmodule
File zipextimporter.pyo, line 82, in load_module
File matplotlib\widgets.pyo, line 12, inmodule
File zipextimporter.pyo, line 82, in load_module
File matplotlib\mlab.pyo, line 376, inmodule
 TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'

This is due to using optimize 1 or 2 in py2exe, the work around is to 
fix four lines in mpl.mlab.py as shown on the wiki page mentioned in the 
last thread.

Werner


--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] PY2EXE with Matplotlib and wxPython compiles but won't run???

2010-05-19 Thread David Grudoski
I'm trying to build an executable using PY2EXE; running Python 2.5.2 and wxPython 2.8.10.1 and MatplotLib 0.99.0I tried using the setup.py from the PY2EXE.org Matplotlib page and although everything compiles correctly and generates an executable.When I launch the executable I get the following error:"The application requires a version of wxPython greater than or equal to 2.8, but a matching version was not found."You currently have these version(s) installed.I can compile an executable with PY2EXE and wxPython that works fine, but apparantly somethins in the setup for matplotlib is causing a problem.Has anyone else seen this problem or know of a solution?ThanksDavid(setup.py is attached)

setup.py
Description: Binary data

--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] PY2EXE with Matplotlib and wxPython compiles but won't run???

2010-05-19 Thread Werner F. Bruhin

On 19/05/2010 19:55, David Grudoski wrote:
I'm trying to build an executable using PY2EXE; running Python 2.5.2 
and wxPython 2.8.10.1 and MatplotLib 0.99.0
I tried using the setup.py from the PY2EXE.org Matplotlib page and 
although everything compiles correctly and generates an executable.

When I launch the executable I get the following error:

The application requires a version of wxPython greater than or equal 
to 2.8, but a matching version was not found.

You currently have these version(s) installed.


I can compile an executable with PY2EXE and wxPython that works fine, 
but apparantly somethins in the setup for matplotlib is causing a problem.


Has anyone else seen this problem or know of a solution?

You need to patch matplotlib (backend_wx.py), see the bottom of this page:
http://www.py2exe.org/index.cgi/MatPlotLib

Werner
--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] PY2EXE with Matplotlib and wxPython compiles but won't run???

2010-05-19 Thread David Grudoski
Well I was able to compile the embedding_in_wx5.py example
 ( I'm not sure why or how) but it works.

embedding_in_wx2.py still won't compile but I was able to compile my program 
and get it to run as expected.

I'll leave this as another unresolved mystery of programming...

My thanks to the Werner for being there and helping me work this out.




--

___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users