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

a typeError in build_env() function #358

Open
hululu-lzb opened this issue May 11, 2024 · 2 comments
Open

a typeError in build_env() function #358

hululu-lzb opened this issue May 11, 2024 · 2 comments

Comments

@hululu-lzb
Copy link

I inherited from gym.Env and created a new class, passing in the additional parameter env_config in the init method of this new class. But when I use train_agent(), the built_env() will report an error, check elegantRL source code, this is because my gym.make is gym.envs.registration. So by default no parameters are passed when creating an environment. Is there any solution?
image1
image2

@hululu-lzb
Copy link
Author

My demo is copied from fllow:
image

@sonderli
Copy link

I meet the same quesation,did you solve it?

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

2 participants