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

ModuleNotFoundError: No module named 'utils.repository' #1

Open
xiongxiong1996 opened this issue Jan 2, 2023 · 1 comment
Open

Comments

@xiongxiong1996
Copy link

I followed the steps inscribed to install it, but there was a problem :ModuleNotFoundError: No module named 'utils.repository'.
Is there a problem with my path settings?

(hawkeye) root:/tmp/pycharm_project_Hawkeye/Hawkeye# python Examples/APINet.py --config configs/APINet.yaml
Traceback (most recent call last):
File "Examples/APINet.py", line 8, in
from model.loss.APINet_loss import APINetLoss
File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/init.py", line 1, in
from .methods import *
File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/methods/init.py", line 1, in
from .BCNN import BCNN
File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/methods/BCNN.py", line 3, in
from model.backbone import vgg16
File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/backbone/init.py", line 1, in
from .vgg import vgg11, vgg13, vgg16, vgg19, vgg11_bn, vgg13_bn, vgg16_bn, vgg19_bn
File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/backbone/vgg.py", line 7, in
from model.registry import BACKBONE
File "/tmp/pycharm_project_Hawkeye/Hawkeye/model/registry.py", line 1, in
from utils.repository import Repository
ModuleNotFoundError: No module named 'utils.repository'

@xiongxiong1996
Copy link
Author

I found that there was a problem with sys.path,
I ran it fine with pycharm, but the command didn't.

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

1 participant