azureml-examples
azureml-examples copied to clipboard
[BUG] ImportError: cannot import name 'case_insensitive_dict' from 'azure.core.utils'
Which example? Describe the issue
example: image_classification_keras_minist_convnet.ipynb
description: I am unable to run this example as from azure.ai.ml import MLClient in the first cell throws an import error.
Additional context
I am running this example in the default Python 3.8 - AzureML kernel in Azure ML Studio. I recieve the same error if I follow the environment setup instructions on my local machine.
Just in case I've somehow screwed up my environment, here is a pip freeze
Went in to same issue When trying this examle https://docs.microsoft.com/en-us/azure/machine-learning/v1/tutorial-pipeline-python-sdk
For train.py which should be running on cpu-cluster, the default yml file seems missed some references. In https://github.com/Azure/azure-cli/issues/23267 , for v1 sdk, what is the suggested version of azureml.core (I believe this has some connection with the issue above and needs a higher version of azure.core)?
We just started seeing the same issue in our automated tests that import a file that contains from azureml.core import Run

Any update on this issue?
Any update on this issue?
Is this issue being worked upon? Still exists!
Is there an update on the issue? The issue still exists and is more prominent with newer versions.
The following issue with Azure ML notebooks using Serverless Spark Compute or custom Computes was fixed by upgrading azure core and msrest libraries.
ImportError: cannot import name 'case_insensitive_dict' from 'azure.core.utils._utils' (/home/trusted-service-user/cluster-env/env/lib/python3.8/site-packages/azure/core/utils/_utils.py)
azure-core-1.29.3
msrest-0.7.1
this update fixed the issue with case_insensitive_dict, now facing new error
---> 10 from typing_extensions import Concatenate, ParamSpec, Self
ImportError: cannot import name 'Self' from 'typing_extensions' (/home/trusted-service-user/cluster-env/env/lib/python3.8/site-packages/typing_extensions.py)