I am running Gremlin Python. Firstly, I did the installation in my local machine following these instructions here then I ran the code of this website here, but I got the following error at this bit:
heading('SubgraphStrategy - just Texas airports')
strategy = SubgraphStrategy(vertices=__.has("region","US-TX"), edges=__.hasLabel('route'))
g2 = g.withStrategies(strategy)
verts = g2.V().count().next()
RuntimeError: Cannot run the event loop while another loop is running
I verified my connection to a graph database to Gremlin Server, with the following code
%%graph_notebook_config
{
"host": "localhost",
"port": 8182,
"ssl": false,
"gremlin": {
"traversal_source": "g"
}
}
I found some solutions to the "RuntimeError: Cannot run the event loop while another loop is running", like the nest_async, but then I got a different error.
Thank you