envpool: [BUG] No Envs after installing from sources

Describe the bug

I have tried to install the envpool from the source on a docker image by calling make docker-dev.

In the repo, I called

make bazel-release
pip install ./dist/envpool-0.8.4-cp310-cp310-linux_x86_64.whl 

Envpool is added to my python library. However, when I enter into python console,

Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import envpool
>>> env = envpool.make("Pong-v5", env_type="gym", num_envs=2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/app/envpool/registration.py", line 61, in make
    assert task_id in self.specs, \
AssertionError: Pong-v5 is not supported, `envpool.list_all_envs()` may help.
>>> envpool.list_all_envs()
[]

To Reproduce

Create new docker

make docker-dev

In docker:

make bazel-release
pip install ./dist/envpool-0.8.4-cp310-cp310-linux_x86_64.whl 

After install:

import envpool
env = envpool.make("Pong-v5", env_type="gym", num_envs=2)
envpool.list_all_envs()

Expected behavior

Some envs in the list.

System info

Describe the characteristic of your environment:

  • Describe how the library was installed (pip, source, …)
  • Python version
  • Versions of any other relevant libraries
>>> print(envpool.__version__, numpy.__version__, sys.version, sys.platform)
0.8.4 1.26.1 3.10.12 (main, Jun 11 2023, 05:26:28) [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)

About this issue

  • Original URL
  • State: open
  • Created 8 months ago
  • Comments: 19

Most upvoted comments

Sorry more delay, I can’t make it this week, will try next week (try to ship a big thing to chatgpt training)

Interesting, it seems the test is broken on master. I’ll try my best and get it fixed this week. Sorry for the break!