This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.35k
stars
2.71k
forks
source link
Missing websocket-client dependency for azure-servicebus #36256
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "<path to env>\.venv\Lib\site-packages\azure\servicebus\_pyamqp\_transport.py", line 731, in connect
raise ImportError(
ImportError: Please install websocket-client library to use sync websocket transport
I would expect the dependency to be defined as part of the package dependencies and installed when installing the azure-servicebus package.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
The workaround is simple as can just add the dependency directly. I would just expect this to be defined as part of the package dependencies, either required or as an extra.
Describe the bug
Missing
websocket-client
dependency cause azure service bus to throw an exception when using theazure-servicebus
sdkTo Reproduce
Assuming a fresh virtual env
Returns
The environment contains
Returns
Expected behavior
Expect no import error exception to be returned
I would expect the dependency to be defined as part of the package dependencies and installed when installing the azure-servicebus package.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
The workaround is simple as can just add the dependency directly. I would just expect this to be defined as part of the package dependencies, either required or as an extra.