Title: TypeError: post() takes from 1 to 3 positional arguments but 5 were given · Issue #30 · microsoft/Cognitive-Vision-Python · GitHub
Open Graph Title: TypeError: post() takes from 1 to 3 positional arguments but 5 were given · Issue #30 · microsoft/Cognitive-Vision-Python
X Title: TypeError: post() takes from 1 to 3 positional arguments but 5 were given · Issue #30 · microsoft/Cognitive-Vision-Python
Description: 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, F...
Open Graph Description: 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_...
X Description: 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_...
Opengraph URL: https://github.com/microsoft/Cognitive-Vision-Python/issues/30
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TypeError: post() takes from 1 to 3 positional arguments but 5 were given","articleBody":"**Description**\r\n\r\nHi, a colleague and I have been working on a script that extracts text from image files (.png)\r\n\r\nFor that he (colleague) has been using the method computervision_client.recognize_printed_text_in_stream().\r\n\r\nSince last Thursday, Feb-25-2021, this method stopped working properly.\r\n\r\nWhen called, it generates the following error:\r\n\r\nTypeError Traceback (most recent call last)\r\nin\r\n----\u003e 1 ocr_result_local = computervision_client.recognize_printed_text_in_stream(image=open(contrato, \"rb\" ))\r\n\r\n/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)\r\n1406\r\n1407 # Construct and send request\r\n-\u003e 1408 request = self._client.post(url, query_parameters, header_parameters, body_content)\r\n1409 response = self._client.send(request, stream=False, **operation_config)\r\n1410\r\n\r\nTypeError: post() takes from 1 to 3 positional arguments but 5 were given\r\n\r\n**In which platform does it happen?**\r\n\r\nAzure Machine Learning Studio\r\n\r\n**How do we replicate the issue?**\r\n\r\nJust try to use the module: computervision_client.recognize_printed_text_in_stream()\r\n\r\n**Expected behavior (i.e. solution)**\r\n\r\nIt should extract text from an image file.\r\n\r\n**Other Comments**\r\n\r\nI saw that something similar occurred here: microsoft/botbuilder-python#93","author":{"url":"https://github.com/gglconveste","@type":"Person","name":"gglconveste"},"datePublished":"2021-03-03T19:53:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/30/Cognitive-Vision-Python/issues/30"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:544dafca-9ef4-2d90-a8e2-24f943d6f059 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5D6:3CAE76:BC3FA64:F226B9D:697F4566 |
| html-safe-nonce | 131f7b3a29261d8731e545fe3a5306d25555eb6b9afa0465ceade4ed97cc032e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUQ2OjNDQUU3NjpCQzNGQTY0OkYyMjZCOUQ6Njk3RjQ1NjYiLCJ2aXNpdG9yX2lkIjoiMTgwNjAyMzQ1NDcwMTM0MDAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 669dc7a8485d28e215f20b2966a20efa156649f741d8b4b1ee4bd599f96099f4 |
| hovercard-subject-tag | issue:821433443 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/Cognitive-Vision-Python/30/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d0fa10cc81cb024769dd1a92edd48586d89fb8c74453a2aeeeb44b7f3fce7a21/microsoft/Cognitive-Vision-Python/issues/30 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d0fa10cc81cb024769dd1a92edd48586d89fb8c74453a2aeeeb44b7f3fce7a21/microsoft/Cognitive-Vision-Python/issues/30 |
| og:image:alt | 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_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gglconveste |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/Cognitive-Vision-Python git https://github.com/microsoft/Cognitive-Vision-Python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 60383580 |
| octolytics-dimension-repository_nwo | microsoft/Cognitive-Vision-Python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 60383580 |
| octolytics-dimension-repository_network_root_nwo | microsoft/Cognitive-Vision-Python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width