Python 通过API访问令牌将smartsheet连接到Jupyter时发生SSL认证错误

Python 通过API访问令牌将smartsheet连接到Jupyter时发生SSL认证错误,python,jupyter,smartsheet-api,Python,Jupyter,Smartsheet Api,我使用Jupyter通过smartsheet中生成的API访问令牌从smartsheet获取数据 import smartsheet #(pip install smartsheet-python-sdk package) access_token = 'm2ihridpq4xxxxxxxxxxxxxx' ss_client = smartsheet.Smartsheet(access_token) ss_client.errors_as_exceptions(True) sheet_I

我使用Jupyter通过smartsheet中生成的API访问令牌从smartsheet获取数据

import smartsheet #(pip install smartsheet-python-sdk package)

access_token = 'm2ihridpq4xxxxxxxxxxxxxx'

ss_client = smartsheet.Smartsheet(access_token)

ss_client.errors_as_exceptions(True)

sheet_ID = 313119xxxxxxxxxx

MySheet = ss_client.Sheets.get_sheet(sheet_ID)
我在MAC笔记本电脑上收到此错误,仅由公司提供。我使用了相同的代码,并在公司提供的windows中运行,运行良好

我试过使用Python2.7和3.7,但仍然无法理解

我尝试过升级和降级certifi、请求和OpenSSl模块,但仍然得到相同的错误。
有人能帮我吗???

首先,我会确保您的版本是最新版本的。较早版本的SDK使用TLS 1.0,Smartsheet API要求使用TLS 1.1及更高版本。使用较旧版本的Python SDK将导致证书错误。 其次,我将调查您的路径中的OpenSSL版本,并确保在运行代码时使用的是正确且更新的版本。

将极大地提高问题的可读性。
**Error: SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)
During handling of the above exception, another exception
occurred:HTTPSConnectionPool(host='api.smartsheet.com', port=443): Max retries exceeded with url: /2.0/sheets/3131191986546564 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)')))
During handling of the above exception, another exception occurred:
(SSLError(MaxRetryError("HTTPSConnectionPool(host='api.smartsheet.com', port=443): Max retries exceeded with url: /2.0/sheets/3131191986546564 (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1056)')))")), 'SSL handshake error, old CA bundle or old OpenSSL?')**