不能设置一个python sdk_Python SDK 运行出错

连接API的时候报错,昨天还能用没改动代码,报错位置:

Traceback (most recent call last):

File "C:/Users/vbove/PycharmProjects/AnswerHero/start.py", line 67, in

get_results(cnt)

File "C:/Users/vbove/PycharmProjects/AnswerHero/start.py", line 37, in get_results

search = client.basicGeneral(ques)

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\aip\ocr.py", line 66, in basicGeneral

return self._request(self.__generalBasicUrl, data)

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\aip\base.py", line 89, in _request

authObj = self._auth()

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\aip\base.py", line 165, in _auth

), proxies=self._proxies).json()

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\requests\api.py", line 72, in get

return request('get', url, params=params, **kwargs)

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\requests\api.py", line 58, in request

return session.request(method=method, url=url, **kwargs)

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\requests\sessions.py", line 508, in request

resp = self.send(prep, **send_kwargs)

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\requests\sessions.py", line 618, in send

r = adapter.send(request, **kwargs)

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\requests\adapters.py", line 440, in send

timeout=timeout

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\urllib3\connectionpool.py", line 601, in urlopen

chunked=chunked)

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\urllib3\connectionpool.py", line 346, in _make_request

self._validate_conn(conn)

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\urllib3\connectionpool.py", line 850, in _validate_conn

conn.connect()

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\urllib3\connection.py", line 314, in connect

cert_reqs=resolve_cert_reqs(self.cert_reqs),

File "C:\Users\vbove\PycharmProjects\AnswerHero\venv\lib\site-packages\urllib3\util\ssl_.py", line 269, in create_urllib3_context

context.options |= options

File "E:\Program Files (x86)\Python36-32\lib\ssl.py", line 459, in options

super(SSLContext, SSLContext).options.__set__(self, value)

File "E:\Program Files (x86)\Python36-32\lib\ssl.py", line 459, in options

super(SSLContext, SSLContext).options.__set__(self, value)

File "E:\Program Files (x86)\Python36-32\lib\ssl.py", line 459, in options

super(SSLContext, SSLContext).options.__set__(self, value)

[Previous line repeated 322 more times]

RecursionError: maximum recursion depth exceeded while calling a Python object

你可能感兴趣的:(不能设置一个python,sdk)