gpt4 book ai didi

django - 无法启动 celeryd - 错误 : conflicting option string(s): --no-color

转载 作者:行者123 更新时间:2023-12-03 07:14:47 25 4
gpt4 key购买 nike

我正在使用 django v1.7.0b4 和 celery v3.1.1。按照 django installation guide 执行步骤。但我遇到了以下错误。

$ ./manage.py celeryd --help
Starting server in DEVELOPMENT Mode
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 427, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/__init__.py", line 419, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django_celery-3.1.10-py2.7.egg/djcelery/management/base.py", line 77, in run_from_argv
return super(CeleryCommand, self).run_from_argv(argv)
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 284, in run_from_argv
parser = self.create_parser(argv[0], argv[1])
File "/Library/Python/2.7/site-packages/django/core/management/base.py", line 265, in create_parser
option_list=self.option_list)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/optparse.py", line 1214, in __init__
add_help=add_help_option)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/optparse.py", line 1256, in _populate_option_list
self.add_options(option_list)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/optparse.py", line 1039, in add_options
self.add_option(option)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/optparse.py", line 1020, in add_option
self._check_conflict(option)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/optparse.py", line 995, in _check_conflict
option)
optparse.OptionConflictError: option -C/--no-color: conflicting option string(s): --no-color

还有其他人面临同样的问题吗?

编辑:

在 django v1.6.5 中运行良好。

最佳答案

您应该使用./manage.py celery worker而不是./manage.py celeryd

看起来使用时有一个错误:

django==1.7b4
celery==3.1.11
django-celery==3.1.10

一些可以帮助您避免此问题的提示:

  • 当您开始使用一个项目时,请远离测试版本,而使用稳定版本。
  • 不要使用已弃用的方法:./manage.py celeryd./manage celery worker 的旧弃用别名

关于django - 无法启动 celeryd - 错误 : conflicting option string(s): --no-color,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23910455/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com