Thanks, must have skipped over that one - I added the statements and it has
fixed it :) however now there is an issue elsewhere. I get the message

  File "matplotlib\backends\__init__.pyo", line 25, in pylab_setup
ImportError: No module named backend_tkagg

and the traceback call this

from pylab import *

I have _tkagg as an exclude

looks like somebody else had this problem but nobody solved it
http://mail.scipy.org/pipermail/scipy-user/2005-July/004777.html

any one know how to solve this?

I tried to include matplotlib.backends.backend_tkagg, then this popped up
with a tkinter import error.

Regards

Marco






New2Python wrote:
> 
> Hi All,
> 
> I hope someone can help, I have run into a few problems when trying to
> execute an exe file created when I use py2exe with matplotlib.
> I have python2.5, matplotlib v0.99.1 and py2exe from GUI2Exe v0.5.0
> optimisation is python -OO
> the files compile correctly however when I execute the exe I get an error
> as shown below
> this is an extract
> 
>   File "matplotlib\mlab.pyo", line 380, in <module>
> TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'
> 
> the traceback points to this line of my code
> 
> from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg
> 
> does anyone know how to solve this, i have seen references made to numpy
> but not matplotlib
> 
> Regards
> 
> Marco
> 
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/py2exe-and-matplotlib-errors-when-executing-exe-tp28589875p28595304.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------

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

Reply via email to