Skip to main content
Solved

How to setup arcgispro-py3-clone as preferred python interpreter.


markvv
Contributor
Forum|alt.badge.img+1

Hi, 

I'm trying to run a python script that accesses python modules in an arcpy cloned environment. But I'm having trouble setting FME to use the conda python interpreter. 

 

I have set the preferred python interpreter in the FME options to the cloned interpreter.imageHowever FME looks to default to the standard arcpy interpreter. 

imageAnd returns the following error after running the workbench: Python Exception <ModuleNotFoundError>: No module named 'untools'

 

Also tried the following, but that does not seem to work:

import sys
sys.path.append(r"C:\Users\markv\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\python39.dll")

 

Python compatibility: Esri ArcGIS Python 3.9 - Would have liked to see the custom interpreter here, but it does not. 

ESRI ArcGIS compatibility: Auto

 

Does anybody have any idea what I am doing wrong?

Thanks,

Mark

Best answer by rahulsharma

Hi @markvv​ 

You have set the "Preferred Python Interpreter" under Tools --> FME Options

Once you set the option there, you can override the value by setting the Python Compatability in the workspace under Workspace --> Parameters --> Scripting --> Python Compatability

 

ISSUE:

When you are setting python compatibility to "Esri ArcGIS Python 3.9" you are overriding the preferred interpreter(set under FME Options).

SOLUTION:

Set Python Compatability in

Workspace --> Parameters --> Scripting --> Python Compatability

to FME Python 3.9+

 

Let me know if that works.

 

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

2 replies

rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • February 7, 2023

Hi @markvv​ 

You have set the "Preferred Python Interpreter" under Tools --> FME Options

Once you set the option there, you can override the value by setting the Python Compatability in the workspace under Workspace --> Parameters --> Scripting --> Python Compatability

 

ISSUE:

When you are setting python compatibility to "Esri ArcGIS Python 3.9" you are overriding the preferred interpreter(set under FME Options).

SOLUTION:

Set Python Compatability in

Workspace --> Parameters --> Scripting --> Python Compatability

to FME Python 3.9+

 

Let me know if that works.

 


markvv
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 8, 2023
rahulsharma wrote:

Hi @markvv​ 

You have set the "Preferred Python Interpreter" under Tools --> FME Options

Once you set the option there, you can override the value by setting the Python Compatability in the workspace under Workspace --> Parameters --> Scripting --> Python Compatability

 

ISSUE:

When you are setting python compatibility to "Esri ArcGIS Python 3.9" you are overriding the preferred interpreter(set under FME Options).

SOLUTION:

Set Python Compatability in

Workspace --> Parameters --> Scripting --> Python Compatability

to FME Python 3.9+

 

Let me know if that works.

 

Perfect, this worked!


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