Hi I am trying to create an executable for a wxpython app that plots
some data using matplotlib , pyplot.figure().

I have tried following the directions for including the matplotlib
data files detailed here(http://www.py2exe.org/index.cgi/MatPlotLib)
but still get an error indicating that the data files are not bundled.


RuntimeError: Could not find matplotlib data files



#######################
Here is my setup_win.py
#######################

from distutils.core import setup
import py2exe
import matplotlib


from distutils.filelist import findall
import os

name = "CuppaTmGui.py"
DATA_FILES = matplotlib.get_py2exe_datafiles()
#DATA_FILES.append(r"C:\Python27_32\tcl\tcl8.5\init.tcl")
setup(console=['CuppaTmGui.py'], options = { "py2exe" : {"includes" :
["cuppa_tm","matplotlib.backends.backend_tkagg","numpy","pylab"],"skip_archive":0
, "bundle_files" : 1 }}, data_files = DATA_FILES)



I am wondering what I am doing wrong while packaging the executable.

I  also tried to run with "bundle_files : 2"  option or "bundle_files"
: 3  , but that results in an exe that immediately crashes and
triggers a miscrosoft error report.
I am building my exe using 32 bit python on a 64 bit windows machine.


Thanks for your help

Hari

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to