7/27/2023 0 Comments Python subprocess call background![]() Subprocess.Popen(, shell=False)įunny thing is that the 'lidar_hydro_child_v101.py' script (the import arcpy part) runs just fine stand alone in 64-bit and/or 32-bit Python, but just not when called as a subprocess. The subprocess call is to the 64bit version of Python, and I have verified that this is the exe that is launching under subprocess. However, when I attempt to launch a subprocess of arcpy with a 64 bit version of Python, the subprocess script fails upon attempting to import arcpy with the following error:Ĭ:\Python27\ArcGIS圆410.1 Python Traceback Info: File "\\snarf\am\div_lm\ds\gis\projects\lidar_hydro_all \lidar_hydro_child_v101.py", line 7, in import arcpy Python Error Info: : DLL load failed: %1 is not a valid Win32 application. ![]() Both versions of python will import and play with arcpy just fine. ![]() After installing the 'ArcGIS_BackgroundGP_for_Desktop_101sp1.exe' 64-bit geoprocessing package I have both the 32-bit and 64-bit versions of Python 2.7 on my machine. I have a script that relys on the 'subprocess' module to basically run seperate instances of arcpy as a parallel process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |