Afanasy render environment
Posted: Thu Mar 18, 2021 6:02 pm
Greetings,
We are using afanasy as our render farm manager but not much else from the cgru toolset.
I have noticed that the environment running on the farm has prepended to the PATH and PYTHONPATH environment variables, specifically the following prefixes.
PATH PREFIX:
{CGRU_LOCATION}/python;{CGRU_LOCATION}/afanasy/bin;{CGRU_LOCATION}/software_setup/bin;{CGRU_LOCATION}/bin;{CGRU_LOCATION}/dll
PYTHONPATH PREFIX:
{CGRU_LOCATION}/afanasy/python;{CGRU_LOCATION}/lib/python
where {CGRU_LOCATION} is the install location of CGRU.
I've run into some import conflicts caused by the PYTHONPATH change and with running commands like `python script.py` caused by the difference in python version being picked up on the farm vs when the command is run locally.
Ideally I'd like the same runtime environment whether I run the command locally or through afanasy.
Is there some configuration that I am missing for setting the environment that runs on the farm?
We are using afanasy as our render farm manager but not much else from the cgru toolset.
I have noticed that the environment running on the farm has prepended to the PATH and PYTHONPATH environment variables, specifically the following prefixes.
PATH PREFIX:
{CGRU_LOCATION}/python;{CGRU_LOCATION}/afanasy/bin;{CGRU_LOCATION}/software_setup/bin;{CGRU_LOCATION}/bin;{CGRU_LOCATION}/dll
PYTHONPATH PREFIX:
{CGRU_LOCATION}/afanasy/python;{CGRU_LOCATION}/lib/python
where {CGRU_LOCATION} is the install location of CGRU.
I've run into some import conflicts caused by the PYTHONPATH change and with running commands like `python script.py` caused by the difference in python version being picked up on the farm vs when the command is run locally.
Ideally I'd like the same runtime environment whether I run the command locally or through afanasy.
Is there some configuration that I am missing for setting the environment that runs on the farm?