Skip to main content

Hi,

 

I´m currently setting up a custom Python interpreter for FME Server 2020.0

I have installed a custom Pyhon installation and added a packge to it.

I´ve also runned the following commands with administrator privileges in command prompt:

"C:/Program Files/FMEServer/Server/fme/fme.exe" APPLY_SETTINGS SYSTEM "Python/Use Custom Python" true

"C:/Program Files/FMEServer/Server/fme/fme.exe" APPLY_SETTINGS SYSTEM "Python/Python Interpreter" "path_to_pyhon_folder/python37.dll"

When I run my workspace that uses Python I get:

The PYTHONHOME for the user-specified Python interpreter is not set through FME Options or a PYTHONHOME environment variable.

On my local computer I can set the PYTHONHOME-parameter under Tools-FME Options...

But what is the command to set this parameter on FME-Server?

The documention only covers the two commands I've already runed.

You have to set PYTHONHOME in the system environment variables, e.g.: https://docs.oracle.com/en/database/oracle/r-enterprise/1.5.1/oread/creating-and-modifying-environment-variables-on-windows.html#GUID-DD6F9982-60D5-48F6-8270-A27EC53807D0

It may be necessary to restart the server for the changes to take effect.


You have to set PYTHONHOME in the system environment variables, e.g.: https://docs.oracle.com/en/database/oracle/r-enterprise/1.5.1/oread/creating-and-modifying-environment-variables-on-windows.html#GUID-DD6F9982-60D5-48F6-8270-A27EC53807D0

It may be necessary to restart the server for the changes to take effect.

@david_r Thanks for clarification. That was my "to-go-to" if there wasn't any other solution as I wished to avoid a restart of the server. But hey, got to do what it takes.

 

Thanks for fast response anyway 🙂

Reply