From: Charles H. <c....@se...> - 2006-10-12 11:51:07
|
Hello, =20 I've a program using Numpy and I would like to compile it with Py2exe but I've some problems. When I try to compile my program, some modules generated by numpy are not loaded. I've already asked to the py2exe community if they have a solution for that and the answer was that it was possible to compile numpy modules with py2exe but I should ask to the Numpy community :-) =20 So my question is, is there something special to do in order to compile a program using numpy module? =20 This is the setup.py file that I use =20 =20 from distutils.core import setup import py2exe, sys =20 sys.path.append("tools") sys.path.append("report") sys.path.append("spirent") sys.path.append("numpydir") =20 setup( console =3D ['checkfile.py'], ) =20 =20 If I use this setup.py, lots of numpy file cannot be loaded. I get the following message =20 =20 copying c:\python24\lib\site-packages\py2exe\run.exe -> Y:\svn\copy\dist\checkfile.exe The following modules appear to be missing ['DateTime', 'FFT', 'Ft.Lib', 'Ft.Lib.DumpBgTuple', 'Ft.__init__', 'LinearAlgebra', 'MA', 'MLab', 'Matrix', 'Numeric', 'Pyrex', 'Pyrex.Compiler', 'XPathParserc' , '_curses', 'backends.draw_if_interactive', 'backends.new_figure_manager', 'backends.pylab_setup', 'backends.show', 'core.abs', 'core.max', 'core.min', 'core.r ound', 'ctypes', 'ext.IsDOMString', 'ext.SplitQName', 'fcompiler.FCompiler', 'fcompiler.show_fcompilers', 'lib.add_newdoc', 'mlab.amax', 'mlab.amin', 'numarray' , 'numarray.convolve', 'numarray.fft', 'numarray.ieeespecial', 'numarray.linear_algebra', 'numarray.linear_algebra.mlab', 'numarray.ma', 'numarray.numeric', 'nu merix.ArrayType', 'numerix.Complex', 'numerix.Complex32', 'numerix.Complex64', 'numerix.Float', 'numerix.Float32', 'numerix.Float64', 'numerix.Int', 'numerix.In t16', 'numerix.Int32', 'numerix.Int8', 'numerix.NewAxis', 'numerix.UInt16', 'numerix.UInt32', 'numerix.UInt8', 'numerix.absolute', 'numerix.add', 'numerix.all', 'numerix.allclose', 'numerix.alltrue', 'numerix.any', 'numerix.arange', 'numerix.arccos', 'numerix.arccosh', 'numerix.arcsin', 'numerix.arcsinh', 'numerix.arct an', 'numerix.arctan2', 'numerix.arctanh', 'numerix.argmax', 'numerix.argmin', 'numerix.argsort', 'numerix.around', 'numerix.array', 'numerix.arrayrange', 'nume rix.asarray', 'numerix.asum', 'numerix.bitwise_and', 'numerix.bitwise_or', 'numerix.bitwise_xor', 'numerix.ceil', 'numerix.choose', 'numerix.clip', 'numerix.com press', 'numerix.concatenate', 'numerix.conjugate', 'numerix.convolve', 'numerix.cos', 'numerix.cosh', 'numerix.cross_correlate', 'numerix.cumproduct', 'numerix =2Ecumsum', 'numerix.diagonal', 'numerix.divide', 'numerix.dot', 'numerix.equal', 'numerix.exp', 'numerix.fabs', 'numerix.fft.fft', 'numerix.fft.inverse_fft', 'nu merix.floor', 'numerix.fmod', 'numerix.fromfunction', 'numerix.fromstring', 'numerix.greater', 'numerix.greater_equal', 'numerix.hypot', 'numerix.identity', 'nu merix.indices', 'numerix.innerproduct', 'numerix.iscontiguous', 'numerix.isnan', 'numerix.less', 'numerix.less_equal', 'numerix.log', 'numerix.log10', 'numerix. logical_and', 'numerix.logical_not', 'numerix.logical_or', 'numerix.logical_xor', 'numerix.matrixmultiply', 'numerix.maximum', 'numerix.minimum', 'numerix.mlab. amax', 'numerix.mlab.amin', 'numerix.mlab.cov', 'numerix.mlab.diff', 'numerix.mlab.hanning', 'numerix.mlab.rand', 'numerix.mlab.std', 'numerix.mlab.svd', 'numer ix.multiply', 'numerix.negative', 'numerix.newaxis', 'numerix.nonzero', 'numerix.not_equal', 'numerix.nx', 'numerix.ones', 'numerix.outerproduct', 'numerix.pi', 'numerix.power', 'numerix.product', 'numerix.put', 'numerix.putmask', 'numerix.rank', 'numerix.ravel', 'numerix.repeat', 'numerix.reshape', 'numerix.resize', ' numerix.searchsorted', 'numerix.shape', 'numerix.sin', 'numerix.sinh', 'numerix.size', 'numerix.sometrue', 'numerix.sort', 'numerix.sqrt', 'numerix.subtract', ' numerix.swapaxes', 'numerix.take', 'numerix.tan', 'numerix.tanh', 'numerix.trace', 'numerix.transpose', 'numerix.typecode', 'numerix.typecodes', 'numerix.where' , 'numerix.which', 'numerix.zeros', 'pre', 'serial', 'setuptools', 'setuptools.command', 'setuptools.command.egg_info', 'setuptools.command.install', 'testing.S cipyTest', 'win32api', 'win32con', 'win32pdh', 'xml.xslt', 'xml.xslt.ParsedPattern', 'numpy.Complex', 'numpy.Complex32', 'numpy.Complex64', 'numpy.Float', 'nump y.Float32', 'numpy.Float64', 'numpy.Int', 'numpy.Int16', 'numpy.Int32', 'numpy.Int8', 'numpy.UInt16', 'numpy.UInt32', 'numpy.UInt8', 'numpy.arccos', 'numpy.arcc osh', 'numpy.arcsin', 'numpy.arcsinh', 'numpy.arctan', 'numpy.arctanh', 'numpy.bitwise_and', 'numpy.bitwise_or', 'numpy.bitwise_xor', 'numpy.ceil', 'numpy.conju gate', 'numpy.core.add', 'numpy.core.bitwise_and', 'numpy.core.bitwise_or', 'numpy.core.bitwise_xor', 'numpy.core.cdouble', 'numpy.core.complexfloating', 'numpy =2Ecore.conjugate', 'numpy.core.csingle', 'numpy.core.divide', 'numpy.core.double', 'numpy.core.equal', 'numpy.core.float64', 'numpy.core.greater', 'numpy.core.gr eater_equal', 'numpy.core.inexact', 'numpy.core.intc', 'numpy.core.invert', 'numpy.core.left_shift', 'numpy.core.less', 'numpy.core.less_equal', 'numpy.core.max imum', 'numpy.core.not_equal', 'numpy.core.power', 'numpy.core.remainder', 'numpy.core.right_shift', 'numpy.core.sin', 'numpy.core.single', 'numpy.core.sqrt', ' numpy.core.subtract', 'numpy.cosh', 'numpy.dft.old', 'numpy.divide', 'numpy.e', 'numpy.fabs', 'numpy.floor', 'numpy.floor_divide', 'numpy.fmod', 'numpy.greater' , 'numpy.hypot', 'numpy.invert', 'numpy.left_shift', 'numpy.less', 'numpy.log', 'numpy.log10', 'numpy.logical_and', 'numpy.logical_not', 'numpy.logical_or', 'nu mpy.logical_xor', 'numpy.maximum', 'numpy.minimum', 'numpy.negative', 'numpy.not_equal', 'numpy.power', 'numpy.random.rand', 'numpy.random.randn', 'numpy.remain der', 'numpy.right_shift', 'numpy.sinh', 'numpy.tan', 'numpy.tanh', 'numpy.true_divide'] =20 Do you know what to do to solve this problem? =20 Thank you very much for your answers. =20 =20 This e-mail communication contains information that is confidential and m= ay also be privileged. It is intended for the exclusive use of the addres= sees. If you are not the person or organization to whom it is addressed, = you must not copy, distribute or take any action in reliance upon it. If = you received this communication in error, please notify Septentrio nv imm= ediately [ telephone +32 [0] 16 300800 ]. Septentrio nv will not accept l= iability for contractual commitments made by individuals employed by this= company outside the scope of our business. |