Skip to main content
Question

Not Able to Import arcgis (ArcGIS Python API) into FME

  • February 17, 2025
  • 1 reply
  • 20 views

bhk
Contributor
Forum|alt.badge.img+3

Using FME 2021, I am trying ton import ArcGIS Python API package into FME to be able to use  from arcgis.gis import GIS

 

I used CMD and ran the following command

C:\Users\User\Documents\FME\Plugins\Python>fme.exe python -m pip install arcgis

 

but I am getting this error

 

    ERROR: Command errored out with exit status 1:
     command: 'C:\Program Files\FME_2021.1_b21607\fmepython38\python.exe' 'C:\Program Files\FME_2021.1_b21607\python\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\User~1\AppData\Local\Temp\tmp8yey1i4s'
         cwd: C:\Users\wUser\AppData\Local\Temp\pip-install-mweucxk9\pywinpty
    Complete output (6 lines):

    Cargo, the Rust package manager, is not installed or is not on PATH.
    This package requires Rust and Cargo to compile extensions. Install it through
    the system's package manager or via https://rustup.rs/

    Checking for Rust toolchain....
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files\FME_2021.1_b21607\fmepython38\python.exe' 'C:\Program Files\FME_2021.1_b21607\python\pip\_vendor\pep517\_in_process.py' prepare_metadata_for_build_wheel 'C:\Users\user~1\AppData\Local\Temp\tmp8yey1i4s' Check the logs for full command output.

can you please let me know what I am doing wrong?

j.botterill
Influencer
Forum|alt.badge.img+34

Hmm, maybe in Workbench go to Workspace Parameters > Scripting > Python Compatibility. Set it to the version you want. Note, if you don’t have certain dropdowns, then the python library may not be supported due to compatibility issues, or it is not installed nor currently licensed adequately from an arcgis perspective. Check arc map or arc pro is licensed adjacent FME workbench

https://docs.safe.com/fme/html/FME-Form-Documentation/FME-Form/Workbench/Python-Compatibility.htm

Check the transaction log for the Python environment. Also the PYTHON_HOME variable.

According to https://support.safe.com/hc/en-us/articles/25407387235853-Build-Numbers-for-FME-Versions FME 2021 should support Py Windows: 2.7, 3.6-3.8


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