Skip to main content
Solved

ArcPy on FME server

  • November 8, 2017
  • 4 replies
  • 186 views

nielsgerrits
VIP
Forum|alt.badge.img+52

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?

Best answer by david_r

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

View original
Did this help you find an answer to your question?

4 replies

david_r
Evangelist
  • Best Answer
  • November 8, 2017

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


nielsgerrits
VIP
Forum|alt.badge.img+52
  • Author
  • VIP
  • November 8, 2017
david_r wrote:

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.

david_r
Evangelist
  • November 9, 2017
nielsgerrits wrote:
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.

brianatsafe
Safer
Forum|alt.badge.img+11
  • Safer
  • November 10, 2017

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


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