Re: [Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-19 Thread Werner F. Bruhin
On 19/05/2010 01:17, New2Python wrote:
 Thanks, I changed the matplotlibrc file to use the WXAgg backend and then had
 to copy the file into the mpl.get_configdir() and in my local working dir
 for it to work.

 The file runs however a python error screen pops up and then closes without
 giving me the chance to read it, anybody know how to stop the window from
 closing so quickly

You have probably set wx.App(redirect=True), change to False and 
then you should see the exception in your IDE.

Werner


--

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


Re: [Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-18 Thread New2Python

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


Re: [Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-18 Thread Michael Droettboom
It should only try to import that backend when configured to do so.  You 
may need to change your matplotlibrc to point to your desired backend.

Mike

New2Python wrote:
 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




 

   

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


--

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


Re: [Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-18 Thread New2Python

Thanks, I changed the matplotlibrc file to use the WXAgg backend and then had
to copy the file into the mpl.get_configdir() and in my local working dir
for it to work.

The file runs however a python error screen pops up and then closes without
giving me the chance to read it, anybody know how to stop the window from
closing so quickly

Thanks

Marco



Michael Droettboom-3 wrote:
 
 It should only try to import that backend when configured to do so.  You 
 may need to change your matplotlibrc to point to your desired backend.
 
 Mike
 
 New2Python wrote:
 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




 

   
 
 -- 
 Michael Droettboom
 Science Software Branch
 Operations and Engineering Division
 Space Telescope Science Institute
 Operated by AURA for NASA
 
 
 --
 
 ___
 Matplotlib-users mailing list
 Matplotlib-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 
 

-- 
View this message in context: 
http://old.nabble.com/py2exe-and-matplotlib-errors-when-executing-exe-tp28589875p28602527.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


[Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-17 Thread New2Python

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-tp28589875p28589875.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


Re: [Matplotlib-users] py2exe and matplotlib errors when executing exe

2010-05-17 Thread Christoph Gohlke
This is probably the docstring problem mentioned at the bottom of 
http://www.py2exe.org/index.cgi/MatPlotLib.

--
Christoph

On 5/17/2010 4:07 PM, 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, inmodule
 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


--

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