Closed hughie closed 7 years ago
because of :
/usr/bin/python: cannot import name maybe_sanitize_url; 'celeros' is a package and cannot be directly executed
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/groot/bootstrap_ws/src/celeros/deps/flower/flower/__main__.py", line 4, in <module>
from flower.command import FlowerCommand
File "/opt/groot/bootstrap_ws/src/celeros/deps/flower/flower/command.py", line 15, in <module>
from celery.bin.base import Command
File "/opt/groot/bootstrap_ws/src/celeros/deps/celery/celery/bin/__init__.py", line 3, in <module>
from .base import Option
File "/opt/groot/bootstrap_ws/src/celeros/deps/celery/celery/bin/base.py", line 86, in <module>
from celery import VERSION_BANNER, Celery, maybe_patch_concurrency
File "/opt/groot/bootstrap_ws/src/celeros/deps/celery/celery/five.py", line 306, in __getattr__
module = __import__(self._object_origins[name], None, None, [name])
File "/opt/groot/bootstrap_ws/src/celeros/deps/celery/celery/app/__init__.py", line 22, in <module>
from .base import Celery, AppPickler
File "/opt/groot/bootstrap_ws/src/celeros/deps/celery/celery/app/base.py", line 43, in <module>
from .utils import (
File "/opt/groot/bootstrap_ws/src/celeros/deps/celery/celery/app/utils.py", line 18, in <module>
from kombu.utils.url import maybe_sanitize_url
ImportError: cannot import name maybe_sanitize_url
This seems to have been triggered because kombu was not set to the right version.
After switching git branches with 'git checkout' it is always needed to 'git submodule update'
I ll keep this issue open for a while in case we hit that problem again...
I updated submodule. Are these expected version?
yujin@yujin-alien:/opt/groot/bootstrap_ws/src/celeros/deps$ git submodule status
38a005fffce71c481647175cbde2e3344cd9c2a5 Flask-Celery-Helper (v1.1.0-3-g38a005f)
2eb26145190bbbb8ea4e31fa5d5ffcc594800804 billiard (v3.3.0.22)
1996e612745ed55844f7f96baadb9b64b0b7cac4 celery (v3.1.20)
8b17282434a29a6424c3c2cb855f7e679b1d9985 celerybeatredis (remotes/origin/celeros)
d21fbca4348bfb76dafcaac359a16272fe96338f flower (v0.8.2-145-gd21fbca)
5d48da8e43ef66882af01df68dc33e5134a38039 kombu (v3.0.33)
ad8e232487a1b9e2f17b361cc4f87740df2134f9 redis (2.10.5)
e718bfde8315ac91e09ff4fc1fa421515afca294 tornado-cors (e718bfd)
The versions seems fine : http://docs.celeryproject.org/en/3.1/changelog.html#version-3-1-20
kombu has maybe_sanitize_url since 4.0.0 : https://github.com/celery/kombu/commit/66419eb780c8392286212c7a73c525277b10c970
So celery 3.1.X should not even try to import this. Are you sure this is the same error ?
No, I'm not sure now. but after that time, I could not see this error.
Maybe we can close this issue.
KeyError: u"unknown bootstep: 'celery.worker.components:Pool'"