I’m facing an issue with my Python project structure. When I attempt to import a module from engine.py, I encounter a ModuleNotFoundError sqla. I’ve reviewed my project structure, which you can see in the image linked below. This error has also occurred in another project of mine, and I’m unsure how to resolve it. Any guidance on how to fix this would be greatly appreciated. Thank you!
When using import
python looks for the module you are trying to import in your active directory. To be able to import get_engine
add this code before your import
from sys import path
path.append("path/to/sqla")
2