AnsweredAssumed Answered

arcpy error using pyinstaller

Question asked by WilMunsell on Nov 13, 2017
Latest reply on Nov 14, 2017 by Dan_Patterson

Using pyinstaller, I'm trying to generate an executable file from a python script that utilizes arcpy, however, I keep getting the following error. Any thoughts?

 

------------------------------------------------------------------------------------------------------------------------------------------------------------

Traceback (most recent call last):

  File "agol_backup_utility.py", line 10, in <module>

    import arcpy

  File "C:\Python27\ArcGIS10.4\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 396, in load_module

    exec(bytecode, module.__dict__)

  File "arcpy\__init__.py", line 22, in <module>

  File "C:\Python27\ArcGIS10.4\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 396, in load_module

    exec(bytecode, module.__dict__)

  File "arcpy\geoprocessing\__init__.py", line 14, in <module>

  File "C:\Python27\ArcGIS10.4\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 396, in load_module

    exec(bytecode, module.__dict__)

  File "arcpy\geoprocessing\_base.py", line 14, in <module>

  File "C:\Python27\ArcGIS10.4\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 688, in load_module

    module = imp.load_module(fullname, fp, filename, ext_tuple)

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.

[7512] Failed to execute script agol_backup_utility

------------------------------------------------------------------------------------------------------------------------------------------------------------

Outcomes