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

TypeError: post() takes from 1 to 3 positional arguments but 5 were given #30

Open
gglconveste opened this issue Mar 3, 2021 · 0 comments

Comments

@gglconveste
Copy link

Description

Hi, a colleague and I have been working on a script that extracts text from image files (.png)

For that he (colleague) has been using the method computervision_client.recognize_printed_text_in_stream().

Since last Thursday, Feb-25-2021, this method stopped working properly.

When called, it generates the following error:

TypeError Traceback (most recent call last)
in
----> 1 ocr_result_local = computervision_client.recognize_printed_text_in_stream(image=open(contrato, "rb" ))

/anaconda/envs/azureml_py36/lib/python3.6/site-packages/azure/cognitiveservices/vision/computervision/operations/_computer_vision_client_operations.py in recognize_printed_text_in_stream(self, image, detect_orientation, language, custom_headers, raw, callback, **operation_config)
1406
1407 # Construct and send request
-> 1408 request = self._client.post(url, query_parameters, header_parameters, body_content)
1409 response = self._client.send(request, stream=False, **operation_config)
1410

TypeError: post() takes from 1 to 3 positional arguments but 5 were given

In which platform does it happen?

Azure Machine Learning Studio

How do we replicate the issue?

Just try to use the module: computervision_client.recognize_printed_text_in_stream()

Expected behavior (i.e. solution)

It should extract text from an image file.

Other Comments

I saw that something similar occurred here: microsoft/botbuilder-python#93

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

No branches or pull requests

1 participant