Skip to content

SSL Deprecation Warings in Python 3.10 #54

@jtyoung84

Description

@jtyoung84

Describe the bug
In certain situations, this deprecation warning is logged:

python3.10/site-packages/smartsheet/session.py:37: DeprecationWarning: ssl.OP_NO_SSL*/ssl.OP_NO_TLS* options are deprecated

To Reproduce
I seem to mostly see it when running unit tests.
Steps to reproduce the behavior:

  1. Create a test.py file:
import unittest
from smartsheet import Smartsheet

class TestSmartsheet(unittest.TestCase):

  def test_sheet(self):
    sheet = Smartsheet(access_token="*****")


if __name__ == "__main__":
    unittest.main()
  1. Run python -m unittest test.py
  2. See warning

Expected behavior
The recommendation seems to be to use either ssl.PROTOCOL_TLS_CLIENT or ssl.PROTOCOL_TLS_SERVER

Screenshots
If applicable, add screenshots to help explain your problem.
Reminder: do not include your API access token or confidential information with any screenshots

Environment (please complete the following information):

  • OS: CentOS 7
  • Smartsheet Python SDK Version 3.0.4
  • Python Version 3.10.15

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions