Closed nicoguertler closed 9 months ago
On second thought I can see that this behavior is probably intended because the temporary directory gets removed again, sorry. I think it is still problematic though and would like to inquire if there is a chance that this problem will be solved.
I'm facing the same issue when running the code in a cluster. The funny thing is that it won't always crash, only sometimes. Please let me know if you fix this issue.
The maze environments were made prior to vector_env
so it did not support it
PR https://github.com/Farama-Foundation/Gymnasium-Robotics/pull/185 should fix the issue @nicoguertler @roger-creus can you try it, to make sure it fixes your issue Thanks
This solves it @Kallinteris-Andreas ! Thank you!
Works perfectly for me. Thank you very much @Kallinteris-Andreas !
@rodrigodelazcano close
Hey @Kallinteris-Andreas I just wanted to make sure that this issue is solved in every affected environment (mamujoco) as you mentioned in https://github.com/Farama-Foundation/Gymnasium-Robotics/pull/185#issuecomment-1768987758 before closing the issue
Hi,
I would like to report a behavior of the Maze class that I believe to be a bug.
Describe the bug The temporary XML file is always written to the same fixed path (on my system
/tmp/ant_maze.xml
). That leads to crashes if several processes try to instantiate an environment.Code example
This produces
among other parsing errors.
System Info
Additional context It looks like the problem is caused by the use of
path.dirname(tmp_dir)
here which effectively discards the temporary directory created in the line above.Thank you for your help!
Checklist