-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
CustomVision - create_project throws AttributeError: 'str' object has no attribute 'signed_session' #11503
CustomVision - create_project throws AttributeError: 'str' object has no attribute 'signed_session' #11503
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dfulcer. |
Hi @iMicknl Could you rename your issue to be more accurate, about updating samples and documentations? Thanks! |
@lmazuel Thanks! I am not sure if I fully understand what you mean. The Does this mean that both examples are not using the correct approach? Or is this a breaking change after all? :-) MicrosoftDocs/azure-docs@c26516c#diff-312534b6d704c284180ce766e44e90a9 |
@areddish I'm confused here how you got a sample working before by just passing a string, autorest would never have supported that? Was it manually written? Edit: Ok, I see the parameter was described as a generic header in the Swagger. That helps connect the dot :) |
@lamazuel Yes, this release aligns us with the other SDK's using ApiKeyCredentials. I've updated the documentation, but looks like I missed a sample. Will do that now. |
@lmazuel looks good to me! |
This is still an issue. Why was it closed? |
Describe the bug
Creating a project via
create_project
does throw aAttributeError: 'str' object has no attribute 'signed_session'
. This is solved when calling theCustomVisionTrainingClient
withApiKeyCredentials
, however this is not documented as a breaking change on PyPi.To Reproduce
Steps to reproduce the behavior:
throws
AttributeError: 'str' object has no attribute 'signed_session
Additional context
It would be great if there were any samples updated after the 2.0.0 release. I did waste a lot of time by going through the SDK source files.
Outdated content:
https://docs.microsoft.com/en-us/azure/cognitive-services/custom-vision-service/quickstarts/image-classification?pivots=programming-language-python
https://github.com/Azure-Samples/cognitive-services-python-sdk-samples/tree/master/samples/vision
The text was updated successfully, but these errors were encountered: