ARISE-Initiative / robosuite

robosuite: A Modular Simulation Framework and Benchmark for Robot Learning
https://robosuite.ai
Other
1.24k stars 396 forks source link

TypeError with xml.etree.ElementTree import #269

Closed Gongkaka closed 2 years ago

Gongkaka commented 2 years ago

I followed the installation instructions and try the demo_random_action.py, then got this error:

File "/home/gxxxa/packages/robosuite-master/robosuite/models/base.py", line 185, in merge_assets
    self.asset.append(asset)
TypeError: append() argument must be xml.etree.ElementTree.Element, not Element
yukezhu commented 2 years ago

Hi @Gongkaka did you install robosuite through pip or using the git clone? I tried a clean install and wasn't able to reproduce your issue. More information would be necessary for us to investigate this further.

Gongkaka commented 2 years ago

Hi @Gongkaka did you install robosuite through pip or using the git clone? I tried a clean install and wasn't able to reproduce your issue. More information would be necessary for us to investigate this further.

Hi Prof. Zhu. I just realized that I need to install numpy in my virtual environment as well..Sorry for wasting two minutes of your life lol.

lorepieri8 commented 2 years ago

I got the same issue, and fixed it by installing the requirements in a fresh venv environment.