when I try to deploy to aci, I am getting the following error:
Starting gunicorn 19.9.0
Listening at: http://127.0.0.1:31311 (13)
Using worker: sync
worker timeout is set to 300
Booting worker with pid: 46
Exception in worker process
Traceback (most recent call last):
File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
worker.init_process()
File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process
self.load_wsgi()
File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi
self.wsgi = self.app.wsgi()
File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load
return self.load_wsgiapp()
File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp
return util.import_app(self.app_uri)
File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app
import(module)
File "/var/azureml-server/wsgi.py", line 1, in
import create_app
File "/var/azureml-server/create_app.py", line 3, in
from app import main
File "/var/azureml-server/app.py", line 31, in
import main as user_main
File "/var/azureml-app/main.py", line 12, in
driver_module_spec.loader.exec_module(driver_module)
File "/var/azureml-app/audit_anomaly/scoring/score.py", line 30, in
from azureml.core.model import Model
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/init.py", line 13, in
from .workspace import Workspace
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/workspace.py", line 34, in
from azureml.core.image import Image
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/image/init.py", line 28, in
from .image import Image
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/image/image.py", line 19, in
from azureml.core.model import Model
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/model.py", line 39, in
from azureml.core.environment import Environment
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/environment.py", line 31, in
from azureml.core.conda_dependencies import CondaDependencies, PYTHON_DEFAULT_VERSION
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/conda_dependencies.py", line 11, in
import ruamel.yaml
ModuleNotFoundError: No module named 'ruamel'
when I try to deploy to aci, I am getting the following error:
Starting gunicorn 19.9.0 Listening at: http://127.0.0.1:31311 (13) Using worker: sync worker timeout is set to 300 Booting worker with pid: 46 Exception in worker process Traceback (most recent call last): File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/workers/base.py", line 129, in init_process self.load_wsgi() File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/workers/base.py", line 138, in load_wsgi self.wsgi = self.app.wsgi() File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 52, in load return self.load_wsgiapp() File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp return util.import_app(self.app_uri) File "/opt/miniconda/lib/python3.6/site-packages/gunicorn/util.py", line 350, in import_app import(module) File "/var/azureml-server/wsgi.py", line 1, in
import create_app
File "/var/azureml-server/create_app.py", line 3, in
from app import main
File "/var/azureml-server/app.py", line 31, in
import main as user_main
File "/var/azureml-app/main.py", line 12, in
driver_module_spec.loader.exec_module(driver_module)
File "/var/azureml-app/audit_anomaly/scoring/score.py", line 30, in
from azureml.core.model import Model
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/init.py", line 13, in
from .workspace import Workspace
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/workspace.py", line 34, in
from azureml.core.image import Image
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/image/init.py", line 28, in
from .image import Image
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/image/image.py", line 19, in
from azureml.core.model import Model
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/model.py", line 39, in
from azureml.core.environment import Environment
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/environment.py", line 31, in
from azureml.core.conda_dependencies import CondaDependencies, PYTHON_DEFAULT_VERSION
File "/opt/miniconda/lib/python3.6/site-packages/azureml/core/conda_dependencies.py", line 11, in
import ruamel.yaml
ModuleNotFoundError: No module named 'ruamel'
conda_dependencies.yml: name: audit_anomaly_training_env dependencies:
The python interpreter version.
Currently Azure ML Workbench only supports 3.5.2 and later.
python=3.7.*
Required by azureml-defaults, installed separately through Conda to
get a prebuilt version and not require build tools for the install.
- psutil=5.6 #latest
pyodbc=4.0.28
Required packages for AzureML execution, history, and data preparation.
pip
pip:
Base AzureML SDK
azureml-sdk
Must match AzureML SDK version.
https://docs.microsoft.com/en-us/azure/machine-learning/concept-environments
azureml-defaults
Training deps
scikit-learn
Scoring deps
inference-schema[numpy-support]
MLOps with R
it is also strange why it shows python3.6 where it should be python 3.7.*