celery
celery copied to clipboard
Celery version needs to be upgraded
trafficstars
Following the set up instructions for the Flask web service, I get this error:
ImportError: cannot import name 'Celery' from 'celery' (/Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/celery/init.py) [2025-10-19 12:16:34 -0700] [6409] [INFO] Worker exiting (pid: 6409) [2025-10-19 12:16:34 -0700] [6408] [INFO] Shutting down: Master [2025-10-19 12:16:34 -0700] [6408] [INFO] Reason: Worker failed to boot.
The issue is due to Celery 5.2.6 not being compatible with the latest Python version. It can be solved by upgrading Celery to 5.4.0.