Like to tap into the community intelligence on this specific issue I encountered when trying to access TigerGraph Cluster on AWS using the Python Connector. It seemed my API worked and I was able to run most functions, except when I tried to run .gsql()
I started to have issues. BTW, running standalone GSQL client was successful. Any help is greatly appreciated.
Troubleshootings I have tried but failed:
- Specified a local dir for the gsql_client.jar file using
conn.initGsql(jarLocation="/home/user/gsql_clients/dv-TGv3.1/gsql_client.jar")
. Unfortunately,jarLocation
was not an available argument, although it is documented https://pytigergraph.github.io/pyTigerGraph/Gsql/. Is this a known issue with this package? - Changed my local gsql_client.jar file to the default directory and rename it to
/home/user/.gsql/gsql_client-3.1.1.jar
following the instruction in https://pytigergraph.github.io/pyTigerGraph/Gsql/ - Downgraded the Python connector to pyTigherGraphBeta v0.0.9.7
However, neither has resolved the issue for me and I got the same error message as shown below.
Below are my configs and codes and errors.
- Python 3.6
- pyTigerGraph v0.0.9.6.8
import pyTigerGraph as tg
conn = tg.TigerGraphConnection(host="http://tigergraph.domain.com",
restppPort="9000",
gsPort="80",
graphname="my_graph",
username="user",
password="xxx",
useCert=False,
apiToken="xxx",
gsqlVersion="3.1.1"
)
print(conn.getVertexTypes())
['a', 'b', 'c', 'x', 'y, 'z']
print(conn.gsql('''LS''', options=[]))
Connection Failed check your Username/Password [Errno 111] Connection refused Couldn't Initialize the client see Above Error