Navigation

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

    NameError: name 'true' is not defined

    Python SDK
    5
    6
    95
    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.
    • G
      gig_baniya last edited by

      I am trying to connect to the api through python. Currently I am getting NameError with folloiwng message. Is there a bug?

      ~\Anaconda3\envs\angel1\lib\site-packages\smartapi\smartConnect.py in generateSession(self, clientCode, password)
      242 loginResultObject=self._postRequest("api.login",params)
      243
      --> 244 if loginResultObject['status']==True or true:
      245 jwtToken=loginResultObject['data']['jwtToken']
      246 self.setAccessToken(jwtToken)

      NameError: name 'true' is not defined

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

        @mg25 said in NameError: name 'true' is not defined:

        Is there a bug?

        Hi @mg25 , there are no bugs in Python SDK.
        Please refer : https://github.com/angelbroking-github/smartapi-python

        M L 2 Replies Last reply Reply Quote 0
        • M
          mangeshpawar @admin last edited by

          @admin yes this is bbug . pl. remove

          1 Reply Last reply Reply Quote 0
          • L
            leena.1234 @admin last edited by

            @admin NameError: name 'true' is not defined
            occurring while trying to connect to API through Python script. Please guide on this.

            A 1 Reply Last reply Reply Quote 0
            • A
              admin @leena.1234 last edited by

              Hi @leena-1234 @sajy @mg25 , please try to reinstall latest python SDK and check again

              1 Reply Last reply Reply Quote 0
              • M
                mrchharus @gig_baniya last edited by

                @mg25 try changing your api key it might pix it, It worked for me

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