Moved from GitHub pydgraph/94
Posted by jayaddison:
Hi there,
I’m evaluating dgraph
for a Python environment and trying out the example simple.py
script in pydgraph
. Unfortunately I’m not finding expected behaviour so far.
Here’s what I’ve found:
Steps to reproduce:
# setup dgraph server on default port
# install pydgraph via pip or pipenv
$ python examples/simple/simple.py
Results (pydgraph==2.0.2
):
Created person named "Alice" with uid = 0x26
Number of people named "Alice": 1
Number of people named "Bob": 1
Bob's UID: 0x25
Bob deleted
Number of people named "Alice": 1
Number of people named "Bob": 1
DONE!
Bob is not deleted.
Results (pydgraph==master@2e3b821
):
Error: <_Rendezvous of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "line 10 column 12: Missing colon in type declaration. Got
"
debug_error_string = "{"created":"@1571758478.030906774","description":"Error received from peer ipv6:[::1]:9080","file":"src/core/lib/surface/call.cc","file_line":1055,"grpc_message":"line 10 column 12: Missing colon in type declaration. Got \n","grpc_status":2}"
>
Expected results:
Script runs to completion, and user ‘Bob’ is deleted.
It looks like some of these problems may be related to the type system which is being introduced. Are types required for dgraph==1.1.0
and pydgraph==2.0.2
to perform a successful delete operation?