From: Tim B. <ti...@tb...> - 2005-10-11 04:10:51
|
Hi, I am attempting to freeze a script using wxmpl which is a wrapper for matplotlib and wxpython. I am not having any luck at all. Google has revealed some matplotlib freezing secrets - but none of these seem to help. py2exe reports missing ['cephes', 'numerix.ArrayType', 'numerix.Complex', 'numerix.Float', 'numerix.Float32', 'numerix.Float64', 'numerix.Int', 'numerix.Int16', 'numerix.Int32', 'numerix.Matrix', 'numerix.UInt8', 'numerix.absolute', 'numerix.add', 'numerix.alltrue', 'numerix.arange', 'numerix.arctan2', 'numerix.argmin', 'numerix.argsort', 'numerix.array', 'numerix.asarray', 'numerix.asum', 'numerix.ceil', 'numerix.clip', 'numerix.compress', 'numerix.concatenate', 'numerix.conjugate', 'numerix.convolve', 'numerix.cos', 'numerix.cumsum', 'numerix.diagonal', 'numerix.divide', 'numerix.dot', 'numerix.equal', 'numerix.exp', 'numerix.fft.fft', 'numerix.fft.inverse_fft', 'numerix.floor', 'numerix.greater', 'numerix.indices', 'numerix.less', 'numerix.log', 'numerix.log10', 'numerix.logical_and', 'numerix.matrixmultiply', 'numerix.maximum', 'numerix.minimum', 'numerix.mlab.amax', 'numerix.mlab.amin', 'numerix.mlab.cov', 'numerix.mlab.diff', 'numerix.mlab.flipud', 'numerix.mlab.hanning', 'numerix.mlab.rand', 'numerix.mlab.std', 'numerix.mlab.svd', 'numerix.multiply', 'numerix.nonzero', 'numerix.nx', 'numerix.ones', 'numerix.pi', 'numerix.power', 'numerix.put', 'numerix.ravel', 'numerix.repeat', 'numerix.reshape', 'numerix.resize', 'numerix.searchsorted', 'numerix.shape', 'numerix.sin', 'numerix.size', 'numerix.sometrue', 'numerix.sort', 'numerix.sqrt', 'numerix.take', 'numerix.tan', 'numerix.transpose', 'numerix.where', 'numerix.which', 'numerix.zeros', 'matplotlib.numerix.absolute', 'matplotlib.numerix.equal', 'matplotlib.numerix.sqrt', 'numarray.Complex', 'numarray.Complex32', 'numarray.Complex64', 'numarray.Float', 'numarray.Float32', 'numarray.Float64', 'numarray.Int', 'numarray.Int16', 'numarray.Int32', 'numarray.Int8', 'numarray.NumArray', 'numarray.UInt16', 'numarray.UInt32', 'numarray.UInt8', 'numarray._dotblas', 'numarray.asarray', 'numarray.dot', 'numarray.fromlist', 'numarray.shape', 'numarray.typecode', 'numarray.zeros'] I would feel happier if py2exe complained only about numerix OR numarray - but it complains about both. So I know that I dont have either?. I have tried every matplotlib freezing trick google could find so far.... It doesnt help when google reveals comments about it being ok if py2exe complains about missing items like the list above. Just what is safe to be missing? The built exe runs fine - right up intil the graph is to be drawn .... Clearly some critical component is being left out... Anyone have any success stories with wxmpl and py2exe? I can post files and py2exe output if there are any guru's out there thanks for any suggestions -- Tim Burgess IT Consultant RedHat Certified Engineer TBITC Pty Ltd Professional Computer Support for Business timb at tbitc.com Mobile 0422 942 972 Office 85 662 016 http://www.tbitc.com |
From: Werner F. B. <wer...@fr...> - 2005-10-11 10:41:17
|
Hi Tim, Tim Burgess wrote: > Hi, > I am attempting to freeze a script using wxmpl which is a wrapper for > matplotlib and wxpython. I use matplotlib and wxPython but not wxmpl. My setup.py contains the following stuff relating to matplotlib. mpldata = glob.glob(r'C:\Python24\share\matplotlib\*') mpldata.append(r'C:\Python24\share\matplotlib\.matplotlibrc') # above should be clear # options for py2exe options = {"py2exe": {"compressed": 1, "optimize": 2, "packages": ["encodings", "kinterbasdb", "pytz", "matplotlib.numerix"], "excludes": ["MySQLdb"]} } # in above both pytz and matplotlib.numerix are relevant, pytz is for # the timezone stuff. data_files = [("lib\\matplotlibdata", mpldata), ("prog\\", python4dll) ] I think on the matplotlib there are some sample py2exe setup scripts. Hope this helps Werner > > I am not having any luck at all. > > Google has revealed some matplotlib freezing secrets - but none of these > seem to help. > > py2exe reports missing > ['cephes', 'numerix.ArrayType', 'numerix.Complex', 'numerix.Float', > 'numerix.Float32', 'numerix.Float64', 'numerix.Int', 'numerix.Int16', > 'numerix.Int32', 'numerix.Matrix', 'numerix.UInt8', 'numerix.absolute', > 'numerix.add', 'numerix.alltrue', 'numerix.arange', 'numerix.arctan2', > 'numerix.argmin', 'numerix.argsort', 'numerix.array', 'numerix.asarray', > 'numerix.asum', 'numerix.ceil', 'numerix.clip', 'numerix.compress', > 'numerix.concatenate', 'numerix.conjugate', 'numerix.convolve', > 'numerix.cos', 'numerix.cumsum', 'numerix.diagonal', 'numerix.divide', > 'numerix.dot', 'numerix.equal', 'numerix.exp', 'numerix.fft.fft', > 'numerix.fft.inverse_fft', 'numerix.floor', 'numerix.greater', > 'numerix.indices', 'numerix.less', 'numerix.log', 'numerix.log10', > 'numerix.logical_and', 'numerix.matrixmultiply', 'numerix.maximum', > 'numerix.minimum', 'numerix.mlab.amax', 'numerix.mlab.amin', > 'numerix.mlab.cov', 'numerix.mlab.diff', 'numerix.mlab.flipud', > 'numerix.mlab.hanning', 'numerix.mlab.rand', 'numerix.mlab.std', > 'numerix.mlab.svd', 'numerix.multiply', 'numerix.nonzero', 'numerix.nx', > 'numerix.ones', 'numerix.pi', 'numerix.power', 'numerix.put', > 'numerix.ravel', 'numerix.repeat', 'numerix.reshape', 'numerix.resize', > 'numerix.searchsorted', 'numerix.shape', 'numerix.sin', 'numerix.size', > 'numerix.sometrue', 'numerix.sort', 'numerix.sqrt', 'numerix.take', > 'numerix.tan', 'numerix.transpose', 'numerix.where', 'numerix.which', > 'numerix.zeros', 'matplotlib.numerix.absolute', > 'matplotlib.numerix.equal', 'matplotlib.numerix.sqrt', > 'numarray.Complex', 'numarray.Complex32', 'numarray.Complex64', > 'numarray.Float', 'numarray.Float32', 'numarray.Float64', > 'numarray.Int', 'numarray.Int16', 'numarray.Int32', 'numarray.Int8', > 'numarray.NumArray', 'numarray.UInt16', 'numarray.UInt32', > 'numarray.UInt8', 'numarray._dotblas', 'numarray.asarray', > 'numarray.dot', 'numarray.fromlist', 'numarray.shape', > 'numarray.typecode', 'numarray.zeros'] > > I would feel happier if py2exe complained only about numerix OR numarray > - but it complains about both. So I know that I dont have either?. I > have tried every matplotlib freezing trick google could find so far.... > > It doesnt help when google reveals comments about it being ok if py2exe > complains about missing items like the list above. Just what is safe to > be missing? > > The built exe runs fine - right up intil the graph is to be drawn .... > Clearly some critical component is being left out... > > Anyone have any success stories with wxmpl and py2exe? > > I can post files and py2exe output if there are any guru's out there > > thanks for any suggestions > |