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

ValueError: too many values to unpack (expected 2) #1205

Open
hydro-man opened this issue Sep 26, 2022 · 2 comments
Open

ValueError: too many values to unpack (expected 2) #1205

hydro-man opened this issue Sep 26, 2022 · 2 comments

Comments

@hydro-man
Copy link

When i run the following code to test the model atari_wrapper :

env=atari_wrappers.wrap_deepmind(
    atari_wrappers.make_atari(env_id='PongNoFrameskip-v4'),  # PongNoFrameskip-v4
    clip_rewards=False,
    frame_stack=True,
    scale=False,
)
env.reset()

I got a ValueError:

A.L.E: Arcade Learning Environment (version 0.8.0+919230b)
[Powered by Stella]
Traceback (most recent call last):
  File "C:/Users/HNXCD/Desktop/adaptive-transformers-in-rl-master/Model/test.py", line 18, in <module>
    env.reset()
  File "C:\Users\HNXCD\Desktop\adaptive-transformers-in-rl-master\Model\atari_wrapper2.py", line 205, in reset
    ob = self.env.reset()
  File "D:\app\Anaconda\envs\gym_env\lib\site-packages\gym\core.py", line 379, in reset
    obs, info = self.env.reset(**kwargs)
ValueError: too many values to unpack (expected 2)

I want konw how to fix it?

@greedjesse
Copy link

greedjesse commented Feb 13, 2024

Hi, I'm having the same problem, too. Have you come up with any solution?

@greedjesse
Copy link

It seems like self.env.reset(**kwargs) doesn't return info but only a nd.array with the shape (210, 160, 3).

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