I have the next directory structure:
.
├── models
│ ├── description.py
│ ├── identification.py
│ └── person.py
└── utils
└── generators
└── person.py
I'm getting the next error while importing the classes in each file that exist within the models
directory:
Traceback (most recent call last):
File "utils/generators/person.py", line 1, in <module>
from models.person import Person
ModuleNotFoundError: No module named 'models'
And this is the code in my utils/generators/person.py
file:
from models.person import Person
from models.identification import Identification
from models.description import Description
How can I import those classes in my file?