Skip to main content
Question

FME 2016 / Anaconda : How to use custom python interpreter without windows env. variables

  • November 8, 2017
  • 2 replies
  • 95 views

Forum|alt.badge.img

Hi !

 

 

When using several python installations on the same server, they usually don't use windows python path environment variables. How ever, FME cannot start the python module without these (error messages about not being able to find libraries, as you can imagine)

 

 

Is there a good way to define unique environment variables (python home, python path) for fme in a config file ?
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.

2 replies

carsonlam
Safer
Forum|alt.badge.img+7
  • Safer
  • November 15, 2017

It sounds like you want to configure your Python path differently based on your interpreter. If you can't avoid it, you can accomplish this by modifying the Python path programmatically, at run time. You can modify 

sys.path
 in your Python code, which takes effect immediately.

davideagle
Contributor
Forum|alt.badge.img+22
  • Contributor
  • November 16, 2017

There's been some recent (2017) changes to best practice with Python, in particular around workspace specific parameters that it may help you to see. This discussion thread was here.

Hope that helps, Dave