Farama-Foundation / Minigrid

Simple and easily configurable grid world environments for reinforcement learning
https://minigrid.farama.org/
Other
2.13k stars 610 forks source link

[Bug Report] ModuleNotFoundError #243

Closed loveisacat closed 2 years ago

loveisacat commented 2 years ago

If you are submitting a bug report, please fill in the following details and use the tag [bug].

I installed the latest version of minigrid according to the README.md file. I have the following problem, could this be caused by the latest rename changes?

Describe the bug (maze) a123@MacBookPro MiniGrid % ./minigrid/manual_control.py Traceback (most recent call last): File "/Users/a123/Documents/codebase/MiniGrid/./minigrid/manual_control.py", line 3, in import gym File "/opt/homebrew/lib/python3.9/site-packages/gym/init.py", line 15, in from gym.envs import make, spec, register File "/opt/homebrew/lib/python3.9/site-packages/gym/envs/init.py", line 5, in _load_env_plugins() File "/opt/homebrew/lib/python3.9/site-packages/gym/envs/registration.py", line 305, in load_env_plugins fn = plugin.load() File "/opt/homebrew/lib/python3.9/site-packages/importlib_metadata-4.12.0-py3.9.egg/importlib_metadata/init.py", line 203, in load module = import_module(match.group('module')) File "/opt/homebrew/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/Users/a123/Documents/codebase/MiniGrid/minigrid/minigrid.py", line 13, in from minigrid.rendering import ( ModuleNotFoundError: No module named 'minigrid.rendering'; 'minigrid' is not a package

Code example Please try to provide a minimal example to reproduce the bug. Error messages and stack traces are also helpful.

System Info Describe the characteristic of your environment:

Checklist

pseudo-rnd-thoughts commented 2 years ago

Thanks for spotting this, this was fixed in #244