HttpRunnerManager icon indicating copy to clipboard operation
HttpRunnerManager copied to clipboard

启动worker报错

Open wydydq opened this issue 7 years ago • 1 comments

启动worker报错,其它步骤都能正常完成, 使用Python 3.7.1,看说明好像是语法错误,不知道是不是python版本不对 Mars-MacBook-Pro:HttpRunnerManager mars$ python -V Python 3.7.1 Mars-MacBook-Pro:HttpRunnerManager mars$ pip -V pip 18.1 from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pip (python 3.7) Mars-MacBook-Pro:HttpRunnerManager mars$ python manage.py celery -A HttpRunnerManager worker --loglevel=info Traceback (most recent call last): File "manage.py", line 22, in execute_from_command_line(sys.argv) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/management/init.py", line 371, in execute_from_command_line utility.execute() File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/django/core/management/init.py", line 365, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/djcelery/management/commands/celery.py", line 21, in run_from_argv ['{0[0]} {0[1]}'.format(argv)] + argv[2:], File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/bin/celery.py", line 793, in execute_from_commandline super(CeleryCommand, self).execute_from_commandline(argv))) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/bin/base.py", line 311, in execute_from_commandline return self.handle_argv(self.prog_name, argv[1:]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/bin/celery.py", line 785, in handle_argv return self.execute(command, argv) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/bin/celery.py", line 717, in execute ).run_from_argv(self.prog_name, argv[1:], command=argv[0]) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/bin/worker.py", line 179, in run_from_argv return self(*args, **options) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/bin/base.py", line 274, in call ret = self.run(*args, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/bin/worker.py", line 194, in run pool_cls = (concurrency.get_implementation(pool_cls) or File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/concurrency/init.py", line 29, in get_implementation return symbol_by_name(cls, ALIASES) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/kombu/utils/init.py", line 96, in symbol_by_name module = imp(module_name, package=package, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in _call_with_frames_removed File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/concurrency/prefork.py", line 20, in from celery.concurrency.base import BasePool File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/concurrency/base.py", line 21, in from celery.utils import timer2 File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/celery/utils/timer2.py", line 21 from kombu.async.timer import Timer as Schedule ^ SyntaxError: invalid syntax Mars-MacBook-Pro:HttpRunnerManager mars$

wydydq avatar Dec 07 '18 09:12 wydydq

3.6.6可用,3.7更新增加的async保留字导致kombu库不可用

EthenQ avatar Dec 18 '18 09:12 EthenQ