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

AttributeError: 'System' object has no attribute 'body_idx' in brax #45

Closed
andy-james0310 opened this issue Apr 14, 2022 · 4 comments
Closed

Comments

@andy-james0310
Copy link

when running test/test_all_envs.py, there is AttributeError: 'System' object has no attribute 'body_idx' in carl_fetch and carl_humanoid environments.

@benjamc
Copy link
Collaborator

benjamc commented Apr 14, 2022

Do you mean in this line?
self.env.target_idx = self.env.sys.body.index["Target"]

If so, do you have the newest version of CARL?

Best wishes
🌞

@andy-james0310
Copy link
Author

Thanks. The newest version has no this problem.

But, there is another problem when running the environments of Brax.

WARNING:absl:No GPU/TPU found, falling back to CPU. (Set TF_CPP_MIN_LOG_LEVEL=0 and rerun for more info.)

raise TypeError("len() of unsized object") from err # same as numpy error
TypeError: len() of unsized object

There is no problem in classic_control environments

@benjamc
Copy link
Collaborator

benjamc commented Apr 19, 2022

Could you provide a minimal working example for this error and/or explain more, when that happens?

@TheEimer
Copy link
Contributor

I'll close this since there was no further example given. If anything else comes up, please open a new issue

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

3 participants