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
However, I got the following error: Creating window glfw Playing back random episode... (press ESC to quit) model_1.xml Creating window glfw Traceback (most recent call last): File "/home/praveen/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 70, in <module> xml = postprocess_model_xml(model_xml) File "/home/praveen/robosuite/robosuite/utils/mjcf_utils.py", line 511, in postprocess_model_xml tree = ET.fromstring(xml_str) File "/home/praveen/miniconda3/lib/python3.9/xml/etree/ElementTree.py", line 1348, in XML return parser.close() xml.etree.ElementTree.ParseError: syntax error: line 1, column 0
I then changed tree = ET.fromstring(xml_str) to tree = ET.parse(xml_str).
However, I now get a new error:
Creating window glfw Playing back random episode... (press ESC to quit) model_1.xml Creating window glfw Traceback (most recent call last): File "/home/praveen/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 70, in <module> xml = postprocess_model_xml(model_xml) File "/home/praveen/robosuite/robosuite/utils/mjcf_utils.py", line 512, in postprocess_model_xml tree = ET.parse(xml_str) File "/home/praveen/miniconda3/lib/python3.9/xml/etree/ElementTree.py", line 1229, in parse tree.parse(source, parser) File "/home/praveen/miniconda3/lib/python3.9/xml/etree/ElementTree.py", line 569, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'model_1.xml'
May I ask how can this be fixed? Thank you!
The text was updated successfully, but these errors were encountered:
Hi @cremebrule this issue seems to come from the default wipe demonstrations collected on an older version of robosuite. I think the easiest way would be to recollect and update the demo files.
Hi, I tried running the following line of code in my robosuite directory to load and play a sample demonstration:
python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/wipe/panda
However, I got the following error:
Creating window glfw Playing back random episode... (press ESC to quit) model_1.xml Creating window glfw Traceback (most recent call last): File "/home/praveen/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 70, in <module> xml = postprocess_model_xml(model_xml) File "/home/praveen/robosuite/robosuite/utils/mjcf_utils.py", line 511, in postprocess_model_xml tree = ET.fromstring(xml_str) File "/home/praveen/miniconda3/lib/python3.9/xml/etree/ElementTree.py", line 1348, in XML return parser.close() xml.etree.ElementTree.ParseError: syntax error: line 1, column 0
I then changed
tree = ET.fromstring(xml_str)
totree = ET.parse(xml_str)
.However, I now get a new error:
Creating window glfw Playing back random episode... (press ESC to quit) model_1.xml Creating window glfw Traceback (most recent call last): File "/home/praveen/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 70, in <module> xml = postprocess_model_xml(model_xml) File "/home/praveen/robosuite/robosuite/utils/mjcf_utils.py", line 512, in postprocess_model_xml tree = ET.parse(xml_str) File "/home/praveen/miniconda3/lib/python3.9/xml/etree/ElementTree.py", line 1229, in parse tree.parse(source, parser) File "/home/praveen/miniconda3/lib/python3.9/xml/etree/ElementTree.py", line 569, in parse source = open(source, "rb") FileNotFoundError: [Errno 2] No such file or directory: 'model_1.xml'
May I ask how can this be fixed? Thank you!
The text was updated successfully, but these errors were encountered: