Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

OrionSDK-Python: Sample query.py throwing error KeyError: 'nodeID'

$
0
0

I have been using Orion SDK for long time to run SWQL queries but trying to use Python for first time.

After installing Python (Python 3.7.4) and getting required packages, when I try to run the sample code from documentation (query.py) I am getting following error:

 

C:\Users\user_id\Documents>python query.py

Query Test:

Traceback (most recent call last):

  File "query.py", line 20, in <module>

    print("{nodeID:<5}: {DisplayName}".format(**row))

KeyError: 'nodeID'

 

I tried searching for this error but couldn't get much information.

Anyone has any idea what am I doing wrong?

I can run this query successfully from SWQL Studio (version 2.5.0.214) with same credentials.


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>