Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'postprocess_model_xml' from 'robosuite.utils.mjcf_utils' #50

Closed
supriyasathya opened this issue Dec 22, 2022 · 6 comments

Comments

@supriyasathya
Copy link

I get this error when I run a coupe of scripts such as : python examples/train_bc_rnn.py --debug
or even the playback_dataset.py script:

from robosuite.utils.mjcf_utils import postprocess_model_xml
ImportError: cannot import name 'postprocess_model_xml' from 'robosuite.utils.mjcf_utils' (/home/xyz/anaconda3/envs/robomimic_venv/lib/python3.7/site-packages/robosuite/utils/mjcf_utils.py)

Is 'postprocess_model_xml' removed/moved or renamed?

@Facebear-ljx
Copy link

I get this error when I run a coupe of scripts such as : python examples/train_bc_rnn.py --debug or even the playback_dataset.py script:

from robosuite.utils.mjcf_utils import postprocess_model_xml ImportError: cannot import name 'postprocess_model_xml' from 'robosuite.utils.mjcf_utils' (/home/xyz/anaconda3/envs/robomimic_venv/lib/python3.7/site-packages/robosuite/utils/mjcf_utils.py)

Is 'postprocess_model_xml' removed/moved or renamed?

Using robosuite with version 1.2.1 works well. It seems that 'postprocess_model_xml' is removed in the latest robosuite (1.4.0).

@amandlek
Copy link
Member

Yes that's correct - we are in the process of updating robomimic to be compatible with v1.4 and will have a new release soon - stay tuned!

@supriyasathya
Copy link
Author

Ok! Thanks for the responses.

@ZlSong417
Copy link

@amandlek @supriyasathya Hi!I have also encountered the same error in robosuite 1.4, how can I solve it?

@amandlek
Copy link
Member

Are you running the latest version of robomimic (e.g. v0.3)? If so, this should not be an issue anymore.

@ZlSong417
Copy link

Yes, and then I switched to version 1.2 and it was fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants