# Why this Error while using Temporal using python3

**URL:** https://community.temporal.io/t/why-this-error-while-using-temporal-using-python3/9158
**Category:** Community Support
**Tags:** python-sdk
**Created:** [August 11, 2023, 11:19am UTC](https://community.temporal.io/t/why-this-error-while-using-temporal-using-python3/9158 "2023-08-11T11:19:59Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ravikumar](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Ravikumar](https://community.temporal.io/u/Ravikumar)
#### Post date: [August 11, 2023, 11:19am UTC](https://community.temporal.io/t/why-this-error-while-using-temporal-using-python3/9158/1 "2023-08-11T11:19:59Z")

</div>

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))))

---

<div class="post-metadata">

### Author: ![Chad\_Retz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/chad_retz/32/1396_2.png) [@Chad\_Retz](https://community.temporal.io/u/Chad_Retz)
#### Post date: [August 11, 2023, 11:40am UTC](https://community.temporal.io/t/why-this-error-while-using-temporal-using-python3/9158/2 "2023-08-11T11:40:22Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Ravikumar](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Ravikumar](https://community.temporal.io/u/Ravikumar)
#### Post date: [August 11, 2023, 11:46am UTC](https://community.temporal.io/t/why-this-error-while-using-temporal-using-python3/9158/3 "2023-08-11T11:46:16Z")

</div>

git clone [GitHub - temporalio/docker-compose: Temporal docker-compose files](https://github.com/temporalio/docker-compose.git)  
cd docker-compose  
docker compose up

used python sdk temporalio

how should i resolve above error

---

<div class="post-metadata">

### Author: ![Chad\_Retz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/chad_retz/32/1396_2.png) [@Chad\_Retz](https://community.temporal.io/u/Chad_Retz)
#### Post date: [August 11, 2023, 11:57am UTC](https://community.temporal.io/t/why-this-error-while-using-temporal-using-python3/9158/4 "2023-08-11T11:57:55Z")

</div>

You may have to wait until server completes its startup. Can you confirm it is listening on port 7233? Our [samples](https://github.com/temporalio/samples-python) 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.

---

<div class="post-metadata">

### Author: ![Ravikumar](https://avatars.discourse-cdn.com/v4/letter/r/ed8c4c/32.png) [@Ravikumar](https://community.temporal.io/u/Ravikumar)
#### Post date: [August 11, 2023, 12:12pm UTC](https://community.temporal.io/t/why-this-error-while-using-temporal-using-python3/9158/5 "2023-08-11T12:12:42Z")

</div>

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](https://github.com/temporalio/docker-compose.git)  
after that  
cd docker-compose  
docker compose up

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

---

<div class="post-metadata">

### Author: ![Chad\_Retz](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/chad_retz/32/1396_2.png) [@Chad\_Retz](https://community.temporal.io/u/Chad_Retz)
#### Post date: [August 11, 2023, 12:50pm UTC](https://community.temporal.io/t/why-this-error-while-using-temporal-using-python3/9158/6 "2023-08-11T12:50:16Z")

</div>

> 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).
