当我尝试在我的服务器上启动celeryd时,我遇到了问题。我收到 TypeError:无效参数错误。
python manage.py celeryd
/apps/python/current/lib/python2.7/site-packages/django/core/management/base.py:259: RemovedInDjango19Warning: "requires_model_validation" is deprecated in favor of "requires_system_checks".
RemovedInDjango19Warning)
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/apps/python/current/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
utility.execute()
File "/apps/python/current/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/apps/python/current/lib/python2.7/site-packages/djcelery/management/base.py", line 82, in run_from_argv
return super(CeleryCommand, self).run_from_argv(argv)
File "/apps/python/current/lib/python2.7/site-packages/django/core/management/base.py", line 381, in run_from_argv
parser = self.create_parser(argv[0], argv[1])
File "/apps/python/current/lib/python2.7/site-packages/django/core/management/base.py", line 315, in create_parser
help='Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output')
File "/apps/python/current/lib/python2.7/optparse.py", line 1018, in add_option
raise TypeError, "invalid arguments"
TypeError: invalid arguments
我正在使用:
celery:3.1.18
django:1.8
Centos : 6.6
答案 0 :(得分:0)
似乎是您正在运行的Python版本的错误。我在Python 2.7版本中看到了这一点。然后我升级到2.7.9,现在就可以了。