ModuleNotFoundError: No module named 'services'
Totally new to Python, please pardon for this stupid question. I'm following a nice tutorial which has this structure:
deskew_service.py
has this line looks perfect as it tries to import from another file in the same folder where it has class GraphicsService():
After reading other SO posts, Python 3.x would use from .<folder/package> import <classname>
, but from .services import GraphicsService
still the same.
Running this script tests\test_deskew.py contains the following got ModuleNotFoundError: No module named 'services'
Python v 3.9.5
Thanks to @furas and @jakub. Here are the "how":
from .graphics_service import GraphicsService
.from ..services import DeskewService
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With