Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] ModuleNotFoundError #243

Closed
1 task
loveisacat opened this issue Sep 27, 2022 · 1 comment
Closed
1 task

[Bug Report] ModuleNotFoundError #243

loveisacat opened this issue Sep 27, 2022 · 1 comment

Comments

@loveisacat
Copy link

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:

  • Describe how minigrid was installed (pip, docker, source, ...)
    pip install as README
  • What OS/version of Linux you're using. Note that while we will accept PRs to improve Window's support, we do not officially support it.
    MacOS Monterey 12.5.1
  • Python version
    Python 3.9.13

Checklist

  • I have checked that there is no similar issue in the repo (required)
@rodrigodelazcano rodrigodelazcano mentioned this issue Sep 27, 2022
10 tasks
pseudo-rnd-thoughts pushed a commit that referenced this issue Sep 27, 2022
@pseudo-rnd-thoughts
Copy link
Member

Thanks for spotting this, this was fixed in #244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants