You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a Python script to automate the entire process of TRex execution (including the YAML file generation on the fly for the TRex server).
I was generating the YAML content in my Python script to have the YAML keys sorted by their appearance in the data script instead of by name. To do that, I used sort_keys option available in PyYAML dump function. The output that I am facing looks as follows:
In the above image you can see the detailed error and in addition to that, you can see the path where PyYAML is installed within TRex: /home/trex/v3.04/external_libs/pyyaml-3.11/python3/yaml/... Below is added this detail too.
Seeing this error, I wanted to start to use the PyYAML library hosted on my system (it is PyYaml 6.0.1) and installed with pip3 rather than the included with TRex but due to some environment variables added from TRex script base config I was facing the following error:
One option could be to change the environment variables but, it implies deep changes in the TRex base config which could provoke errors due to internal dependencies.
Seeing that, I worked to change the PyYAML external lib within the TRex repo from 3.11 to 6.0.1 (the newest). After that, I have been able to generate my YAML config as desired.
I would like to know why is being used an out of date version of PyYAML and in addition to that, I would like to suggest to update it to the last one as I did.
Thank you!
The text was updated successfully, but these errors were encountered:
Hi,
I am working on a Python script to automate the entire process of TRex execution (including the YAML file generation on the fly for the TRex server).
I was generating the YAML content in my Python script to have the YAML keys sorted by their appearance in the data script instead of by name. To do that, I used sort_keys option available in PyYAML dump function. The output that I am facing looks as follows:
In the above image you can see the detailed error and in addition to that, you can see the path where PyYAML is installed within TRex: /home/trex/v3.04/external_libs/pyyaml-3.11/python3/yaml/... Below is added this detail too.
Seeing this error, I wanted to start to use the PyYAML library hosted on my system (it is PyYaml 6.0.1) and installed with pip3 rather than the included with TRex but due to some environment variables added from TRex script base config I was facing the following error:
One option could be to change the environment variables but, it implies deep changes in the TRex base config which could provoke errors due to internal dependencies.
Seeing that, I worked to change the PyYAML external lib within the TRex repo from 3.11 to 6.0.1 (the newest). After that, I have been able to generate my YAML config as desired.
I would like to know why is being used an out of date version of PyYAML and in addition to that, I would like to suggest to update it to the last one as I did.
Thank you!
The text was updated successfully, but these errors were encountered: