Skip to main content
Best Answer

Quick question: where does FME store which Python version to use ?

  • September 4, 2019
  • 1 reply
  • 48 views

lifalin2016
Supporter
Forum|alt.badge.img+40

HI.

I'm tasked with switching Python version for a service user without login.

The setting under "FME Options" / "Translation" / "Preferred Python Interpreter" is therefore not immidiatedly available to me for this user.

 

I have ascertained, that this setting is both version and user dependant (but not 32/64 bit). But I've looked all over the registry for it without success.

 

Can anyone help with this ?

Cheers.

Lars

 

 

Best answer by debbiatsafe

Hi @lifalin2016,

The Python Compatibility parameter controls which Python interpreter is used when a workspace is run. This is a workspace-specific parameter that is found in the Navigator pane (Workspace Parameters > Scripting > Python Compatibility).

The Preferred Python Interpreter setting is only used by FME when Python Compatibility parameter is Python 2.7 or 3, the Python Compatibility parameter doesn't exist on the workspace, or when running FME Python interpreter’s interactive shell. This setting also controls the default Python Compatibility value when a new workspace is created via Workbench.

So changing the Python interpreter used when a workspace is run should be done through a workspace's Python Compatibility parameter instead of the Preferred Python Interpreter setting.

 

That being said, the relevant registry setting(s) would be found under HKEY_CURRENT_USER as mentioned in this comment.

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • Best Answer
  • September 6, 2019

Hi @lifalin2016,

The Python Compatibility parameter controls which Python interpreter is used when a workspace is run. This is a workspace-specific parameter that is found in the Navigator pane (Workspace Parameters > Scripting > Python Compatibility).

The Preferred Python Interpreter setting is only used by FME when Python Compatibility parameter is Python 2.7 or 3, the Python Compatibility parameter doesn't exist on the workspace, or when running FME Python interpreter’s interactive shell. This setting also controls the default Python Compatibility value when a new workspace is created via Workbench.

So changing the Python interpreter used when a workspace is run should be done through a workspace's Python Compatibility parameter instead of the Preferred Python Interpreter setting.

 

That being said, the relevant registry setting(s) would be found under HKEY_CURRENT_USER as mentioned in this comment.