Python 3.x 无法使用Python SDK访问Smartsheet
我正在运行以下代码以使用Python SDK访问SmartsheetPython 3.x 无法使用Python SDK访问Smartsheet,python-3.x,python-requests,smartsheet-api,smartsheet-api-2.0,Python 3.x,Python Requests,Smartsheet Api,Smartsheet Api 2.0,我正在运行以下代码以使用Python SDK访问Smartsheet access_token = 'XXXX' smartsheet_client = smartsheet.Smartsheet(access_token) user_profile = smartsheet_client.Users.get_current_user() print(user_profile) 但是我得到了以下错误 Traceback (most recent call las
access_token = 'XXXX'
smartsheet_client = smartsheet.Smartsheet(access_token)
user_profile = smartsheet_client.Users.get_current_user()
print(user_profile)
但是我得到了以下错误
Traceback (most recent call last):
File "D:\Users\rahul\AppData\Local\Programs\Python\Python35-32\lib\site- Traceback (most recent call last):
File "D:\Users\rahul\AppData\Local\Programs\Python\Python35-32\lib\site-packages\urllib3\connection.py", line 157, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "D:\Users\rahul\AppData\Local\Programs\Python\Python35-32\lib\site-packages\urllib3\util\connection.py", line 61, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
有人能帮我解决这个问题吗
我正在使用smartsheet python sdk
我无法从工作位置运行如果您的工作位置出现连接错误,您可能必须使用带有Smartsheet Python SDK的代理进行连接 GitHub repo中的Advanced topics文件中有关于将代理与Python SDK一起使用的信息: