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

No module named 'space' #1

Closed
liruiluo opened this issue Jun 7, 2023 · 2 comments
Closed

No module named 'space' #1

liruiluo opened this issue Jun 7, 2023 · 2 comments

Comments

@liruiluo
Copy link

liruiluo commented Jun 7, 2023

when I use :python main.py --task train --config configs/atari_spaceinvaders.yaml resume True device 'cuda:0'
then the following error happened:
Traceback (most recent call last):
File "main.py", line 1, in
from engine.utils import get_config
File "/home/l/Downloads/DiffSES/space/engine/utils.py", line 4, in
from space.config import cfg
ModuleNotFoundError: No module named 'space'

@farhanfuadabir
Copy link

Hi,

I was trying to run the code as well and got a similar error message. Trace the error message for the lines with dependencies error. For example, here, check the file "/home/l/Downloads/DiffSES/space/engine/utils.py", line 4, and locate

from space.config import cfg

change it to:

from config import cfg

Then you will probably get more of such errors. Just change accordingly.

Hope it helps.

@liruiluo
Copy link
Author

你好,

我也试图运行代码并收到类似的错误消息。跟踪具有依赖项错误的行的错误消息。比如这里,查看文件“/home/l/Downloads/DiffSES/space/engine/utils.py”,第4行,定位

from space.config import cfg

将其更改为:

from config import cfg

然后你可能会得到更多这样的错误。只是相应地改变。

希望能帮助到你。

Thanks!That works for me!

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