Skip to main content
Archived

Python Interpreter not being completely utilized

Related products:Transformers
  • May 31, 2019
  • 1 reply
  • 5 views

dellerbeck
Contributor

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

This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

stevenjh
Contributor
Forum|alt.badge.img+1
  • Contributor
  • June 10, 2019

I was having this same issue and found if I set the interpreter to ArcGIS Pro 2.1/2.2/2.3 then created a new workbench I could import Pandas.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings