1

I am following the smartsheet API's python-sdk example to do some practice.

Below are my steps (using Python 3.4.4 on macOS 10.7.5):

  1. installed the SDK package from their GitHub repo
  2. installed pip using pip install smartsheet-python-sdk in my terminal
  3. created a .py file and moved it into the SDK file

Issue

When I run it, I got following error message:

Traceback (most recent call last):
  File "/Users/canny_aiyaya/Desktop/smartsheet-python-sdk-master/smartsheet/charity.py", line 5, in <module>
    import smartsheet
  File "/Users/canny_aiyaya/Desktop/smartsheet-python-sdk-master/smartsheet/smartsheet.py", line 28, in <module>
    import requests
ImportError: No module named 'requests'

Code in the .py file

import smartsheet
ss_client = smartsheet.Smartsheet(access_token)
ss_client.errors_as_exceptions(True)

Analysis

I looked for some possible solutions, and try to install requests on my terminal using sudo pip3 install requests, but it shows:

No matching distribution found for requests

This is my first time trying to use API on Smartsheet, any supports/links/videos will very helpful.

hc_dev
  • 8,389
  • 1
  • 26
  • 38
Maggster
  • 51
  • 6
  • the problem is solved now, but I now have a new problem – Maggster Apr 30 '19 at 00:33
  • Did any answer solve your question, then consider voting/accepting. For a new problem ask a new question. If it is related and link it here or this question there. – hc_dev Jun 09 '22 at 20:12

1 Answers1

0

There are a number of dependencies. You can run python setup.py install from the Smartsheet SDK directory to install them.

timwells
  • 341
  • 1
  • 4