Skip to content
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

SyntaxError: positional argument follows keyword argument #52043

Closed
appleyuchi opened this issue Apr 9, 2020 · 3 comments
Closed

SyntaxError: positional argument follows keyword argument #52043

appleyuchi opened this issue Apr 9, 2020 · 3 comments

Comments

@appleyuchi
Copy link

appleyuchi commented Apr 9, 2020

error logs:
(Python3.6) appleyuchi@ubuntu19:bing搜索$ python test.py
File "test.py", line 10
client = WebSearchClient(endpoint="https://api.cognitive.microsoft.com/bing/v7.0", CognitiveServicesCredentials(subscription_key))

code location:
https://docs.microsoft.com/zh-cn/azure/cognitive-services/bing-web-search/quickstarts/client-libraries?pivots=programming-language-python

replication with above code:
https://paste.ubuntu.com/p/XhPgDTWGDZ/

app secret location:
https://azure.microsoft.com/zh-cn/try/cognitive-services/my-apis/?api=search-api-v7


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@YutongTie-MSFT
Copy link
Contributor

@appleyuchi
Thanks for the feedback! We are currently investigating and will update you shortly.

@YutongTie-MSFT
Copy link
Contributor

YutongTie-MSFT commented Apr 14, 2020

@appleyuchi Could you please try:
client = WebSearchClient(CognitiveServicesCredentials(subscription_key), endpoint="https://api.cognitive.microsoft.com/bing/v7.0" )

Thanks.

@YutongTie-MSFT
Copy link
Contributor

@appleyuchi
We will now proceed to close this thread. If there are further questions regarding this matter, please respond here and @YutongTie-MSFT and we will gladly continue the discussion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants