https://dagster.io/ logo
#ask-community
Title
# ask-community
b

Bernardo Cortez

06/06/2022, 4:57 PM
When trying to import
DataLakeServiceClient
using
from azure.storage.filedatalake import DataLakeServiceClient
I get the following error:
File "/tmp/tmpqxk27irl/cashback_spark/utilities/service_client.py", line 4, in <module>
from azure.storage.filedatalake import DataLakeServiceClient
File "/databricks/python_shell/dbruntime/PythonPackageImportsInstrumentation/__init__.py", line 158, in import_patch
original_result = python_builtin_import(name, globals, locals, fromlist, level)
File "/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/__init__.py", line 7, in <module>
from ._download import StorageStreamDownloader
File "/databricks/python_shell/dbruntime/PythonPackageImportsInstrumentation/__init__.py", line 158, in import_patch
original_result = python_builtin_import(name, globals, locals, fromlist, level)
File "/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_download.py", line 7, in <module>
from ._models import FileProperties
File "/databricks/python_shell/dbruntime/PythonPackageImportsInstrumentation/__init__.py", line 158, in import_patch
original_result = python_builtin_import(name, globals, locals, fromlist, level)
File "/databricks/python/lib/python3.8/site-packages/azure/storage/filedatalake/_models.py", line 18, in <module>
from azure.storage.blob._generated.models import StorageErrorException
ImportError: cannot import name 'StorageErrorException' from 'azure.storage.blob._generated.models' (/databricks/python/lib/python3.8/site-packages/azure/storage/blob/_generated/models/__init__.py)
This was working before, so I guess there has been some kind of misintegration of any of the latest releases?
j

johann

06/06/2022, 5:24 PM
Hmm odd. Maybe there’s a compatibility issue between your databricks and azure client versions? Surfacing to the rest of the team incase anyone is familiar
j

jamie

06/06/2022, 5:37 PM
looks like azure did a python sdk release 9 hours ago so it could be a version incompatibility. still looking to see if anyone else is reporting an issue
😮 1
b

Bernardo Cortez

06/08/2022, 9:24 AM
Thanks for your help! How can I tackle that azure's release?
j

jamie

06/08/2022, 6:52 PM
i'd probably start by manually downgrading
azure-storage
and seeing if the error goes away just to be sure that it's on azure's end
👍 1
b

Bernardo Cortez

06/15/2022, 3:56 PM
It went as it came.... Did nothing and solved it 😄
3 Views