exe - GDAL compile using pyinstaller (ImportError: DLL load failed: The specified module could not be found.) -


i'm hoping can me debug following error message pyinstall.

i'm trying compile script exe , have been dealing hidden modules days, i've come across new error message seems missing .dll file.

problem is, can't tell 1 causing problem. hoping experienced in compiling can assist me in debugging error message. looking @ traceback, 'scipy.interpolate' , 'scipy.linalg' seem important. however, have included them in .spec file pyinstall , not change output.

the script uses gdal , have therefore included gdal111.dll, geos_c.dll in build folder.

i have run script through dependency walker don't know doing or for. here screenshot of dlls. maybe it's not obvious me, don't python ones.

dep walker screenshot

# installing zipimport hook import zipimport # builtin # installed zipimport hook import marshal # builtin import _struct # builtin import nt # builtin import imp # builtin import zlib # builtin import errno # builtin import _weakref # builtin import _codecs # builtin import _sre # builtin import _locale # builtin import _ctypes # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\_ctypes.pyd import pil._imaging # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pil._imaging.pyd import _collections # builtin import operator # builtin import itertools # builtin import _heapq # builtin import thread # builtin import _io # builtin import array # builtin import math # builtin import strop # builtin import _functools # builtin import binascii # builtin import _hashlib # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\_hashlib.pyd import _random # builtin import cstringio # builtin import time # builtin import datetime # builtin import _socket # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\_socket.pyd import _ssl # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\_ssl.pyd import parser # builtin import win32api # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\win32api.pyd import pywintypes # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pywintypes27.dll import pythoncom # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pythoncom27.dll import pyproj._proj # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pyproj._proj.pyd import numpy.core.multiarray # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.core.multiarray.pyd import numpy.core.umath # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.core.umath.pyd import cpickle # builtin import numpy.core._dotblas # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.core._dotblas.pyd import numpy.core.scalarmath # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.core.scalarmath.pyd import numpy.lib._compiled_base # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.lib._compiled_base.pyd import numpy.linalg.lapack_lite # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.linalg.lapack_lite.pyd import numpy.linalg._umath_linalg # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.linalg._umath_linalg.pyd import future_builtins # builtin import numpy.fft.fftpack_lite # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.fft.fftpack_lite.pyd import numpy.random.mtrand # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\numpy.random.mtrand.pyd import pandas.hashtable # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas.hashtable.pyd import _winreg # builtin import gc # builtin import msvcrt # builtin import _subprocess # builtin import _bisect # builtin import pandas.tslib # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas.tslib.pyd import pandas.lib # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas.lib.pyd import _csv # builtin import pandas.algos # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas.algos.pyd import pandas.index # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas.index.pyd import pandas._period # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas._period.pyd import pandas._sparse # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas._sparse.pyd import matplotlib._path # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\matplotlib._path.pyd import _ast # builtin import pandas.parser # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas.parser.pyd import pandas.json # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas.json.pyd import pandas.msgpack # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas.msgpack.pyd import pandas._testing # dynamically loaded c:\users\hp\appdata\local\temp\_mei84482\pandas._testing.pyd traceback (most recent call last):   file "<string>", line 13, in <module>   file "c:\python27\lib\site-packages\pyinstaller\loader\pyi_importers.py", line 270, in load_module     exec(bytecode, module.__dict__)   file "c:\users\hp\pycharmprojects\gisdev\build\gis_helper2\out00-pyz.pyz\scipy.interpolate", line 145, in <module>   file "c:\python27\lib\site-packages\pyinstaller\loader\pyi_importers.py", line 270, in load_module     exec(bytecode, module.__dict__)   file "c:\users\hp\pycharmprojects\gisdev\build\gis_helper2\out00-pyz.pyz\scipy.interpolate.interpolate", line 15, in <module>   file "c:\python27\lib\site-packages\pyinstaller\loader\pyi_importers.py", line 270, in load_module     exec(bytecode, module.__dict__)   file "c:\users\hp\pycharmprojects\gisdev\build\gis_helper2\out00-pyz.pyz\scipy.linalg", line 172, in <module>   file "c:\python27\lib\site-packages\pyinstaller\loader\pyi_importers.py", line 270, in load_module     exec(bytecode, module.__dict__)   file "c:\users\hp\pycharmprojects\gisdev\build\gis_helper2\out00-pyz.pyz\scipy.linalg.misc", line 5, in <module>   file "c:\python27\lib\site-packages\pyinstaller\loader\pyi_importers.py", line 270, in load_module     exec(bytecode, module.__dict__)   file "c:\users\hp\pycharmprojects\gisdev\build\gis_helper2\out00-pyz.pyz\scipy.linalg.blas", line 155, in <module>   file "c:\python27\lib\site-packages\pyinstaller\loader\pyi_importers.py", line 409, in load_module     module = imp.load_module(fullname, fp, filename, self._c_ext_tuple) importerror: dll load failed: specified module not found. 

just updating problem. apparently there can issues scipy modules , pyinstaller. modules such linalg , interpolate rely on fblas.py may missing in pythonversion\lib\site-packages\scipy\linalg folder.

this issue numpy. installing numpy+mkl fixed me , copied correct file directory.

numpy+mkl can found here. sure uninstall previous version of numpy.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -