0

我正在使用 Zoho Books python API,它不断抛出错误。

Traceback (most recent call last):
File "entryscript.py", line 22, in <module>
main()
File "entryscript.py", line 19, in main
zohoo()
File "/home/dell/folder1/folder2/folder3/main.py", line 494, in zohoo
contact_id = contact_api.get_contacts().get_contacts()[0].get_contact_id()
File "/home/dell/folder1/folder2/folder3/books/api/ContactsApi.py", line 
58, in get_contacts
response = zoho_http_client.get(base_url, self.details, parameter)
File "/home/dell/folder1/folder2/folder3/books/util/ZohoHttpClient.py", 
line 37, in get
resp, content = http.request(url, 'GET', headers=headers)
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1313, in request
(response, content) = self._request(conn, authority, uri, request_uri, method, body, 
headers, redirections, cachekey)
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 1063, in _request
(response, content) = self._conn_request(conn, request_uri, method, body, headers)
File "/usr/lib/python3/dist-packages/httplib2/__init__.py", line 986, in _conn_request
conn.connect()
File "/usr/lib/python3.7/http/client.py", line 1422, in connect
server_hostname=server_hostname)
File "/usr/lib/python3.7/ssl.py", line 423, in wrap_socket
session=session
File "/usr/lib/python3.7/ssl.py", line 870, in _create
self.do_handshake()
File "/usr/lib/python3.7/ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:1076)

我尝试安装请求版本 2.5.3,python3.7 -m pip install requests==2.5.3但出现此错误

Traceback (most recent call last):
File "entryscript.py", line 22, in <module>
main()
File "entryscript.py", line 18, in main
from main import zohoo
File "/home/dell/folder1/folder2/folder3/locallyRunScripts/main.py", line 4, in <module>
from firebase_admin import credentials, firestore, auth
File "/home/dell/.local/lib/python3.7/site-packages/firebase_admin/auth.py", line 22, in 
<module>
from firebase_admin import _auth_client
File "/home/dell/.local/lib/python3.7/site-packages/firebase_admin/_auth_client.py", line 
22, in <module>
from firebase_admin import _http_client
File "/home/dell/.local/lib/python3.7/site-packages/firebase_admin/_http_client.py", line 
32, in <module>
raise_on_status=False, backoff_factor=0.5)
TypeError: __init__() got an unexpected keyword argument 'status'

我系统中安装的 OppenSSL 版本是 OpenSSL 1.1.1 2018 年 9 月 11 日

4

0 回答 0