So the environment variables are not set by the clearml-agent, but by clearml itself
If I understood correctly, if I tried to print(os.environ["MUJOCO_GL"])
after the clearml Task is created, this should be set?
I forgot to add this:
` Here is my error:
Traceback (most recent call last):
File "src/run_gym.py", line 25, in <module>
print(os.environ["MUJOCO_GL"])
File "/home/tim/.clearml/venvs-builds/3.7/lib/python3.7/os.py", line 681, in getitem
raise KeyError(key) from None
KeyError: 'MUJOCO_GL' `
This is at the top of my script.
Since you are running in venv mode, adding the OS environment before the clearml-agent, will basically make sure it will propagate to the process itself.
ReassuredTiger98 make sense ?
Well (yes, I think), the environment section is used mostly for logging, the next version will have full support by the clearml-agent (due next week), and the next release of clearml-server will add basj-script support.
What exactly does this mean? The environment is set after the script is started?
ReassuredTiger98 the environment is currently only set in runtime of the process (not before), this will change in the next RC of trains-agent (due is a few days)
Just tested it again. Here is my config:
https://gist.github.com/mctigger/086c5f8071a604605e9f7a172800b51d
In the Web UI under Configuration -> Hyper Parameters -> Environment
I can see the following:MUJOCO_GL osmesa
ReassuredTiger98 what is the command line you use to start the ClearML Agents?
How can I see that?
I have venv_update.enabled: true
and detect_with_conda_freeze: true
Hi ReassuredTiger98
Are you running the agent in venv mode ?