I’ve used dgraph on and off for a while and love it, but I am having the damndest time trying to get Pydgraph to work. If I run simple.py (https://github.com/dgraph-io/pydgraph/blob/master/examples/simple/simple.py), I get:
Error: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNKNOWN
details = “Expected scalar type inside . Got: [uid] for attr: [friend].”
debug_error_string = “{“created”:”@1570968454.611000000",“description”:“Error received from peer ipv6:[::1]:9080”,“file”:“src/core/lib/surface/call.cc”,“file_line”:1055,“grpc_message”:“Expected scalar type inside . Got: [uid] for attr: [friend].”,“grpc_status”:2}"
The error originates in the create_data method, but the drop_all and set_schema methods work perfectly.
Similarly, if I am running the code in a Jupyter notebook (in an attempt to debug), drop_all and set_schema work correctly, but if I run create_data, I get the error:
_Rendezvous: <_Rendezvous of RPC that terminated with: status = StatusCode.UNKNOWN details = “Empty query” debug_error_string = “{“created”:”@1570968964.441000000",“description”:“Error received from peer ipv6:[::1]:9080”,“file”:“src/core/lib/surface/call.cc”,“file_line”:1055,“grpc_message”:“Empty query”,“grpc_status”:2}" >
Any advice would be much appreciated.
Dgraph: 1.0.16
Python: 3.7
Thanks,
Ben