huggingface / huggingface/deep-rl-class
[HANDS-ON BUG] Unit 8 Part 1 HANDS-ON error while installing "gym[box2d]"
- Dominant language
- MDX
- Stars
- 5k
- Forks
- 811
- PR merge metrics
- No merged PRs in 30d
Description
# 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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.