Why this Error while using Temporal using python3

Traceback (most recent call last):
File “run_worker.py”, line 18, in
asyncio.run(main())
File “/usr/lib/python3.8/asyncio/runners.py”, line 44, in run
return loop.run_until_complete(main)
File “/usr/lib/python3.8/asyncio/base_events.py”, line 616, in run_until_complete
return future.result()
File “run_worker.py”, line 11, in main
client = await Client.connect(“localhost:7233”)
File “/home/osiuser/Documents/temporal-hr-workflow/temporalenv/lib/python3.8/site-packages/temporalio/client.py”, line 148, in connect
await temporalio.service.ServiceClient.connect(connect_config),
File “/home/osiuser/Documents/temporal-hr-workflow/temporalenv/lib/python3.8/site-packages/temporalio/service.py”, line 158, in connect
return await _BridgeServiceClient.connect(config)
File “/home/osiuser/Documents/temporal-hr-workflow/temporalenv/lib/python3.8/site-packages/temporalio/service.py”, line 685, in connect
await client._connected_client()
File “/home/osiuser/Documents/temporal-hr-workflow/temporalenv/lib/python3.8/site-packages/temporalio/service.py”, line 698, in _connected_client
self._bridge_client = await temporalio.bridge.client.Client.connect(
File “/home/osiuser/Documents/temporal-hr-workflow/temporalenv/lib/python3.8/site-packages/temporalio/bridge/client.py”, line 78, in connect
await temporalio.bridge.temporal_sdk_bridge.connect_client(
RuntimeError: Failed client connect: get_system_info call error after connection: Status { code: Unknown, message: “transport error”, source: Some(tonic::transport::Error(Transport, hyper::Error(Io, Kind(ConnectionReset))))

This means you cannot connect to the server. Either the server isn’t running or you are not providing the proper information to connect to the server.

git clone GitHub - temporalio/docker-compose: Temporal docker-compose files
cd docker-compose
docker compose up

used python sdk temporalio

how should i resolve above error

You may have to wait until server completes its startup. Can you confirm it is listening on port 7233? Our samples have all been tested with the docker compose repo you linked. You can share the exact commands you used to test the SDK if it still isn’t working.

after
sudo lsof -i :7233
it showing
docker-pr 63332 root 4u IPv4 544837 0t0 TCP *:7233 (LISTEN)

and first i clone the the repo
git clone GitHub - temporalio/docker-compose: Temporal docker-compose files
after that
cd docker-compose
docker compose up

used temporalio
the run worker.py which shows the above error

used temporalio […] the run worker.py which shows the above error

Can you share the exact commands you used to test the SDK? Maybe try a sample from the previously-linked sample repo. We are not able to replicate this error (docker compose server works fine with Python SDK in all tests on all platforms performed).