Question

How to use the ArcGIS python library in FME?

  • 19 October 2018
  • 1 reply
  • 31 views

Badge +13

Hello all,

I want to use the ArcGIS api from PythonCallers in FME, and do that on server.

https://developers.arcgis.com/python/guide/install-and-set-up/

All works fine on desktop, when I switch to the ArcGIS Pro python.

When I install the library, and its dependencies in my Documents/FME/Plugins/Python/python36, and use the Default Python 3.6 for my workspace, I get a message 

Python Exception <ImportError>: dateutil 2.5.0 is the minimum required version

When I do

import fme
import fmeobjects
import dateutil

def processFeature(feature):
    logger = fmeobjects.FMELogFile()
    logger.logMessageString("dateutil is version {}".format(dateutil.__version__)) 

I get 

dateutil is version 2.4.0

Even when I have added the dateutil 2.7.3 package to my plugins/Python/python36 folder. It seems I can't override the dateutil-version and therefore not use the arcgis library.

I do not intend to install ArcGIS Pro on our server, as of licencing, overhead, and I want this to run on FME Cloud as well, which is Linux based.

Hope someone can help.

Kind regards,

Martin


Reply