super017 commented on issue #11301:
URL: https://github.com/apache/airflow/issues/11301#issuecomment-742192882


   > celery `5.0.2 (singularity)` did not work for me as well with airflow 
`1.10.9`.
   > 
   > ```shell
   > tail -f /var/log/airflow/airflow-worker-stderr---supervisor-josn515o.log 
   >     return f(*args, **kwargs)
   >   File "/usr/local/lib/python3.6/site-packages/airflow/bin/cli.py", line 
1395, in worker
   >     worker = worker.worker(app=celery_app)
   >   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 829, 
in __call__
   >     return self.main(*args, **kwargs)
   >   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 781, 
in main
   >     with self.make_context(prog_name, args, **extra) as ctx:
   >   File "/usr/local/lib/python3.6/site-packages/click/core.py", line 698, 
in make_context
   >     ctx = Context(self, info_name=info_name, parent=parent, **extra)
   > TypeError: __init__() got an unexpected keyword argument 'app'
   > ```
   > 
   > Downgrading to `4.4.7` did.
   > 
   > ```shell
   > apache-airflow==1.10.9
   > celery==4.4.7
   > celery[rabbitmq]==4.4.7
   > ```
   
   Two days ago when I was in the configuration airflow also appears this 
question,and my solution is
   > pip install apache-airflow
   > pip install apache-airflow[mysql]
   > pip install apache-airflow[celery]
   
   accorfing to dependency,the version of celery is 4.4.7


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to