Error while sending schema

Hello,
I am using dgraph version 21.12, pydgraph version 21.3.2
I am trying the following code:

`import pydgraph

client_stub = pydgraph.DgraphClientStub(‘localhost:8080’)
client = pydgraph.DgraphClient(client_stub)

schema = “”"
name: string .
friend: [uid] .
age: int .
married: bool .
loc: geo .
dob: datetime .

type Person {
    name
    friend
    age
    married
    loc
    dob
}
"""

client.alter(pydgraph.Operation(schema=schema))`

and I have this error:

`Traceback (most recent call last):

File “C:\Users\gabri\project_cfia\excelparsing-main\untitled0.py”, line 25, in
client.alter(pydgraph.Operation(schema=schema))

File “C:\Users\gabri\miniconda3\lib\site-packages\pydgraph\client.py”, line 127, in alter
self._common_except_alter(error)

File “C:\Users\gabri\miniconda3\lib\site-packages\pydgraph\client.py”, line 137, in _common_except_alter
raise error

File “C:\Users\gabri\miniconda3\lib\site-packages\pydgraph\client.py”, line 113, in alter
return self.any_client().alter(operation, timeout=timeout,

File “C:\Users\gabri\miniconda3\lib\site-packages\pydgraph\client_stub.py”, line 50, in alter
return self.stub.Alter(operation, timeout=timeout, metadata=metadata,

File “C:\Users\gabri\miniconda3\lib\site-packages\grpc_channel.py”, line 946, in call
return _end_unary_response_blocking(state, call, False, None)

File “C:\Users\gabri\miniconda3\lib\site-packages\grpc_channel.py”, line 849, in _end_unary_response_blocking
raise _InactiveRpcError(state)

_InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAVAILABLE
details = “failed to connect to all addresses”
debug_error_string = “{“created”:”@1643666390.436000000",“description”:“Failed to pick subchannel”,“file”:“src/core/ext/filters/client_channel/client_channel.cc”,“file_line”:3135,“referenced_errors”:[{“created”:"@1643666390.436000000",“description”:“failed to connect to all addresses”,“file”:“src/core/lib/transport/error_utils.cc”,“file_line”:163,“grpc_status”:14}]}"`

any idea what is happening??