Failed to Deploy a Service and Error "No Module named XXX" Occurred
Symptom
Deploying a service failed. The system displays error message "No Module named XXX".
Possible Causes
"No Module named XXX" indicates that the dependency module is not imported to the model.
Solution
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
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot