turbaszek edited a comment on issue #11301:
URL: https://github.com/apache/airflow/issues/11301#issuecomment-705173571


   > As far as I can tell it's to do with the Celery migration to use click for 
their cli instead of their custom one. I can try and find the stacktrace if 
you'd like and add it as an issue?
   
   @wolfrubin that would be helpful!
   
   Edit, did quick test:
   ```
   root@5257c48ec87e:/opt/airflow# airflow celery worker
   Traceback (most recent call last):
     File "/usr/local/bin/airflow", line 33, in <module>
       sys.exit(load_entry_point('apache-airflow', 'console_scripts', 
'airflow')())
     File "/opt/airflow/airflow/__main__.py", line 40, in main
       args.func(args)
     File "/opt/airflow/airflow/cli/cli_parser.py", line 52, in command
       func = import_string(import_path)
     File "/opt/airflow/airflow/utils/module_loading.py", line 32, in 
import_string
       module = import_module(module_path)
     File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in 
import_module
       return _bootstrap._gcd_import(name[level:], package, level)
     File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
     File "<frozen importlib._bootstrap>", line 983, in _find_and_load
     File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
     File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
     File "<frozen importlib._bootstrap_external>", line 728, in exec_module
     File "<frozen importlib._bootstrap>", line 219, in 
_call_with_frames_removed
     File "/opt/airflow/airflow/cli/commands/celery_command.py", line 29, in 
<module>
       from flower.command import FlowerCommand
     File "/usr/local/lib/python3.7/site-packages/flower/command.py", line 17, 
in <module>
       from celery.bin.base import Command
   ImportError: cannot import name 'Command' from 'celery.bin.base' 
(/usr/local/lib/python3.7/site-packages/celery/bin/base.py)
   ```
   and after commenting Flower:
   ```
   root@5257c48ec87e:/opt/airflow# airflow celery worker
   Traceback (most recent call last):
     File "/usr/local/bin/airflow", line 33, in <module>
       sys.exit(load_entry_point('apache-airflow', 'console_scripts', 
'airflow')())
     File "/opt/airflow/airflow/__main__.py", line 40, in main
       args.func(args)
     File "/opt/airflow/airflow/cli/cli_parser.py", line 53, in command
       return func(*args, **kwargs)
     File "/opt/airflow/airflow/utils/cli.py", line 86, in wrapper
       return f(*args, **kwargs)
     File "/opt/airflow/airflow/cli/commands/celery_command.py", line 133, in 
worker
       worker_instance = worker_bin.worker(app=celery_app)
     File "/usr/local/lib/python3.7/site-packages/click/core.py", line 829, in 
__call__
       return self.main(*args, **kwargs)
     File "/usr/local/lib/python3.7/site-packages/click/core.py", line 781, in 
main
       with self.make_context(prog_name, args, **extra) as ctx:
     File "/usr/local/lib/python3.7/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'
   ```


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