Title: Deployment Failure| Cannot import name 'COMPUTE_TYPE_KEY'. · Issue #234 · microsoft/MLOpsPython · GitHub
Open Graph Title: Deployment Failure| Cannot import name 'COMPUTE_TYPE_KEY'. · Issue #234 · microsoft/MLOpsPython
X Title: Deployment Failure| Cannot import name 'COMPUTE_TYPE_KEY'. · Issue #234 · microsoft/MLOpsPython
Description: I'm experiencing an error while trying to deploy the sample ML Model on ACI/AKS. This is the log for the Model deployment on AKS 2020-03-13T09:59:39.3192490Z ##[section]Starting: Azure ML Model Deploy 2020-03-13T09:59:39.3202122Z =======...
Open Graph Description: I'm experiencing an error while trying to deploy the sample ML Model on ACI/AKS. This is the log for the Model deployment on AKS 2020-03-13T09:59:39.3192490Z ##[section]Starting: Azure ML Model Dep...
X Description: I'm experiencing an error while trying to deploy the sample ML Model on ACI/AKS. This is the log for the Model deployment on AKS 2020-03-13T09:59:39.3192490Z ##[section]Starting: Azure ML Model...
Opengraph URL: https://github.com/microsoft/MLOpsPython/issues/234
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deployment Failure| Cannot import name 'COMPUTE_TYPE_KEY'.","articleBody":"### I'm experiencing an error while trying to deploy the sample ML Model on ACI/AKS. This is the log for the Model deployment on AKS\r\n\r\n\r\n2020-03-13T09:59:39.3192490Z ##[section]Starting: Azure ML Model Deploy\r\n2020-03-13T09:59:39.3202122Z ==============================================================================\r\n2020-03-13T09:59:39.3202907Z Task : AzureML Model Deploy\r\n2020-03-13T09:59:39.3203403Z Description : AzureML Deploy Model\r\n2020-03-13T09:59:39.3203836Z Version : 0.8.20\r\n2020-03-13T09:59:39.3204272Z Author : ms-air-aiagility\r\n2020-03-13T09:59:39.3205010Z Help : https://marketplace.visualstudio.com/items?itemName=ms-air-aiagility.private-vss-services-azureml\u0026ssr=false#overview\r\n2020-03-13T09:59:39.3205673Z ==============================================================================\r\n2020-03-13T09:59:39.7985527Z Current Working Directory is : /__w/1/s\r\n2020-03-13T09:59:39.7986831Z Desired Working Directory is : /__w/1/s/diabetes_regression/scoring\r\n2020-03-13T09:59:39.7987391Z Setting Working Directory ......\r\n2020-03-13T09:59:39.7993718Z /__w/1/s/diabetes_regression/scoring /__w/1/s\r\n2020-03-13T09:59:39.7994421Z Current Working Directory : /__w/1/s/diabetes_regression/scoring\r\n2020-03-13T09:59:39.8059477Z ##[warning]Resource file haven\\'t set, can\\'t find loc string for key: AmlCliNotAvailable\r\n2020-03-13T09:59:39.8072218Z [command]/usr/local/envs/mlopspython_ci/bin/az ml -h\r\n2020-03-13T09:59:40.4705260Z ERROR: az: 'ml' is not in the 'az' command group. See 'az --help'. If the command is from an extension, please make sure the corresponding extension is installed. To learn more about extensions, please visit https://docs.microsoft.com/en-us/cli/azure/azure-cli-extensions-overview\r\n2020-03-13T09:59:40.4706314Z No AzureML CLI installed.\r\n2020-03-13T09:59:40.4714830Z [command]/usr/local/envs/mlopspython_ci/bin/az extension add -n azure-cli-ml\r\n2020-03-13T09:59:54.5377696Z [command]/usr/local/envs/mlopspython_ci/bin/az ml -h\r\n2020-03-13T09:59:56.1414052Z \r\n2020-03-13T09:59:56.1414981Z Group\r\n2020-03-13T09:59:56.1415305Z az ml : Azureml._cli commands.\r\n2020-03-13T09:59:56.1415550Z \r\n2020-03-13T09:59:56.1415820Z Subgroups:\r\n2020-03-13T09:59:56.1416127Z computetarget : Computetarget subgroup commands.\r\n2020-03-13T09:59:56.1416731Z dataset : Commands for managing datasets in Azure Machine Learning Workspace.\r\n2020-03-13T09:59:56.1418039Z datastore : Commands for managing and using datastores with the Azure ML Workspace.\r\n2020-03-13T09:59:56.1418669Z endpoint : Manage machine learning endpoints.\r\n2020-03-13T09:59:56.1419359Z environment : Commands to manage environments.\r\n2020-03-13T09:59:56.1419871Z experiment : Commands to manage experiments.\r\n2020-03-13T09:59:56.1420389Z folder : Folder subgroup commands.\r\n2020-03-13T09:59:56.1421086Z model : Manage machine learning models.\r\n2020-03-13T09:59:56.1421609Z pipeline : Pipeline subgroup commands.\r\n2020-03-13T09:59:56.1422167Z run : Commands for submitting, updating, and monitoring runs.\r\n2020-03-13T09:59:56.1422732Z service : Manage operationalized services.\r\n2020-03-13T09:59:56.1423543Z workspace : Workspace subgroup commands.\r\n2020-03-13T09:59:56.1423917Z \r\n2020-03-13T09:59:56.1424353Z Please let us know how we are doing: https://aka.ms/clihats\r\n2020-03-13T09:59:56.1439294Z [command]/usr/local/envs/mlopspython_ci/bin/az login --service-principal -u *** -p *** --tenant ***\r\n2020-03-13T09:59:58.0916080Z [\r\n2020-03-13T09:59:58.0916581Z {\r\n2020-03-13T09:59:58.0916802Z \"cloudName\": \"AzureCloud\",\r\n2020-03-13T09:59:58.0917705Z \"id\": \"f88195e4-48f1-4882-9a6f-de3738ed55ac\",\r\n2020-03-13T09:59:58.0918229Z \"isDefault\": true,\r\n2020-03-13T09:59:58.0918659Z \"name\": \"Enginuity CSP\",\r\n2020-03-13T09:59:58.0918966Z \"state\": \"Enabled\",\r\n2020-03-13T09:59:58.0919872Z \"tenantId\": \"***\",\r\n2020-03-13T09:59:58.0920212Z \"user\": {\r\n2020-03-13T09:59:58.0920844Z \"name\": \"***\",\r\n2020-03-13T09:59:58.0921156Z \"type\": \"servicePrincipal\"\r\n2020-03-13T09:59:58.0921434Z }\r\n2020-03-13T09:59:58.0921660Z }\r\n2020-03-13T09:59:58.0921887Z ]\r\n2020-03-13T09:59:58.0926475Z ##[warning]Resource file haven\\'t set, can\\'t find loc string for key: LoginFailed\r\n2020-03-13T09:59:58.0976163Z [command]/usr/local/envs/mlopspython_ci/bin/az account set --subscription f88195e4-48f1-4882-9a6f-de3738ed55ac\r\n2020-03-13T09:59:59.7655554Z ##[warning]Resource file haven\\'t set, can\\'t find loc string for key: ErrorInSettingUpSubscription\r\n2020-03-13T09:59:59.7659066Z From service connection: resource group = FAenginuity workspace = mlops-AML-WS\r\n2020-03-13T09:59:59.7678276Z Cannot find result.json for the model profile result.\r\n2020-03-13T09:59:59.7681149Z Command: az ml model deploy --ct aks-compute -n aks-deployment --model diabetes_regression_model.pkl:1 --ic /__w/1/s/diabetes_regression/scoring/inference_config.yml --dc /__w/1/s/diabetes_regression/scoring/deployment_config_aks.yml -g FAenginuity -w mlops-AML-WS --overwrite\r\n2020-03-13T09:59:59.7711017Z [command]/usr/local/envs/mlopspython_ci/bin/az ml model deploy --ct aks-compute -n aks-deployment --model diabetes_regression_model.pkl:1 --ic /__w/1/s/diabetes_regression/scoring/inference_config.yml --dc /__w/1/s/diabetes_regression/scoring/deployment_config_aks.yml -g FAenginuity -w mlops-AML-WS --overwrite\r\n2020-03-13T10:00:01.3760399Z ERROR: The command failed with an unexpected error. Here is the traceback:\r\n2020-03-13T10:00:01.3765502Z \r\n2020-03-13T10:00:01.3767886Z ERROR: cannot import name 'COMPUTE_TYPE_KEY' from 'azureml._model_management._constants' (/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azureml/_model_management/_constants.py)\r\n2020-03-13T10:00:01.3768528Z Traceback (most recent call last):\r\n2020-03-13T10:00:01.3769138Z File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/knack/cli.py\", line 206, in invoke\r\n2020-03-13T10:00:01.3769574Z cmd_result = self.invocation.execute(args)\r\n2020-03-13T10:00:01.3770221Z File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py\", line 528, in execute\r\n2020-03-13T10:00:01.3770684Z self.commands_loader.load_arguments(command)\r\n2020-03-13T10:00:01.3771330Z File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/__init__.py\", line 299, in load_arguments\r\n2020-03-13T10:00:01.3771865Z self.command_table[command].load_arguments() # this loads the arguments via reflection\r\n2020-03-13T10:00:01.3772571Z File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py\", line 291, in load_arguments\r\n2020-03-13T10:00:01.3773038Z super(AzCliCommand, self).load_arguments()\r\n2020-03-13T10:00:01.3773650Z File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/knack/commands.py\", line 97, in load_arguments\r\n2020-03-13T10:00:01.3774076Z cmd_args = self.arguments_loader()\r\n2020-03-13T10:00:01.3774718Z File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/__init__.py\", line 496, in default_arguments_loader\r\n2020-03-13T10:00:01.3775429Z op = handler or self.get_op_handler(operation, operation_group=kwargs.get('operation_group'))\r\n2020-03-13T10:00:01.3776389Z File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/__init__.py\", line 536, in get_op_handler\r\n2020-03-13T10:00:01.3776832Z op = import_module(mod_to_import)\r\n2020-03-13T10:00:01.3777235Z File \"/usr/local/envs/mlopspython_ci/lib/python3.7/importlib/__init__.py\", line 127, in import_module\r\n2020-03-13T10:00:01.3777694Z return _bootstrap._gcd_import(name[level:], package, level)\r\n2020-03-13T10:00:01.3778098Z File \"\u003cfrozen importlib._bootstrap\u003e\", line 1006, in _gcd_import\r\n2020-03-13T10:00:01.3778476Z File \"\u003cfrozen importlib._bootstrap\u003e\", line 983, in _find_and_load\r\n2020-03-13T10:00:01.3778888Z File \"\u003cfrozen importlib._bootstrap\u003e\", line 967, in _find_and_load_unlocked\r\n2020-03-13T10:00:01.3779301Z File \"\u003cfrozen importlib._bootstrap\u003e\", line 677, in _load_unlocked\r\n2020-03-13T10:00:01.3779700Z File \"\u003cfrozen importlib._bootstrap_external\u003e\", line 728, in exec_module\r\n2020-03-13T10:00:01.3780118Z File \"\u003cfrozen importlib._bootstrap\u003e\", line 219, in _call_with_frames_removed\r\n2020-03-13T10:00:01.3780773Z File \"/home/vsts_azpcontainer/.azure/cliextensions/azure-cli-ml/azext_ml/model.py\", line 8, in \u003cmodule\u003e\r\n2020-03-13T10:00:01.3781368Z from ._util import cli_context, collect_input_models, file_stream_to_object, \\\r\n2020-03-13T10:00:01.3782026Z File \"/home/vsts_azpcontainer/.azure/cliextensions/azure-cli-ml/azext_ml/_util.py\", line 25, in \u003cmodule\u003e\r\n2020-03-13T10:00:01.3782499Z from azureml._model_management._constants import ACI_WEBSERVICE_TYPE, \\\r\n2020-03-13T10:00:01.3783330Z ImportError: cannot import name 'COMPUTE_TYPE_KEY' from 'azureml._model_management._constants' (/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azureml/_model_management/_constants.py)\r\n2020-03-13T10:00:01.3841278Z WARNING: \r\n2020-03-13T10:00:01.3842400Z To open an issue, please run: 'az feedback'\r\n2020-03-13T10:00:01.3842892Z Output: \r\n2020-03-13T10:00:01.3849126Z ##[error]Error Code: [1]\r\n2020-03-13T10:00:01.3851776Z ##[error]Error: Failed to deploy model(s)\r\n2020-03-13T10:00:01.3893581Z { code: 1,\r\n2020-03-13T10:00:01.3896886Z error: undefined,\r\n2020-03-13T10:00:01.3897802Z stdout: '',\r\n2020-03-13T10:00:01.3954639Z stderr: 'ERROR: The command failed with an unexpected error. Here is the traceback:\\n\\nERROR: cannot import name \\'COMPUTE_TYPE_KEY\\' from \\'azureml._model_management._constants\\' (/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azureml/_model_management/_constants.py)\\nTraceback (most recent call last):\\n File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/knack/cli.py\", line 206, in invoke\\n cmd_result = self.invocation.execute(args)\\n File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py\", line 528, in execute\\n self.commands_loader.load_arguments(command)\\n File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/__init__.py\", line 299, in load_arguments\\n self.command_table[command].load_arguments() # this loads the arguments via reflection\\n File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/commands/__init__.py\", line 291, in load_arguments\\n super(AzCliCommand, self).load_arguments()\\n File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/knack/commands.py\", line 97, in load_arguments\\n cmd_args = self.arguments_loader()\\n File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/__init__.py\", line 496, in default_arguments_loader\\n op = handler or self.get_op_handler(operation, operation_group=kwargs.get(\\'operation_group\\'))\\n File \"/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azure/cli/core/__init__.py\", line 536, in get_op_handler\\n op = import_module(mod_to_import)\\n File \"/usr/local/envs/mlopspython_ci/lib/python3.7/importlib/__init__.py\", line 127, in import_module\\n return _bootstrap._gcd_import(name[level:], package, level)\\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 1006, in _gcd_import\\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 983, in _find_and_load\\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 967, in _find_and_load_unlocked\\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 677, in _load_unlocked\\n File \"\u003cfrozen importlib._bootstrap_external\u003e\", line 728, in exec_module\\n File \"\u003cfrozen importlib._bootstrap\u003e\", line 219, in _call_with_frames_removed\\n File \"/home/vsts_azpcontainer/.azure/cliextensions/azure-cli-ml/azext_ml/model.py\", line 8, in \u003cmodule\u003e\\n from ._util import cli_context, collect_input_models, file_stream_to_object, \\\\\\n File \"/home/vsts_azpcontainer/.azure/cliextensions/azure-cli-ml/azext_ml/_util.py\", line 25, in \u003cmodule\u003e\\n from azureml._model_management._constants import ACI_WEBSERVICE_TYPE, \\\\\\nImportError: cannot import name \\'COMPUTE_TYPE_KEY\\' from \\'azureml._model_management._constants\\' (/usr/local/envs/mlopspython_ci/lib/python3.7/site-packages/azureml/_model_management/_constants.py)\\nWARNING: \\nTo open an issue, please run: \\'az feedback\\'\\n' }\r\n2020-03-13T10:00:01.3980970Z Reverting to original directory.....\r\n2020-03-13T10:00:01.3981549Z /__w/1/s\r\n2020-03-13T10:00:01.4128216Z ##[section]Finishing: Azure ML Model Deploy\r\n\r\n\r\n### ERROR: cannot import name 'COMPUTE_TYPE_KEY' from 'azureml._model_management._constants' \r\n\r\n\u003cimg width=\"1182\" alt=\"Screenshot 2020-03-13 at 4 02 16 PM\" src=\"https://user-images.githubusercontent.com/19777169/76613441-20c22f80-6544-11ea-8360-7dfa99ce6011.png\"\u003e\r\n","author":{"url":"https://github.com/gdprtcl","@type":"Person","name":"gdprtcl"},"datePublished":"2020-03-13T10:33:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/234/MLOpsPython/issues/234"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:48581831-2aaf-e858-a1a2-e9a2ed5e19f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 985C:F140:199AD7A:235EA93:697CA631 |
| html-safe-nonce | 7175656db02257977dfa57ac7e06c6a85121da4b466d294e78420ed5b6814540 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODVDOkYxNDA6MTk5QUQ3QToyMzVFQTkzOjY5N0NBNjMxIiwidmlzaXRvcl9pZCI6IjI3ODA4Mzk1Mjg5MDA2MzQxNjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 38627769f3e63d0e9f2ffc39b7f6d85fa79d8558b4be54b56075801cd5ea9311 |
| hovercard-subject-tag | issue:580510915 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/MLOpsPython/234/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2227b41d69dfafa06d30fcf1d871b612aa209fea24c6babe2770aae331d41dc8/microsoft/MLOpsPython/issues/234 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2227b41d69dfafa06d30fcf1d871b612aa209fea24c6babe2770aae331d41dc8/microsoft/MLOpsPython/issues/234 |
| og:image:alt | I'm experiencing an error while trying to deploy the sample ML Model on ACI/AKS. This is the log for the Model deployment on AKS 2020-03-13T09:59:39.3192490Z ##[section]Starting: Azure ML Model Dep... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gdprtcl |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5bdfd06d077d4bc79a8063f7549f208cda3158f1322903029653dc97f57b937a |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/MLOpsPython git https://github.com/microsoft/MLOpsPython.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 168217581 |
| octolytics-dimension-repository_nwo | microsoft/MLOpsPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 168217581 |
| octolytics-dimension-repository_network_root_nwo | microsoft/MLOpsPython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f8a309d88087f59ff1a2f2cd9e9e79ed01a7b84e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width