I am running FME 20170331 - Build 17280 - Win64, with ArcGIS Desktop 10.5 and ArcGIS Pro 1.4 in the background.
For ArcGIS Desktop I also installed the Background Geoprocessing extension to enable a 64-bit Python with arcpy. For ArcGIS Desktop, that's of course always for Python 2.7.
Â
ArcGIS Pro comes with Python 3.5 and is a 64-bit system.When I ran my workbench with four little Python scripts, whereof not a single one is calling arcpy, gp or something related to ESRI Python modules, only standard modules are used, then I got a Python error:
Â
File "c:\\apps\\arcgis\\desktop10.5\\arcpy\\arcpy\\geoprocessing\\_base.py", line 14, in <module>
Â
import arcgisscriptingÂ
ImportError: No module named arcgisscripting- I set my Pythonpath to the bin64 folder of the desktop10.5 installation, referencing the 64-bit geoprocessing tools, and adjusted the Python interpreter in FME to 'Esri ArcGIS Desktop Python(2.7)'
- I ran the workbench and got the same error message
- I adjusted the Pythonpath variable to the bin directory in the ArcGIS Desktop installation, referencing the 32-bit geoprocessing tools
- I ran the workbench, finished this time succesful the translation and got:
Â
File "c:\\apps\\arcgis\\desktop10.5\\arcpy\\arcpy\\geoprocessing\\_base.py", line 14, in <module>
import arcgisscriptingÂ
ImportError: DLL load failed: %1 is not a valid Win32-program.
- I ran the workbench, finished this time succesful the translation and got:
- I adjusted the Pythonpath variable to the bin directory of th ArcGIS Pro installation and the Python interpreter in FME to 'Esri ArcGIS Pro 1.4+ Python (3.5+)'
- I ran the workbench again, and was back to square one:
Â
File "c:\\apps\\arcgis\\desktop10.5\\arcpy\\arcpy\\geoprocessing\\_base.py", line 14, in <module>
import arcgisscriptingÂ
ImportError: No module named arcgisscripting
- I ran the workbench again, and was back to square one:
All modules imported in the Python scripts are: time and os. At some places the scripts make use of FME_MacroValues, converting them from integer to string... but nowhere do they call ArcGIS Desktop.
Â
Is ArcGIS Desktop called because some of the output is written to file geodatabases?
Â
Why are there errors about not finding 'arcgisscripting' as soon as I reference a 64-bit Python and errors about not matching architecture (32 vs 64-bit) when using a 32-bit Python?
Â
Why does FME never look for ArcGIS Pro, but always for ArcGIS Desktop?