You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/07 20:28:31 UTC

[GitHub] [airflow] turbaszek edited a comment on issue #11301: Celery 5.0

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


----------------------------------------------------------------
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:
users@infra.apache.org