deep-rl-class icon indicating copy to clipboard operation
deep-rl-class copied to clipboard

[HANDS-ON BUG] Unit 8 Part 1 HANDS-ON error while installing "gym[box2d]"

Open omerozerr opened this issue 9 months ago • 4 comments

Describe the bug

Unit 8 Part 1 Colab notebook.

I have run the cells: !pip install setuptools==65.5.0

restarted my session and kept going

%%capture !apt install python-opengl !apt install ffmpeg !apt install xvfb !apt install swig cmake !pip install pyglet==1.5 !pip3 install pyvirtualdisplay

from pyvirtualdisplay import Display virtual_display = Display(visible=0, size=(1400, 900)) virtual_display.start()

!pip install gym==0.22 !pip install imageio-ffmpeg !pip install huggingface_hub

and while installing the below package, I got an error. !pip install gym[box2d]==0.22

 Collecting box2d-py==2.3.5 (from gym[box2d]==0.22)
  Downloading box2d-py-2.3.5.tar.gz (374 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 374.4/374.4 kB 26.3 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... done
Collecting pygame==2.1.0 (from gym[box2d]==0.22)
  Downloading pygame-2.1.0.tar.gz (5.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.8/5.8 MB 78.3 MB/s eta 0:00:00
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Material

Google Colab

omerozerr avatar Feb 21 '25 12:02 omerozerr