- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 03:04 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2025 03:43 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 04:17 AM
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