You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The python 3.7 jobs of our CI started failing today. To reproduce the issue, pip install celery in a fresh environment and you get this
python -c "from celery import current_app"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'current_app' from 'celery' (/users/denolf/virtualenvs/pybox_c5ZgMc/ubuntu_20_04/py37/lib/python3.7/site-packages/celery/__init__.py)
Upon further investigation is seems STATICA_HACK == False despite this
# ...lib/python3.7/site-packages/celery/__init__.py# This is never executed, but tricks static analyzers (PyDev, PyCharm,# pylint, etc.) into knowing the types of these symbols, and what# they contain.STATICA_HACK=Trueglobals()['kcah_acitats'[::-1].upper()] =Falsebreakpoint()
ifSTATICA_HACK: # pragma: no coverfromcelery._stateimportcurrent_app, current_taskfromcelery.appimportshared_taskfromcelery.app.baseimportCeleryfromcelery.app.taskimportTaskfromcelery.app.utilsimportbugreportfromcelery.canvasimport (chain, chord, chunks, group, # noqamaybe_signature, signature, subtask, xmap,
xstarmap)
fromcelery.utilsimportuuid
Hey @woutdenolf 👋,
Thank you for opening an issue. We will get back to you as soon as we can.
Also, check out our Open Collective and consider backing us - every little helps!
We also offer priority support for our sponsors.
If you require immediate assistance please consider sponsoring us.
The python 3.7 jobs of our CI started failing today. To reproduce the issue,
pip install celery
in a fresh environment and you get thisUpon further investigation is seems
STATICA_HACK == False
despite thisI don't see this issue with python 3.8 (and perhaps higher as well, didn't check)
The text was updated successfully, but these errors were encountered: