azure-samples-python-management icon indicating copy to clipboard operation
azure-samples-python-management copied to clipboard

Sample code giving error

Open amitgupta5888 opened this issue 4 years ago • 6 comments

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 avatar Aug 31 '21 12:08 amitgupta5888

Please assist @msyyc @nickzhums @00Kai0

amitgupta5888 avatar Aug 31 '21 13:08 amitgupta5888

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

joelvasiliev avatar Sep 01 '21 17:09 joelvasiliev

@joel-vasiliev Below doco helped :

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

amitgupta5888 avatar Sep 02 '21 01:09 amitgupta5888

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

amitgupta5888 avatar Sep 02 '21 06:09 amitgupta5888

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

amitgupta5888 avatar Sep 02 '21 06:09 amitgupta5888

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

msyyc avatar Sep 02 '21 07:09 msyyc