-
-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure servicebus transport has hidden dependency on azure-identity package #2045
Comments
@jasonwbarnett hey friend - can you check this out please? |
Hi! Seems like this is the same issue I found on #1947 |
@Korijn @jesusgarmanz any of you want to offer a PR to fix this issue? 🙂 |
@Nusnus I got this. |
This break was introduced in #1801, not #1641 You know what. The original intent was to make this optional. In other words, don't force azure-identity down people's throats. They should only install it, optionally, if they require the use of either of the new features introduced in #1641 That said, I could update the code to throw an exception detailing what steps are necessary if they wish to use it and update the docs. I don't think adding a forced requirement makes sense here. Thoughts? |
Yeah, that's what I said:
But it's implemented in a way that it isn't actually optional. |
@Korijn I would like input from @marnikow. He introduced the |
Actually, I just hacked this into place. This should work now. |
The azure-servicebus transport depends on azure-identity package, even though it is not listed:
kombu/requirements/extras/azureservicebus.txt
Line 1 in d620132
It looks like the code intends for it to be optional:
kombu/kombu/transport/azureservicebus.py
Lines 72 to 77 in d620132
But of course it crashes here when (effectively) calling
isinstance(..., None)
kombu/kombu/transport/azureservicebus.py
Lines 140 to 146 in d620132
This problem was introduced in
#1641#1801The text was updated successfully, but these errors were encountered: