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

fix two errors with gym version==0.26.2 #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ZouJiu1
Copy link

@ZouJiu1 ZouJiu1 commented Oct 1, 2023

when I use this repo with gym version==0.26.2, I fix these two errors

1、AttributeError: 'dict' object has no attribute 'all'
2、AttributeError: 'EnvSpec' object has no attribute '_kwargs'. Did you mean: 'kwargs'?

Traceback (most recent call last):
  File "c:\Users\10696\Desktop\access\Hands-on-RL\chapter20.py", line 19, in <module>
    from ma_gym.envs.combat.combat import Combat
  File "C:\Users\10696\Desktop\access\ma-gym\ma_gym\__init__.py", line 10, in <module>
    env_specs = [env_spec for env_spec in envs.registry.all() if 'gym.envs' in env_spec.entry_point]
AttributeError: 'dict' object has no attribute 'all'

and

Traceback (most recent call last):
  File "c:\Users\10696\Desktop\access\Hands-on-RL\chapter20.py", line 19, in <module>
    from ma_gym.envs.combat.combat import Combat
  File "C:\Users\10696\Desktop\access\ma-gym\ma_gym\__init__.py", line 15, in <module>
    kwargs={'name': spec.id, **spec._kwargs}
AttributeError: 'EnvSpec' object has no attribute '_kwargs'. Did you mean: 'kwargs'?

@ZouJiu1 ZouJiu1 changed the title fix two errors fix two errors with gym version==0.26.2 Oct 1, 2023
@charfole
Copy link

Thanks, it helps me a lot!

@zzxcreate
Copy link

thanks

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

Successfully merging this pull request may close these issues.

3 participants