Hi,
When I run "python test.py", I get the following error:
Error: "string indices must be integers"
It relates to this line of code:
for element in res:
order.append(element["v_id"])
"element" is a string variable and since "v_id" is not an integer, it generates this error.
Is it because of the new format of storing data in TigerGraph (TG) 2?
Please let me know the TG, python versions that you used for this code.
- when I check the res, it has meaningful content, so the query part is correct.
Thanks,
Hadi
Hi,
When I run "python test.py", I get the following error:
Error: "string indices must be integers"
It relates to this line of code:
for element in res:
order.append(element["v_id"])
"element" is a string variable and since "v_id" is not an integer, it generates this error.
Is it because of the new format of storing data in TigerGraph (TG) 2?
Please let me know the TG, python versions that you used for this code.
Thanks,
Hadi