azureml-examples icon indicating copy to clipboard operation
azureml-examples copied to clipboard

[BUG] ImportError: cannot import name 'case_insensitive_dict' from 'azure.core.utils'

Open eschibli opened this issue 3 years ago • 2 comments
trafficstars

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

eschibli avatar Jul 18 '22 17:07 eschibli

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)?

YihuiGuo avatar Sep 10 '22 17:09 YihuiGuo

We just started seeing the same issue in our automated tests that import a file that contains from azureml.core import Run image

cabillin avatar Sep 12 '22 21:09 cabillin

Any update on this issue?

jainr avatar Oct 20 '22 04:10 jainr

Any update on this issue?

dagrooms52 avatar Apr 28 '23 16:04 dagrooms52

Is this issue being worked upon? Still exists!

bhatsuchi08 avatar May 04 '23 05:05 bhatsuchi08

Is there an update on the issue? The issue still exists and is more prominent with newer versions.

aayushsin avatar Jun 13 '23 09:06 aayushsin

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)

praveentn avatar Aug 25 '23 09:08 praveentn