# Getting below error while running temporal in python

**URL:** <https://community.temporal.io/t/getting-below-error-while-running-temporal-in-python/12694>\
**Category:** Community Support\
**Tags:** python-sdk\
**Created:** [June 30, 2024, 11:28am UTC](https://community.temporal.io/t/getting-below-error-while-running-temporal-in-python/12694 "2024-06-30T11:28:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sakshi\_Patil](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/sakshi_patil/32/4293_2.png) [@Sakshi\_Patil](https://community.temporal.io/u/Sakshi_Patil)\
**Post date:** [June 30, 2024, 11:28am UTC](https://community.temporal.io/t/getting-below-error-while-running-temporal-in-python/12694/1 "2024-06-30T11:28:44Z")

</div>

workflow\_instance:1909 Exception in callback \<Task pending name=‘run (workflow: ABCWorkflow, id: 12e55602-36d3-11ef-82c7-76aa80fe82c3, run: 26bb5561-139f-41d3-9eb0-d9362a3a4356)’ coro=\<\_WorkflowInstanceImpl.\_run\_top\_level\_workflow\_function() running at /Library/Python/3.9/site-packages/temporalio/worker/\_workflow\_instance.py:1692\> cb=[set.remove()]\>()  
handle: \<Handle \<Task pending name=‘run (workflow: ABCWorkflow, id: 12e55602-36d3-11ef-82c7-76aa80fe82c3, run: 26bb5561-139f-41d3-9eb0-d9362a3a4356)’ coro=\<\_WorkflowInstanceImpl.\_run\_top\_level\_workflow\_function() running at /Library/Python/3.9/site-packages/temporalio/worker/\_workflow\_instance.py:1692\> cb=[set.remove()]\>()\>  
Traceback (most recent call last):  
File “/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/events.py”, line 80, in \_run  
self.\_context.run(self.\_callback, \*self.\_args)

using python 3.9  
temporalio==1.6.0  
Django==3.2.25

---

<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:** [July 1, 2024, 1:28pm UTC](https://community.temporal.io/t/getting-below-error-while-running-temporal-in-python/12694/2 "2024-07-01T13:28:02Z")

</div>

I don’t see anything obvious from the traceback. Is it possible to provide a standalone replication? For instance, can alter one of the samples at [GitHub - temporalio/samples-python: Samples for working with the Temporal Python SDK](https://github.com/temporalio/samples-python) like the `hello` samples.

---

<div class="post-metadata">

**Author:** ![Harshit\_gupta](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/harshit_gupta/32/5543_2.png) [@Harshit\_gupta](https://community.temporal.io/u/Harshit_gupta)\
**Post date:** [July 4, 2024, 1:31pm UTC](https://community.temporal.io/t/getting-below-error-while-running-temporal-in-python/12694/3 "2024-07-04T13:31:12Z")

</div>

@Sakshi_Patil i am getting the same issue, were you able to resolve it??

2024-07-04 18:40:00 ERROR Exception in callback \<Task pending name=‘run (workflow: KnowledgeSyncWorkflow, id: knowledge-sync-workflow-2c0b6f90-59b1-47e8-9b8b-090d2daee1ab, run: 202b81ad-bb94-4a5b-8d29-9aecc821ff1c)’ coro=\<\_WorkflowInstanceImpl.\_run\_top\_level\_workflow\_function() running at /Users/harshit.gupta/workspace\_obs/knowledge-ingestion-pipeline/.venv/lib/python3.10/site-packages/temporalio/worker/\_workflow\_instance.py:1348\> cb=[set.remove()]\>()  
handle: \<Handle \<Task pending name=‘run (workflow: KnowledgeSyncWorkflow, id: knowledge-sync-workflow-2c0b6f90-59b1-47e8-9b8b-090d2daee1ab, run: 202b81ad-bb94-4a5b-8d29-9aecc821ff1c)’ coro=\<\_WorkflowInstanceImpl.\_run\_top\_level\_workflow\_function() running at /Users/harshit.gupta/workspace\_obs/knowledge-ingestion-pipeline/.venv/lib/python3.10/site-packages/temporalio/worker/\_workflow\_instance.py:1348\> cb=[set.remove()]\>()\>  
Traceback (most recent call last):  
File “/Users/harshit.gupta/.pyenv/versions/3.10.14/lib/python3.10/asyncio/events.py”, line 80, in \_run  
self.\_context.run(self.\_callback, \*self.\_args)

using python 3.10  
temporalio==1.3.0

---

<div class="post-metadata">

**Author:** ![Harshit\_gupta](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/harshit_gupta/32/5543_2.png) [@Harshit\_gupta](https://community.temporal.io/u/Harshit_gupta)\
**Post date:** [July 27, 2024, 2:26pm UTC](https://community.temporal.io/t/getting-below-error-while-running-temporal-in-python/12694/4 "2024-07-27T14:26:58Z")

</div>

@Sakshi_Patil were you able to resolve this issue??
