Skip to main content

Open ideas have been reviewed by our Product Management and are open for commenting and voting.

Filter by idea status

Filter by product area

4588 Ideas

dellerbeck
Contributor
dellerbeckContributor

Python Interpreter not being completely utilizedArchived

After upgrading to FME 2019, the Python interpreter is not using the entire package. After setting the interpreter to both the ArcGIS Pro 2.1/2.2/2.3 Pyhon (3.6) and also a custom interpreter pointing at the ArcGIS Pro default env. FME is not returning the correct dateutil package. This was brought up by trying to import Pandas for use with the Python Caller, an error message of "dateutil minimum release of 2.5.0 required". This is not only on Windows but also on MacOS, the same solution corrected it on both and Pandas does import correctly in Eclipse, ArcGIS Pro, Conda, etc. without error. Running a Python caller with the following import fme import fmeobjects import os import dateutil def processFeature(feature):     feature.setAttribute("PyPath",str(os.path))     feature.setAttribute("DateVersion",str(dateutil.__version__)) FME returns Path (Correct) = Date Util Version (Incorrect) = 2.4.0 ArcGIS Pro returns import dateutil print(dateutil.__version__) 2.7.3 import os print(os.path) module 'ntpath' from 'C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\Lib\\ntpath.py' After searching some, I realized I had to replace the dateutil and python_dateutil-2.4.0.dist-info under "Install PathFME2019python" FME returns Path (Correct) = module 'ntpath' from 'C:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3\\lib\\ntpath.py' Date Util Version (correct) = 2.7.3