Graph Loader

Problem

N/A

Error message

ConnectionError: Failed to create queries: [vertex_loader_desc_emb].

Diagnosis

No matter what vertex loader ,edge loader ,graph loader or neighbor loader, the UDF is needed to be installed . And Kafka loader is not available in Free Edition .

from pyTigerGraph import TigerGraphConnection
conn = TigerGraphConnection(
    host="http://127.0.0.1", # Change the address to your database server's
    graphname="imdb",
    username="tigergraph",
    password="tigergraph"
)
%%time
vertex_loader = conn.gds.vertexLoader(
    num_batches=1,
    attributes={"movie": ["x"]})

Workaround

N/A

Solution

Install UDF

ExprFunctions="https://tg-mlworkbench.s3.us-west-1.amazonaws.com/udf/1.0/ExprFunctions.hpp"  # For enterprise users, please use the link you received.
ExprUtil=""  # For enterprise users, please use the link you received.
conn.installUDF(ExprFunctions, ExprUtil)