Skip to content

[All parallel environments have env-id 0 ] #312

@RajGhugare19

Description

@RajGhugare19

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

after using fresh anaconda env / venv installing a fresh envpool using pip install envpool , and running :

import gym
import envpool
import numpy as np

env = envpool.make_gym("Pong-v5", num_envs=2)

action_num = env.action_space.n

action = np.random.randint(action_num, size=2)
obs, rew, done, info = env.step(action)

print(info["env_id"]) 

Expected behavior

The expected output is [1, 2] but I keep getting [0, 0] for some reason.

System info

Describe the characteristic of your environment:

  • The libraries were installed on a fresh venv.
import envpool, numpy, sys
print(envpool.__version__, numpy.__version__, sys.version, sys.platform)

0.8.4 2.0.0 3.10.12 (main, Jul 29 2024, 16:56:48) [GCC 11.4.0] linux

Checklist

  • I have checked that there is no similar issue in the repo (required)
  • I have read the documentation (required)
  • I have provided a minimal working example to reproduce the bug (required)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions