You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UNEXPECTED EXCEPTION: ModuleNotFoundError("No module named 'pygame'")
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/doctest.py", line 1337, in __run
compileflags, 1), test.globs)
File "<doctest pl_examples.domain_templates.reinforce_learn_Qnet.DQNLightning[0]>", line 1, in <module>
File "/home/runner/work/pytorch-lightning/pytorch-lightning/pl_examples/domain_templates/reinforce_learn_Qnet.py", line 256, in __init__
self.env = gym.make(env)
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/gym/envs/registration.py", line 676, in make
return registry.make(id, **kwargs)
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/gym/envs/registration.py", line 520, in make
return spec.make(**kwargs)
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/gym/envs/registration.py", line 139, in make
cls = load(self.entry_point)
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/gym/envs/registration.py", line 55, in load
mod = importlib.import_module(mod_name)
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line [72](https://github.com/PyTorchLightning/pytorch-lightning/runs/5252696654?check_suite_focus=true#step:17:72)8, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/gym/envs/classic_control/__init__.py", line 1, in <module>
from gym.envs.classic_control.cartpole import CartPoleEnv
File "/opt/hostedtoolcache/Python/3.7.12/x64/lib/python3.7/site-packages/gym/envs/classic_control/cartpole.py", line 10, in <module>
import pygame
ModuleNotFoundError: No module named 'pygame'
/home/runner/work/pytorch-lightning/pytorch-lightning/pl_examples/domain_templates/reinforce_learn_Qnet.py:218: UnexpectedException
Hey, the release just requires using pip install gym[toy_text] for those environments now is all. Every set of environments in gym used to require this but toy_text, and 0.22.0 added a dependency for toy_text for the first time so now it has to be used then too (we added conscionable rendering with pygame since these are used heavily in education and so on: https://www.gymlibrary.ml/pages/environments/toy_text/).
Uh oh!
There was an error while loading. Please reload this page.
Multiple CI jobs are failing with this error:
Example job: https://github.com/PyTorchLightning/pytorch-lightning/runs/5252696654?check_suite_focus=true
The failing jobs are all using "latest" rather than "oldest" - what is this referring to?

cc @carmocca @akihironitta @Borda
The text was updated successfully, but these errors were encountered: