Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    module 'ssl' has no attribute 'TLSVersion'

    General Discussion
    0
    3
    11
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      poorna last edited by

      Hi,
      Tick data not worked from yesterday (26-2-24) So i refered GitHub. At the time of generating Authtoken, below mentioned error came:

      Traceback (most recent call last):
      File "f:/py works/New folder/swsv2/auto_apia_L.py", line 17, in <module>
      smartApi = SmartConnect(api_key)
      File "F:\Program Files\Python36\lib\site-packages\SmartApi\smartConnect.py", line 103, in init
      self.ssl_context.minimum_version = ssl.TLSVersion.TLSv1_2
      AttributeError: module 'ssl' has no attribute 'TLSVersion'

      Kindly advise me ASAP
      Thanks.

      M 1 Reply Last reply Reply Quote 1
      • M
        Moderator_2 @poorna last edited by

        Hi @poorna

        We have fixed the TLS version issue. Please upgrade to latest python sdk and let us know if the issue still occurs

        Regards,
        SmartAPI team

        P 1 Reply Last reply Reply Quote 0
        • P
          poorna @Moderator_2 last edited by

          @Moderator_2 noted with thanks

          1 Reply Last reply Reply Quote 0
          • First post
            Last post