lifelong-learning-systems / tella

Framework for Training & Evaluating Lifelong Learning Agents (TELLA)
MIT License
3 stars 2 forks source link

ImportError: cannot import name 'DistShift2' from 'gym_minigrid.envs' #307

Closed furqon3009 closed 1 year ago

furqon3009 commented 1 year ago

I got an error when trying to run the example code for dqn agent using this command: python examples/rl_dqn_agent.py --curriculum SimpleCartPole

Then I got this error: /home/user/anaconda3/envs/tella3/lib/python3.7/site-packages/gym/envs/registration.py:307: DeprecationWarning: The package name gym_minigrid has been deprecated in favor of minigrid. Please uninstall gym_minigrid and install minigrid with pip install minigrid. Future releases will be maintained under the new package name minigrid. fn() Traceback (most recent call last): File "examples/rl_dqn_agent.py", line 35, in import tella File "/home/user/Reinfocement Learning/tella/tella/tella/init.py", line 31, in from ._curriculums import load_curriculum_registry File "/home/user/Reinfocement Learning/tella/tella/tella/_curriculums/init.py", line 23, in from tella._curriculums.minigrid.simple import SimpleStepMiniGridCurriculum File "/home/user/Reinfocement Learning/tella/tella/tella/_curriculums/minigrid/init.py", line 22, in from .simple import SimpleMiniGridCurriculum, SimpleStepMiniGridCurriculum File "/home/user/Reinfocement Learning/tella/tella/tella/_curriculums/minigrid/simple.py", line 22, in from .m21 import SimpleCrossingS9N1, DistShiftR2, DynObstaclesS6N1 File "/home/user/Reinfocement Learning/tella/tella/tella/_curriculums/minigrid/m21.py", line 26, in from gym_minigrid.envs import ( ImportError: cannot import name 'DistShift2' from 'gym_minigrid.envs' (/home/user/anaconda3/envs/tella3/lib/python3.7/site-packages/gym_minigrid/envs/init.py)

cash commented 1 year ago

Thanks for the report @furqon3009. I've fixed the dependency issue and deployed version 2.1.0 to PyPI.