Deploy model on AKS ModuleNotFoundError: No module named 'main'

GISO Nicolò 1 Reputation point

When trying to deploy a model on AKS an error occurs.
The traceback is the following:
Exception in worker process
Traceback (most recent call last):
File "/azureml-envs/azureml_828a57093157f4d4d37377511c7dd8a0/lib/python3.7/site-packages/gunicorn/", line 583, in spawn_worker
File "/azureml-envs/azureml_828a57093157f4d4d37377511c7dd8a0/lib/python3.7/site-packages/gunicorn/workers/", line 129, in init_process
File "/azureml-envs/azureml_828a57093157f4d4d37377511c7dd8a0/lib/python3.7/site-packages/gunicorn/workers/", line 138, in load_wsgi
self.wsgi =
File "/azureml-envs/azureml_828a57093157f4d4d37377511c7dd8a0/lib/python3.7/site-packages/gunicorn/app/", line 67, in wsgi
self.callable = self.load()
File "/azureml-envs/azureml_828a57093157f4d4d37377511c7dd8a0/lib/python3.7/site-packages/gunicorn/app/", line 52, in load
return self.load_wsgiapp()
File "/azureml-envs/azureml_828a57093157f4d4d37377511c7dd8a0/lib/python3.7/site-packages/gunicorn/app/", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/azureml-envs/azureml_828a57093157f4d4d37377511c7dd8a0/lib/python3.7/site-packages/gunicorn/", line 350, in import_app
File "/var/azureml-server/", line 1, in <module>
import create_app
File "/var/azureml-server/", line 4, in <module>
from routes_common import main
File "/var/azureml-server/", line 32, in <module>
from aml_blueprint import AMLBlueprint
File "/var/azureml-server/", line 29, in <module>
import main
ModuleNotFoundError: No module named 'main'

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,539 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,606 Reputation points

    Thanks for the details. The product team is checking on this and updates at the following link for the same.

    0 comments No comments