[Matplotlib-users] Matplotlib and py2exe

2009-08-26 Thread sandeep . prasad
Hello Matplotlib Users and Developers, I found some examples of setup.py over the internet to be used for matplotlib with py2exe , i have attached a modified sample that i am using for my program . Additionally i get the following error when i run the exe. ==

Re: [Matplotlib-users] matplotlib and py2exe

2007-05-28 Thread rfv-370
I did reinstall my python with Python 2.5.1, Matplotlib 0.9, wxpython 2.8.4 and then it now works. Thanx Best Regards Robert rfv-370 wrote: > > I run on WinXP with > matplotlib 0.9.0 > python 2.4.3 (enthought edition) > wx.VERSION_STRING = 2.6.3.3 > > > rfv-370 wrote: >> >> Hello werner, >>

Re: [Matplotlib-users] matplotlib and py2exe

2007-05-28 Thread Werner F. Bruhin
Hi Robert, If your app is wxPython based then I would use the attached as a test case and not the simple_plot one. Then if you don't use wxPython Unicode 2.6.x then you need to follow Andrea's work around. matplotlib/backends/_wxagg.pyd to matplotlib/backends/_wxagg not used.pyd Hope th

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-12 Thread Archana Ganesan
Hi Werner, I am using matplotlib version 0.90.0 for python 2.4. Thank you, Archana. On 4/12/07, Grant Edwards <[EMAIL PROTECTED]> wrote: On 2007-04-01, Werner F. Bruhin <[EMAIL PROTECTED]> wrote: > Hi Archana, > > Sometimes py2exe can't figure out what needs to be included. In these > cases

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-12 Thread Grant Edwards
On 2007-04-01, Werner F. Bruhin <[EMAIL PROTECTED]> wrote: > Hi Archana, > > Sometimes py2exe can't figure out what needs to be included. In these > cases one creates entries in the packages section to force the inclusion > of one or multiple packages. > > Archana Ganesan wrote: >> Hi all, >> ..

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-11 Thread Archana Ganesan
Hi Werner, I tried what you suggested, using the setup file you had provided for simple_plot.py. But I get the following error, what should I do abt this? Traceback (most recent call last): File "simple_plot.py", line 1, in ? File "pylab.pyo", line 1, in ? File "matplotlib\pylab.pyo", line 203

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-09 Thread Werner F. Bruhin
Hi Emmanuel, Maybe your problem has to do with your "enthought" build of wxPython. I use standard builds from wxPython site. Emmanuel wrote: > when putting the full path of wxmsw26u_vc_enthought.dll in setup.py > like this > > data_files = [("lib\\matplotlibdata", mpfiles), >

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-08 Thread Emmanuel
when putting the full path of wxmsw26u_vc_enthought.dll in setup.py like this data_files = [("lib\\matplotlibdata", mpfiles), matplotlib.get_py2exe_datafiles(), # if you don't use the lib option "C:\\Python24\\Lib\\site-packages\\wx- 2.6.1.0-py2.4-win32.egg\\wx\\wxmsw26u_vc_en

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-08 Thread Emmanuel
Can I post also in that thread or should I open a new one? I'm also trying the first Werner F. Bruhin example. I saved the setup.py and the example in embedding_in_wx4.py then I run python.exe setup.py py2exe bdist When looking for dll, it fails claiming: Error: wxmsw26u_vc_enthought.dll : No

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-05 Thread Werner F. Bruhin
Hi Archana, Archana Ganesan wrote: > ... > trial.py is as follows. > > from pylab import * > > x = xrange(10) > plot(x) > savefig("trial.png") > The setup.py you are using will not work, it is meant for a matplotlib embedded in wx, and even for that some lines are commented out. Can you try the

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-04 Thread Archana Ganesan
Hii, I get the following error. Traceback (most recent call last): File "trial.py", line 1, in ? File "pylab.pyo", line 1, in ? File "matplotlib\pylab.pyo", line 203, in ? File "matplotlib\axes.pyo", line 16, in ? File "matplotlib\axis.pyo", line 19, in ? File "matplotlib\patches.pyo", line

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-04 Thread Werner F. Bruhin
Hi Giorgio, Had a quick look at pylab based scripts and got an error on backend_tkagg when py2exe it. It looks like one needs to force the backend to be included, I used tkagg but you would have to replace that with wxagg for your script. Attached is a setup.py and from the examples the fil

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-04 Thread Werner F. Bruhin
Hi Giorgio, Giorgio Luciano wrote: > Hello Werner, > and thank for the reply I've tried to recompile everything. The file > you sent in the mailing list give me the problem of wxmsw26uh_vc.dll > (and also dll missing while compiling) For the wxmsw26uh_vc.dll you need to rename the .pyd file as m

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-04 Thread Werner F. Bruhin
Hi Daniel, Daniel Stalder wrote: > Hello > > I saw your thread and I have a related problem. > I use matplotlib (0.90.0.win32-py2.5) with wxPython > (2.8-win32-unicode-2.8.3.0-py25). > I use matplotlib with WXAgg and got the following error msg: > "This application has failed to start because wxms

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-03 Thread Daniel Stalder
ith previous versions of both libraries. Thanks for any help Daniel -Original Message- From: Werner F. Bruhin [mailto:[EMAIL PROTECTED] Sent: Wednesday, 4 April 2007 2:58 a.m. To: [EMAIL PROTECTED]; matplot Subject: Re: [Matplotlib-users] matplotlib and py2exe Hi Giorgio, Giorgio Luciano wro

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-03 Thread Werner F. Bruhin
Hi Giorgio, Giorgio Luciano wrote: > Hello Werner, > here is the file I try to compile. > It gave an error of missing DLL when i try to launch :( > no Idea why, since with you example everything works > (I'm using maplotlib 0.87.7) I assume the DLL not found is "wxmsw26uh_vc.dll" at least I believ

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-03 Thread Giorgio Luciano
Hello Werner, here is the file I try to compile. It gave an error of missing DLL when i try to launch :( no Idea why, since with you example everything works (I'm using maplotlib 0.87.7) Giorgio import pylab as pyl from sci

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-03 Thread Giorgio Luciano
I tried to compile the file and it seems to work (send by Werner). I'm also interested in the problem since I cannot succeed in compiling too with matplotlib (already followed the instruction found on py2exe) Hope to see how it develop and happy to know if anyone succeed in doing it Giorgio >

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-02 Thread Werner F. Bruhin
Hi Archana, Archana Ganesan wrote: > Hi, > > I tried following the instructions at the py2exe site and I have also > uncommeneted and made it include the matplotlib.numerix package. Still > it doesnt seem to work. Is there any other way of compiling it into an > executable? Did you try to compi

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-01 Thread Archana Ganesan
Hi, I tried following the instructions at the py2exe site and I have also uncommeneted and made it include the matplotlib.numerix package. Still it doesnt seem to work. Is there any other way of compiling it into an executable? Thanks, Archana. On 4/1/07, Werner F. Bruhin <[EMAIL PROTECTED]> wr

Re: [Matplotlib-users] matplotlib and py2exe

2007-04-01 Thread Werner F. Bruhin
Hi Archana, Sometimes py2exe can't figure out what needs to be included. In these cases one creates entries in the packages section to force the inclusion of one or multiple packages. Archana Ganesan wrote: > Hi all, > ... > > options = {"py2exe": {"compressed": 1, > "opti

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Robert Kern
Archana Ganesan wrote: > Hi all, > > The exception I get is > Traceback (most recent call last): > File "App1.py", line 6, in ? > File "Frame1.pyc", line 9, in ? > File "Simulation.pyc", line 16, in ? > File "pylab.pyc", line 1, in ? > File "matplotlib\pylab.pyc", line 199, in ? > File

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Archana Ganesan
import numpy and import matplotlib does work in the interactive python shell. thanks, Archana. On 3/31/07, Tommy Grav <[EMAIL PROTECTED]> wrote: I do not immediately see why the error occurs. Hopefully someone else can add their input. Off the cuff it seems like matplotlib has not been instal

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Tommy Grav
I do not immediately see why the error occurs. Hopefully someone else can add their input. Off the cuff it seems like matplotlib has not been installed properly. Can you confirm that import numpy and import matplotlib works in the interactive python shell. Cheers Tommy [EMAIL PROTECTED] /User

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Archana Ganesan
Hi all, The exception I get is Traceback (most recent call last): File "App1.py", line 6, in ? File "Frame1.pyc", line 9, in ? File "Simulation.pyc", line 16, in ? File "pylab.pyc", line 1, in ? File "matplotlib\pylab.pyc", line 199, in ? File "matplotlib\cm.pyc", line 5, in ? File "matplo

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Tommy Grav
It is hard to guess what exactly your problem is as you do not provide a code example or the traceback call of your exception. I would venture that you are trying to create a num_array without having Numerix, numpy or numarray imported or installed on your machine. Some more information ab

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Archana Ganesan
Hi all, I have a python application that uses matplotlib.I am trying to compile it into an executable using py2exe. I am encountering "No module named num_array problem". I do not know how to resolve this. I notice that " matplotlib.numerix" is in the included package. Did you encounter this prob

Re: [Matplotlib-users] matplotlib and py2exe

2007-03-31 Thread Werner F. Bruhin
Hi Archana, Archana Ganesan wrote: Hi all, I have a python application that uses matplotlib. I want to compile it into an executable. I tried using py2exe but it returned some error w.rt matplotlib. Cpuld anyone please help me with this? Is there some other way to get it done? I am using ma

[Matplotlib-users] matplotlib and py2exe

2007-03-30 Thread Archana Ganesan
Hi all, I have a python application that uses matplotlib. I want to compile it into an executable. I tried using py2exe but it returned some error w.rtmatplotlib. Cpuld anyone please help me with this? Is there some other way to get it done? Thanks, Archana --