Solved

ArcPy on FME server

  • 8 November 2017
  • 4 replies
  • 49 views

Userlevel 6
Badge +32

I'm a novice in Python so excuse me if I ask something stupid. I read a lot pieces written on this subject but I can't get it to work...

I would like to use ArcPy on FME server 2016.1. I followed these instructions but I get stuck on the step where I need to repackage:

Install the package with the following command:

python -m pip install <package_name> --target C:\Users\<user>\Documents\FME\Plugins\Python

For example, to install a package named PyExecJS:

python -m pip install PyExecJS --target C:\Users\<user>\Documents\FME\Plugins\Python

What package do I need to choose to get ArcPy included?

icon

Best answer by david_r 8 November 2017, 15:46

View original

4 replies

Userlevel 4

In short: you can't use pip to install arcpy.

You'll have to make a licensed install of either ArcGIS Desktop, ArcGIS Server or ArcGIS Pro on the same machine as your FME Server installation.

See here for more information: https://knowledge.safe.com/articles/24153/using-fme-server-with-esri-software.html

You'll also want to pay particular attention to version compatibilities as documented here: https://knowledge.safe.com/articles/1517/notes-on-fme-and-esri-versions-and-compatibility.html

You then have to change the default Python interpreter on your FME Server to use the Python version that was installed as part of ArcGIS, see under the headline "Changing the Python Interpreter" here: https://docs.safe.com/fme/html/FME_Server_Documentation/Content/AdminGuide/Using-Python-with-FME_Server.htm

Userlevel 6
Badge +32

In short: you can't use pip to install arcpy.

You'll have to make a licensed install of either ArcGIS Desktop, ArcGIS Server or ArcGIS Pro on the same machine as your FME Server installation.

See here for more information: https://knowledge.safe.com/articles/24153/using-fme-server-with-esri-software.html

You'll also want to pay particular attention to version compatibilities as documented here: https://knowledge.safe.com/articles/1517/notes-on-fme-and-esri-versions-and-compatibility.html

You then have to change the default Python interpreter on your FME Server to use the Python version that was installed as part of ArcGIS, see under the headline "Changing the Python Interpreter" here: https://docs.safe.com/fme/html/FME_Server_Documentation/Content/AdminGuide/Using-Python-with-FME_Server.htm

Thanks for the complete answer David. I will check but was convinced I have ArcMap and background processing installed on the same machine.
Userlevel 4
Thanks for the complete answer David. I will check but was convinced I have ArcMap and background processing installed on the same machine.
If that is the case, then you probably only need to change the Python interpreter used by FME Server, as described in the last paragraph.
Badge +9

If you would like to use Esri formats or functionality (e.g. ArcPy) with FME Server, please do check out Esri's licensing terms, specifically, when their software is used within server enviroments. For more information, please see the following article which we have updated: https://knowledge.safe.com/articles/24153/using-fme-server-with-esri-software.html

Reply