From: Archana G. <arc...@gm...> - 2007-04-11 19:27:45
|
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, in ? File "matplotlib\axes.pyo", line 16, in ? File "matplotlib\axis.pyo", line 19, in ? File "matplotlib\patches.pyo", line 42, in ? File "matplotlib\patches.pyo", line 79, in Patch File "matplotlib\cbook.pyo", line 352, in dedent AttributeError: 'NoneType' object has no attribute 'splitlines' Could you please tell me what I should do? Thanks a lot, Archana. On 4/9/07, Werner F. Bruhin <wer...@fr...> wrote: > > 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), > > matplotlib.get_py2exe_datafiles(), # if you don't > > use the lib option > You get two copies of matplotlibdata as you kept both of the two above > lines active. You need to use the first one of you use the py2exe > option to create a library.zip which I put into a sub-folder called > 'lib' in the sample setup.py file. > > "C:\\Python24\\Lib\\site-packages\\wx- > 2.6.1.0-py2.4-win32.egg\\wx\\wxmsw26u_vc_enthought.dll", > > ## "wxmsw26u_vc_enthought.dll", > > #### ("prog\\", python4dll) > > ] > > > You are also using an 'egg'. I seem to recall that py2exe does not yet > really support that, but you might want to check on the py2exe list > (e.g. on the gmane mirror of it at > http://dir.gmane.org/gmane.comp.python.py2exe > > Werner > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |