Closed zhl98 closed 1 year ago
In the datasets
folder there is a file called data_loader.py
. The error seems to say as if it does not exist. Check that your paths are correct, that the file exists on that location and that you have the necessary permissions to run it.
The file is exist. And i also have permission to read it,
But it's strange that he just made this mistake. And the code has not been modified since the clone came down.
I just cloned a fresh version and if I do python3 -u src/main_incremental.py
it works without this error. I'm not sure why it cannot import from that file.
Maybe you can try adding a __init__.py
file? This could help with making sure that the path is visible to the interpreter.
ok,Thank you very much. After adding a init.py file ,this bug disappears.
Traceback (most recent call last): File "src/main_incremental.py", line 13, in
from datasets.data_loader import get_loaders
ModuleNotFoundError: No module named 'datasets.data_loader'