From 36defe9881aae28abb3fb076485f8077870e14db 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 (cherry picked from commit 3310b8628e34578d16d2afbea3809ae422cd6d76) --- 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 31a8beb99c79a..c5e413e1e7679 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 257d50a6f8fb2..6fb098acd784a 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