From: Massa, H. A. <ch...@gh...> - 2016-03-07 13:41:26
|
Hello Girish, Traceback (most recent call last): > File "Moment_Final.py", line 5, in <module> > File "matplotlib\__init__.pyc", line 122, in <module> > File "matplotlib\cbook.pyc", line 33, in <module> > File "numpy\__init__.pyc", line 180, in <module> > File "numpy\add_newdocs.pyc", line 13, in <module> > File "numpy\lib\__init__.pyc", line 8, in <module> > File "numpy\lib\type_check.pyc", line 11, in <module> > File "numpy\core\__init__.pyc", line 14, in <module> > File "numpy\core\multiarray.pyc", line 12, in <module> > File "numpy\core\multiarray.pyc", line 10, in __loadImportError: DLL load failed: The specified module could not be found. > > multiarray.py tries to import a file in line 10, most likely a .pyd That .pyd is for some reasons not included in your distributed exe-file. To analyse the problem: - read the file numpy\core\multiarray.py - check which file is imported in line 10 After finding the name of the file, check your dist-directory if that .pyd is really missing. If that .pyd is missing, you have 2 options: a) there is an include-directive in py2exe options; you can try to explicitly name the .pyd to be included b) I had good results by explicitly importing files which import .pyd on a top level, that is my_toplevel_file_with_py2exepatches.py: import sys import numpy.core import numpy.core.multiarray More of these tricks you can find on http://py2exe.org/ Best wishes Harald > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://makebettercode.com/inteldaal-eval > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > -- GHUM GmbH Harald Armin Massa Spielberger Straße 49 70435 Stuttgart 0173/9409607 Amtsgericht Stuttgart, HRB 734971 |