Azure-Samples / azure-samples-python-management

This repo contains sample code for management libraries of Azure SDK for Python
MIT License
164 stars 133 forks source link

Sample code giving error #73

Open amitgupta5888 opened 3 years ago

amitgupta5888 commented 3 years ago

I am trying to create a service queue using Python SDK in my Azure account. While trying to run the file manage_topic.py (https://github.com/Azure-Samples/azure-samples-python-management/blob/master/samples/servicebus/manage_topic.py), I am getting below error: Please suggest how I can fix the error and create a service bus queue using Python SDK

__servicebus_client = ServiceBusManagementClient( TypeError: __init__() got an unexpected keyword argument 'credential'__

amitgupta5888 commented 3 years ago

Please assist @msyyc @nickzhums @00Kai0

joelvasiliev commented 3 years ago

I am having the same issue, if you find something to fix this, please comment here

amitgupta5888 commented 3 years ago

@joel-vasiliev Below doco helped :

https://stackoverflow.com/questions/63384092/exception-attributeerror-defaultazurecredential-object-has-no-attribute-sig

amitgupta5888 commented 3 years ago

although this article was just a workaround and its again giving another error - AttributeError: 'CredentialWrapper' object has no attribute 'get_token'

amitgupta5888 commented 3 years ago

@msyyc Thanks for accepting this issue, can you please suggest how we can proceed

msyyc commented 3 years ago

please make sure you follow the reamdme.md before run the example. I could run it successfully in local environment: image