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

sth wrong when running ppo_4x4grid.py #171

Open
1486402863 opened this issue Dec 2, 2023 · 2 comments
Open

sth wrong when running ppo_4x4grid.py #171

1486402863 opened this issue Dec 2, 2023 · 2 comments

Comments

@1486402863
Copy link

F:\Anaconda\lib\site-packages\gymnasium\utils\passive_env_checker.py:135: UserWarning: WARN: The obs returned by the reset() method was expecting numpy array dtype to be float32, actual type: float64
logger.warn(
F:\Anaconda\lib\site-packages\gymnasium\utils\passive_env_checker.py:159: UserWarning: WARN: The obs returned by the reset() method is not within the observation space.
logger.warn(f"{pre} is not within the observation space.")

How to solve this?

@LucasAlegre
Copy link
Owner

Can you share the script that originated this error? Also, make sure you have recent versions of gymnasium and pettingzoo libraries.

@1486402863
Copy link
Author

the version of my gymnasium is 0.29.1
the version of my pettingzoo is 1.24.2
The script I used is in the attachment.

ppo_4x4grid.zip

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