How to read Excel workbook using 'abfss' file_path in Azure Synapse?

Miroslav Muras 25 Reputation points
2023-06-16T19:50:14.46+00:00

Hi,

I need help reading the Excel workbook, with multiple sheets stored in Azure Synapse Data Lake gen2. Until recently, my Python script using the Pandas library worked fine. But now I am getting this error :

AttributeError: module 'fsspec_wrapper' has no attribute 'AzureBlobFileSystem.'

While executing to gram the workbook with all sheets-->

data = (f"abfss://{CONTAINER_NAME}@{STORAGE_ACCOUNT_NAME}.dfs.core.windows.net/{file_path}")

df = pd.read_excel(file_path=data, sheet_name=None)

Both fsspec & fsspec_wrapper dependencies are installed in Azure Synapse.

fsspec @ file:///home/conda/fe

edstock_root/build_artifacts/fsspec_1624452401871/work

fsspec-wrapper==0.1.10 (I tried to update this attribute to the newest version but was not able)

Please help. Thank you.

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,559 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,361 questions
0 comments No comments
{count} votes

Accepted answer
  1. Bhargava-MSFT 31,256 Reputation points Microsoft Employee Moderator
    2023-06-19T23:42:55.8733333+00:00

    Hello @Miroslav Muras

    Welcome to the MS Q&A platform.

    It seems like the package fsspec is not the latest.
    Please update the package
    pip install fsspec=="package version number"
    A similar issue discussed here
    I hope this helps. Please let us know if you have any further questions.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.