Navigation

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

    websocket import error

    Python SDK
    3
    6
    80
    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.
    • S
      sudhakar last edited by

      I am getting the below error how to fix this?
      I tried uninstall and install but didnt work.
      Below is the error message.

      ImportError: cannot import name 'SmartWebSocket' from 'smartapi' (C:\Users\Bobby\anaconda3\lib\site-packages\smartapi_init_.py)

      A 1 Reply Last reply Reply Quote 0
      • A
        admin @sudhakar last edited by

        Hi @sudhakar Have you updated the python sdk.

        S 2 Replies Last reply Reply Quote 0
        • S
          sudhakar @admin last edited by

          @admin Yes I am using 3.8 latest version of python

          1 Reply Last reply Reply Quote 0
          • S
            sudhakar @admin last edited by

            @admin Please suggest me how to update SDK, I am using python 3.8

            S 1 Reply Last reply Reply Quote 0
            • S
              Surya 1 @sudhakar last edited by

              @sudhakar

              pip intall smartapi-python --upgrade
              pip install websocket-client --upgrade

              S 1 Reply Last reply Reply Quote 0
              • S
                sudhakar @Surya 1 last edited by

                @rajanprabu said in websocket import error:

                pip install websocket-client --upgrade

                Thank you, its working now.

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