Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 无法使用Python SDK访问Smartsheet_Python 3.x_Python Requests_Smartsheet Api_Smartsheet Api 2.0 - Fatal编程技术网

Python 3.x 无法使用Python SDK访问Smartsheet

Python 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

我正在运行以下代码以使用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 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一起使用的信息: