Simple.py does not work with the latest dgraph docker container

Moved from GitHub pydgraph/108

Posted by benprofessionaledition:

The example provided does not work. To reproduce:

docker run --rm -it -p 8000:8000 -p 8080:8080 -p 9080:9080 dgraph/standalone:latest (or the docker-compose way, same error)
pip install -r requirements.txt
python simple.py

Error:

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
	status = StatusCode.UNKNOWN
	details = "line 10 column 12: Missing colon in type declaration. Got 
"
	debug_error_string = "{"created":"@1577206542.199848000","description":"Error received from peer ipv6:[::1]:9080","file":"src/core/lib/surface/call.cc","file_line":1056,"grpc_message":"line 10 column 12: Missing colon in type declaration. Got \n","grpc_status":2}"
>

martinmr commented :

@danielmai: it looks like the docker image is still on 1.1 instead of 1.1.1

danielmai commented :

@martinmr thanks for the heads up. The dgraph/standalone:latest now runs Dgraph v1.1.1. You can pull the latest image and try again.

docker pull dgraph/standalone:latest
docker run --rm -it -p 8000:8000 -p 8080:8080 -p 9080:9080 dgraph/standalone:latest
...
Dgraph version   : v1.1.1
Dgraph SHA-256   : 20a10e9db316b565464e0a04cea09657eebbaea3b91460ab651997ada63243cc
Commit SHA-1     : 8994a5740
Commit timestamp : 2019-12-16 18:24:50 -0800
Branch           : HEAD
Go version       : go1.13.5
...