Closed ClonedOne closed 5 years ago
Hello, thanks for raising the issue, i would appreciate a pr with the proposed fix ;) (and pybullet is already present in the install instructions)
Fair point, my bad, the dependency is stated in the instructions, I should have read them more carefully.
However, I don't really see any reason why it shouldn't be possible to run enjoy.py
without pybullet for the other environments :)
If you still think it may be useful I can send the pr.
yes, please do
Describe the bug
enjoy.py
launches aModuleNotFoundError: No module named 'pybullet_envs'
even when operating only on atari environments.Code example
python enjoy.py --algo a2c --env BreakoutNoFrameskip-v4 --folder trained_agents/ -n 5000
System Info
Additional context From the code of
enjoy.py
it seemed that the import ofpybullet_envs
is guarded, however the module raises the exception anyway.The full trace of the exception is:
So the problem is an unguarded
import
inrl-baselines-zoo/utils/utils.py
Easy fix would be to just wrap the
import
in theutils.py
module, otherwisepybullet
could be listed as a required dependency.