From 3310b8628e34578d16d2afbea3809ae422cd6d76 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Wed, 18 Dec 2024 17:36:44 +0100 Subject: [PATCH] Avoid 1.1.8 version of msgraph-core (#45044) The 1.1.8 version of msgraph-core is buggy - importing some basic classes causes import error "ABCMeta" is not subscriptable. We are removing the version from azure provider dependencies hoping that it will be fixed in the next version. https://github.com/microsoftgraph/msgraph-sdk-python-core/issues/781 --- generated/provider_dependencies.json | 2 +- providers/src/airflow/providers/microsoft/azure/provider.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/generated/provider_dependencies.json b/generated/provider_dependencies.json index 7a9307ade337f..9a1e89cee5b82 100644 --- a/generated/provider_dependencies.json +++ b/generated/provider_dependencies.json @@ -838,7 +838,7 @@ "microsoft-kiota-http>=1.3.0,!=1.3.4", "microsoft-kiota-serialization-json==1.0.0", "microsoft-kiota-serialization-text==1.0.0", - "msgraph-core>=1.0.0" + "msgraph-core>=1.0.0,!=1.1.8" ], "devel-deps": [ "pywinrm>=0.4" diff --git a/providers/src/airflow/providers/microsoft/azure/provider.yaml b/providers/src/airflow/providers/microsoft/azure/provider.yaml index 5f42247ee2011..f161c33314721 100644 --- a/providers/src/airflow/providers/microsoft/azure/provider.yaml +++ b/providers/src/airflow/providers/microsoft/azure/provider.yaml @@ -109,7 +109,9 @@ dependencies: - azure-mgmt-datafactory>=2.0.0 - azure-mgmt-containerregistry>=8.0.0 - azure-mgmt-containerinstance>=10.1.0 - - msgraph-core>=1.0.0 + # msgraph-core 1.1.8 has a bug which causes ABCMeta object is not subscriptable error + # See https://github.com/microsoftgraph/msgraph-sdk-python-core/issues/781 + - msgraph-core>=1.0.0,!=1.1.8 # msgraph-core has transient import failures with microsoft-kiota-http==1.3.4 # See https://github.com/microsoftgraph/msgraph-sdk-python-core/issues/706 - microsoft-kiota-http>=1.3.0,!=1.3.4