Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

module 'smartsheet' has no attribute 'Sheets' - Python 3.10 - PyCharm #183

@jscottcarr

Description

@jscottcarr

I'm getting the following error in Python 3.10:

Traceback (most recent call last):
File ".../smartsheet.py", line 13, in
action = smartsheet.Sheets.list_sheets(include_all=True)
AttributeError: module 'smartsheet' has no attribute 'Sheets'

Environment:
Python 3.10.5 (v3.10.5:f377153967, Jun 6 2022, 12:36:10) [Clang 13.0.0 (clang-1300.0.29.30)]
Mac OS 12.5, M1 MacBook Pro
PyCharm 2022.1.4 (Professional Edition)
smartsheet-python-sdk-py39 (2.105.1.10) and smartsheet-python-sdk (2.177.1)

import smartsheet
import logging

TOKEN = '<<suppressed for security>>'

logging.getLogger('smartsheet').setLevel(logging.CRITICAL)
smart = smartsheet.Smartsheet(access_token=TOKEN)
action = smartsheet.Sheets.list_sheets(include_all=True)
print(action)

Code is pulled out of the samples in this repo, so I'm confused. Any help appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions