The structure of my project is as follows:
root
src
folder1
file1.py
file2.py
folder2
file1.py
main.py
.env
In the main.py
file, when trying the following import statement from .src.folder1.file1 import ClassName
, I get the following error:
ImportError: attempted relative import with no known parent package
Is there something wrong with my import statement, or should I modify something in my file structure in order to get it to work?