• celery 报错处理


    node2:/celery/djtest#python manage.py celeryd -l info
    Traceback (most recent call last):
      File "manage.py", line 22, in <module>
        execute_from_command_line(sys.argv)
      File "/usr/local/python27/lib/python2.7/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
        utility.execute()
      File "/usr/local/python27/lib/python2.7/site-packages/django/core/management/__init__.py", line 355, in execute
        self.fetch_command(subcommand).run_from_argv(self.argv)
      File "/usr/local/python27/lib/python2.7/site-packages/django/core/management/__init__.py", line 205, in fetch_command
        klass = load_command_class(app_name, subcommand)
      File "/usr/local/python27/lib/python2.7/site-packages/django/core/management/__init__.py", line 40, in load_command_class
        module = import_module('%s.management.commands.%s' % (app_name, name))
      File "/usr/local/python27/lib/python2.7/importlib/__init__.py", line 37, in import_module
        __import__(name)
      File "/usr/local/python27/lib/python2.7/site-packages/djcelery/management/commands/celeryd.py", line 16, in <module>
        class Command(CeleryCommand):
      File "/usr/local/python27/lib/python2.7/site-packages/djcelery/management/commands/celeryd.py", line 20, in Command
        worker.get_options() +
    TypeError: can only concatenate tuple (not "NoneType") to tuple
    node2:/celery/djtest#
    
    
    
    pip install celery
    pip install celery-with-redis
    pip install django-celery
    
    检查是否安装

  • 相关阅读:
    HTML5中meta属性的使用详解
    前端部分兼容性问题汇总
    position元素定位详述
    jquery简单实现轮播图
    事件委托-选项卡案例
    async、await
    前端会遇到的算法
    arguments实参个数
    前端知识点整理(三)
    var、let、const
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13349389.html
Copyright © 2020-2023  润新知