-
Notifications
You must be signed in to change notification settings - Fork 11
Problem with importing azure.eventhub.extensions.checkpointstoreblob #56
Comments
Yep unfortunately they are not following the namespace conventions. The culprit is indeed
From the namespace docs:
We cannot fix this on our side because, unlike pip, we don't install all the packages into a single directory. It seems like it is currently depending on that behaviour to function. Interestingly, the wheel for
Both |
Thank you @dillon-giacoppo for the reply! Is there any workaround I can apply, apart from requesting Azure to follow namespace convention? |
There is no simple workaround that I know of because you have to literally remove that file to make it work. As noted in PEP-420, the resolver does the following:
So it will always return the package from |
@dillon-giacoppo Thank you very much! |
I am not sure if the problem should by fixed on Azure package design or can be fixed in this project.
I have a problem with azure.eventhub.extensions.checkpointstoreblob. Attempt to import it ends with an error
What I suspect, having limited knowledge about Python packaging machinery, azure-eventhub-checkpointstoreblob has dependency on azure-eventhub. The azure-eventhub contains directory
azure/eventhub/extensions
consisting only__init__.py
which terminates search for azure.eventhub.extensions package:To reproduce the problem one needs four files in the same directory: WORKSPACE, BUILD, requirements.txt, and main.py:
WORKSPACE (same as in the example directory):
BUILD:
requirements.txt:
main.py:
The text was updated successfully, but these errors were encountered: