美文网首页
邮件没发出

邮件没发出

作者: 创造new_world | 来源:发表于2020-03-26 03:22 被阅读0次

    猜测是发送文件部分出现问题,果不其然,将redis修改低版本为2.10.6

    图片.png
    [2020-03-26 02:04:05,360: WARNING/MainProcess] celery@DESKTOP-MGJQEUR ready.
    [2020-03-26 02:04:05,577: ERROR/MainProcess] Unrecoverable error: AttributeError("'str' object has no attribute 'items'",)
    Traceback (most recent call last):
      File "d:\django\venv\lib\site-packages\celery\worker\__init__.py", line 206, in start
        self.blueprint.start(self)
      File "d:\django\venv\lib\site-packages\celery\bootsteps.py", line 123, in start
        step.start(parent)
      File "d:\django\venv\lib\site-packages\celery\bootsteps.py", line 374, in start
        return self.obj.start()
      File "d:\django\venv\lib\site-packages\celery\worker\consumer.py", line 278, in start
        blueprint.start(self)
      File "d:\django\venv\lib\site-packages\celery\bootsteps.py", line 123, in start
        step.start(parent)
      File "d:\django\venv\lib\site-packages\celery\worker\consumer.py", line 821, in start
        c.loop(*c.loop_args())
      File "d:\django\venv\lib\site-packages\celery\worker\loops.py", line 97, in synloop
        connection.drain_events(timeout=2.0)
      File "d:\django\venv\lib\site-packages\kombu\connection.py", line 288, in drain_events
        return self.transport.drain_events(self.connection, **kwargs)
      File "d:\django\venv\lib\site-packages\kombu\transport\virtual\__init__.py", line 847, in drain_events
        self._callbacks[queue](message)
      File "d:\django\venv\lib\site-packages\kombu\transport\virtual\__init__.py", line 534, in _callback
        self.qos.append(message, message.delivery_tag)
      File "d:\django\venv\lib\site-packages\kombu\transport\redis.py", line 146, in append
        pipe.zadd(self.unacked_index_key, delivery_tag, time()) \
      File "d:\django\venv\lib\site-packages\redis\client.py", line 2650, in zadd
        for pair in iteritems(mapping):
      File "d:\django\venv\lib\site-packages\redis\_compat.py", line 161, in iteritems
        return iter(x.items())
    AttributeError: 'str' object has no attribute 'items'
    Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x000001BD6E5E4730>
    Traceback (most recent call last):
      File "E:\tools2\02_python3.5\lib\weakref.py", line 117, in remove
    TypeError: 'NoneType' object is not callable
    
    
    图片.png 出现的情况 重新开机再次测试,一切正常

    ================连环问题=============

    但是邮件还是没有发出,又有一个思路就是虽然说我windows安装了redis,但是正是因为版本不匹配才降了版本,那么我应该在pycharm进行启动服务。

    图片.png

    经测试,发现在虚拟环境里面其实服务都是打开的,那么,就是本地redis远程服务没有打开,防火墙是不是有问题。pycharm无法找到修改远程连接的东西,唯一的的办法就是重新安装windows下的redis,覆盖掉虚拟环境里面的redis版本

    图片.png

    相关文章

      网友评论

          本文标题:邮件没发出

          本文链接:https://www.haomeiwen.com/subject/iuafuhtx.html