celery-pool-asyncio icon indicating copy to clipboard operation
celery-pool-asyncio copied to clipboard

Fails with python 3.6

Open dduraipandian opened this issue 4 years ago • 0 comments

  • Celery Executor version:
  • Python version: 3.6.11
  • Operating System: mac

Description

Fails with below error.

Traceback (most recent call last):
  File "/Users/durai/work/venv/harvester/lib/python3.6/site-packages/celery_pool_asyncio/tracer.py", line 184, in trace_task
    coro_task = asyncio.create_task(coro)
AttributeError: module 'asyncio' has no attribute 'create_task'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/durai/work/venv/harvester/lib/python3.6/site-packages/celery_pool_asyncio/tracer.py", line 246, in trace_task
    await coro_utils.await_anyway(waiter_task)
UnboundLocalError: local variable 'waiter_task' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/durai/work/venv/harvester/lib/python3.6/site-packages/celery_pool_asyncio/tracer.py", line 324, in trace_task
    await coro_utils.await_anyway(coro_task)
UnboundLocalError: local variable 'coro_task' referenced before assignment

dduraipandian avatar Aug 16 '20 18:08 dduraipandian