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.