Open AstroTheKat opened 5 months ago
Might be that the demos are outdated potentially? If you install with pip, does it give you the same issue?
Thanks for the suggestion! I switched to the pip installation. The lift
demo works now, but I get what looks like the same errors for handover
and wipe
.
For python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/handover/panda_panda
, I get:
Traceback (most recent call last):
File "/Users/astro/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 44, in <module>
env_info = json.loads(f["data"].attrs["env_info"])
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "/opt/homebrew/Caskroom/miniforge/base/envs/robosuite/lib/python3.9/site-packages/h5py/_hl/attrs.py", line 56, in __getitem__
attr = h5a.open(self._id, self._e(name))
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5a.pyx", line 80, in h5py.h5a.open
KeyError: "Can't open attribute (can't locate attribute: 'env_info')"
For python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/wipe/panda
, I get:
Playing back random episode... (press ESC to quit)
Traceback (most recent call last):
File "/Users/astro/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 69, in <module>
xml = env.edit_model_xml(model_xml)
File "/Users/astro/robosuite/robosuite/environments/base.py", line 520, in edit_model_xml
tree = ET.fromstring(xml_str)
File "/opt/homebrew/Caskroom/miniforge/base/envs/robosuite/lib/python3.9/xml/etree/ElementTree.py", line 1343, in XML
return parser.close()
xml.etree.ElementTree.ParseError: syntax error: line 1, column 0
I'm on an M1 MacBook with robosuite installed from source (on the master branch).
I've run into errors with playback for all of the sample demonstrations in
robosuite/models/assets/demonstrations
, when runningpython playback_demonstrations_from_hdf5.py
from therobosuite/scripts
folder.The command
python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/lift/
gives me the error:Output
```python-traceback Playing back random episode... (press ESC to quit) Traceback (most recent call last): File "/Users/astro/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 70, inThe command
python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/handover/panda_panda
gives me the error:Output
```python-traceback Traceback (most recent call last): File "/Users/astro/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 44, inThe command
python playback_demonstrations_from_hdf5.py --folder ../models/assets/demonstrations/wipe/panda
gives me the error (possibly related to #303):Output
```python-traceback Playing back random episode... (press ESC to quit) Traceback (most recent call last): File "/Users/astro/robosuite/robosuite/scripts/playback_demonstrations_from_hdf5.py", line 69, inAny idea what might be happening here? Thank you!