xxxxxxxxxx
I guess either you didn't put any module in the target thing,
Or you spelled the module name wrong,
Or you tried to import a module from a different directory which somehow stuffed up.
If the 3rd one is the case, check this out:
https://stackoverflow.com/questions/2325923/how-to-fix-importerror-no-module-named-error-in-python
ModuleNotFoundError: No module named
xxxxxxxxxx
pip install -e <PACKAGE_DIR>
# you need to reinstall the package for every change
pip uninstall <PACKAGE_NAME> -y && pip install -e <PACKAGE_DIR>
xxxxxxxxxx
import sys
sys.path.append('..') #parent directory
sys.path.append('/home/model') # abs path
from folderA.folderB.fileA import functionA