OK, I'm on my third day of fighting with matplotlib.  I'm
finally able to get py2exe to produce a "dist" directory, but
it _still_ doesn't work:

  Traceback (most recent call last):
    File "surfacedit.py", line 3, in ?
    File "wxmpl.pyc", line 23, in ?
    File "matplotlib\__init__.pyc", line 715, in ?
    File "matplotlib\__init__.pyc", line 273, in wrapper
    File "matplotlib\__init__.pyc", line 360, in _get_data_path
  RuntimeError: Could not find the matplotlib data files

Here's the setup file I'm using:


from distutils.core import setup
import py2exe
import matplotlib

setup(windows=[{"script":"surfacedit.py"}],
      data_files=[('',['../win32/gnuplot/bin/wgnuplot.exe',
                       '../win32/gnuplot/bin/pgnuplot.exe',
                       '../win32/gnuplot/bin/wgnuplot_pipes.exe']
                  ) + matplotlib.get_py2exe_datafiles()],
      options={'py2exe': {'packages': ['matplotlib.numerix','pytz'],
                          'dll_excludes': ['tcl84.dll', 'tk84.dll', 
'wxmsw26uh_vc.dll'],
                          'excludes': ["Tkconstants", "Tkinter", "tcl", 
'_gtkagg', '_tkagg']}}
      )

Is there any current, correct, documentation on how to bundle a
matplotlib app?      

-- 
Grant Edwards                   grante             Yow!  My EARS are GONE!!
                                  at               
                               visi.com            


-------------------------------------------------------------------------
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to