Please post a minimal script that fails and details about your setup. I 
do not have any problem with mpl 1.0.1 and py2exe.

Christoph

On 1/6/2011 4:48 PM, zb wrote:
> Hi
>
> I decided to give a quick try to 1.0.1 and py2exe and see what happens. When 
> I try to start the compiled exe program I get this error log:
>
> Traceback (most recent call last):
>    File "artisan.pyw", line 122, in<module>
>    File "zipextimporter.pyo", line 82, in load_module
>    File "matplotlib\figure.pyo", line 18, in<module>
>    File "zipextimporter.pyo", line 82, in load_module
>    File "matplotlib\axes.pyo", line 332, in<module>
>    File "matplotlib\axes.pyo", line 2014, in Axes
>    File "matplotlib\docstring.pyo", line 103, in dedent_interpd
>    File "matplotlib\docstring.pyo", line 36, in __call__
> KeyError: 'Line2D'
>
>
> It seems as if I did not include something important in the setup.py.
>
>
> How could I modify the setup.py file to make it work?
>
>
> Thanks for any suggestions.
>
>
> #########  setup.py  ########################################
>
>
> from distutils.core import setup
> import matplotlib as mpl
> import py2exe
>
> INCLUDES = [
>              "sip",
>              "serial"
>              ]
>
> EXCLUDES = ['_tkagg',
>              '_ps',
>              '_fltkagg',
>              'Tkinter',
>              'Tkconstants',
>              '_cairo',
>              '_gtk',
>              'gtkcairo',
>              'pydoc',
>              'sqlite3',
>              'bsddb',
>              'curses',
>              'tcl',
>              '_wxagg',
>              '_gtagg',
>              '_cocoaagg',
>              '_wx']
>
> setup(
>      windows=[{"script" : "E:\\Artisan\\artisan\\trunk\\artisan.pyw"}],
>      data_files = mpl.get_py2exe_datafiles(),
>      zipfile = None,
>      options={"py2exe" :{
>                          "packages": ['matplotlib','pytz'],
>                          "compressed": True,
>                          "unbuffered": True,
>                          "optimize":1,
>                          "bundle_files": 1,
>                          "dll_excludes":[
>                              'tcl84.dll','tk84.dll','libgdk-win32-2.0-0.dll',
>                              
> 'libgdk_pixbuf-2.0-0.dll','libgobject-2.0-0.dll'],
>                          "includes" : INCLUDES,
>                          "excludes" : EXCLUDES}
>               }
>      )
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Learn how Oracle Real Application Clusters (RAC) One Node allows customers
> to consolidate database storage, standardize their database environment, and,
> should the need arise, upgrade to a full multi-node Oracle RAC database
> without downtime or disruption
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to