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
My workaround was to use pyconcrete-admin.py ... -i tasks.py and have tasks.py simply star import an encrypted module (as no one will try to find that one ;) ).
Again, no pressure, but it will be great if we could have a hook for that library as well.
I'm just signaling this here, with a keyword Celery in case anyone else tumbles on this issues.
The text was updated successfully, but these errors were encountered:
Basically imp.find_module() can't integrate with Import Hook(MetaPath) by now. If we want to patch imp.find_module() at runtime, I am not sure it's a good idea, need to check all python version implementation about imp.find_module(), need more investigation.
First, thanks for the great library!
I added celery to the example project you had, and celery's autodiscover_tasks failed to discover my celery tasks.pye files.
Turns out that celery uses the builtin
imp
package to check iftasks.py
exists in all django apps, atapp/tasks.py
. In particular, it usesimp.find_module()
described here https://docs.python.org/2/library/imp.html#imp.find_moduleSadly,
imp.find_module
doesn't find.pye
files, such astasks.pye
.Celery code: https://github.com/celery/celery/blob/120770929f4a37c5373a378b75b5c41a99702af9/celery/utils/imports.py#L90
My workaround was to use
pyconcrete-admin.py ... -i tasks.py
and have tasks.py simply star import an encrypted module (as no one will try to find that one ;) ).Again, no pressure, but it will be great if we could have a hook for that library as well.
I'm just signaling this here, with a keyword
Celery
in case anyone else tumbles on this issues.The text was updated successfully, but these errors were encountered: