Inability to start celeryd - Error: conflicting option line (s): --no-color

I am using django v1.7.0b4 and celery v3.1.1. The following steps are in accordance with the django installation guide . But I am stuck in the error below.

$ ./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 

Anyone else facing the same problem?

Edited by:

Works well in django v1.6.5.

+3
django celery
May 28 '14 at 11:30
source share
2 answers

You should use ./manage.py celery worker instead of ./manage.py celeryd

There seems to be an error while using:

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

A few tips to help you avoid these problems:

  • When you start playing with a project, avoid beta versions, use a stable version.
  • Do not use deprecated methods: ./manage.py celeryd is the old deprecated alias for ./manage celery worker
+1
May 28 '14 at 20:48
source share

Incompatibility in the django-celeder was recorded two months ago: https://github.com/celery/django-celery/pull/320 . If you are using virtualenv then you can use monkey patch as follows:

 sed "s/\(= \['--app', '--loader', '--config'\)\]/\1, '--no-color']/" -i \ "$VIRTUAL_ENV/lib/python3.4/site-packages/djcelery/management/base.py" 

Tested with celery 3.1.13 and django-celery 3.1.10.

+1
Aug 24 '14 at
source share



All Articles