cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

azure-storage-blob-changefeed -ModuleNotFoundError: No module named 'azure.storage.blob.changefeed'

marko_rd
New Contributor II

Added a python package azure-storage-blob-changefeed (https://pypi.org/project/azure-storage-blob-changefeed/).

But trying to access it from the notebook like this:

from azure.storage.blob.changefeed import ChangeFeedClient

raises ModuleNotFoundError.

Tried both serverless and classic clusters, but result is the same.
Tried re-attaching cluster, dbutils.library.restartPython().

When I run "%pip list", package is indeed being listed. All the other packages that are added can be imported without any problems.

Locally everything works as expected.

Any idea what is going on here?

1 ACCEPTED SOLUTION

Accepted Solutions

jjaymez
New Contributor III

Hi! thanks for answering to our question.

We tried that and it didn't work; but it gave us the idea to uninstall and install the last version azure-storage-blob, it worked after that.

For serverless clusters, the package: azure-storage-blob is coming with an old version (12.19 or similar), which seems that is not compatible with the last version of changefeed.

So, in case someone else is facing the same issue:

  • %pip install azure-storage-blob==12.25.1 (or any compatible future version)
  • %pip install azure-storage-blob-changefeed --pre
  • %restart_python
  • from azure.storage.blob.changefeed import ChangeFeedClient

View solution in original post

2 REPLIES 2

SP_6721
Contributor III

Hi @marko_rd 

As per my understanding, if the azure-storage-blob-changefeed package is installed without the --pre flag, it might not install the complete version, which can lead to the ModuleNotFoundError.

This kind of issue can also happen due to version mismatches or conflicts between notebook-scoped and cluster-scoped libraries.

You can try the following steps to resolve it:

  • Uninstall any existing version of the package:
    %pip uninstall azure-storage-blob-changefeed -y
  • Reinstall it using the pre-release flag:
    %pip install azure-storage-blob-changefeed --pre
  • Restart the Python process
  • Then try importing again.

jjaymez
New Contributor III

Hi! thanks for answering to our question.

We tried that and it didn't work; but it gave us the idea to uninstall and install the last version azure-storage-blob, it worked after that.

For serverless clusters, the package: azure-storage-blob is coming with an old version (12.19 or similar), which seems that is not compatible with the last version of changefeed.

So, in case someone else is facing the same issue:

  • %pip install azure-storage-blob==12.25.1 (or any compatible future version)
  • %pip install azure-storage-blob-changefeed --pre
  • %restart_python
  • from azure.storage.blob.changefeed import ChangeFeedClient