Deploying a service failed. The system displays error message "No Module named XXX".
"No Module named XXX" indicates that the dependency module is not imported to the model.
Import the required dependency module to the model through inference code.
For example, when you attempt to deploy a PyTorch AI application as a real-time service, the system displays error message "ModuleNotFoundError: No module named 'model_service.tfserving_model_service'". In this case, configure "from model_service.pytorch_model_service import PTServingBaseService" in customize_service.py. Example code:
import log from model_service.pytorch_model_service import PTServingBaseService