From 2fafc3699acdf6bf673bc7524e35fd661aad8ea6 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 9 Sep 2024 22:18:42 +0300 Subject: [PATCH] moved azure.storage.filedatalake --- src/sempy_labs/_helper_functions.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sempy_labs/_helper_functions.py b/src/sempy_labs/_helper_functions.py index b69fa946..a5578d16 100644 --- a/src/sempy_labs/_helper_functions.py +++ b/src/sempy_labs/_helper_functions.py @@ -13,7 +13,6 @@ from sempy.fabric.exceptions import FabricHTTPException import urllib.parse from azure.core.credentials import TokenCredential, AccessToken -from azure.storage.filedatalake import DataLakeServiceClient def create_abfss_path( @@ -890,7 +889,10 @@ def get_token( return access_token -def get_adls_client(account_name) -> DataLakeServiceClient: +def get_adls_client(account_name): + + from azure.storage.filedatalake import DataLakeServiceClient + account_url = f"https://{account_name}.dfs.core.windows.net" service_client = DataLakeServiceClient(