Skip to content
Advertisement

ImportError: cannot import name ‘ServiceBusClient’ from ‘azure.servicebus’

I wanna run a simple Azure service bus program, I received the below error:

JavaScript

As I search on the internet, I should install Azure service bus and also I installed. My Python version: 3.8.9 My pip freeze:

JavaScript

My code:

JavaScript

Advertisement

Answer

This problem is caused by incompatible versions. You can install the lower version of azure.servicebus:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement