from _weakref import ( ImportError: cannot import name _remove_dead_weakref Tue Jul

启动uwsgi 时出现以下错误:

Traceback (most recent call last):
  File "./opsmanage/__init__.py", line 5, in <module>
    from .celery import app as celery_app
  File "./opsmanage/celery.py", line 11, in <module>
    from celery import Celery
  File "/usr/local/lib/python2.7/site-packages/celery/five.py", line 306, in __getattr__
    module = __import__(self._object_origins[name], None, None, [name])
  File "/usr/local/lib/python2.7/site-packages/celery/app/__init__.py", line 14, in <module>
    from celery import _state
  File "/usr/local/lib/python2.7/site-packages/celery/_state.py", line 17, in <module>
    import weakref
  File "/usr/local/lib/python2.7/weakref.py", line 14, in <module>
    from _weakref import (
ImportError: cannot import name _remove_dead_weakref
Tue Jul 23 09:42:52 2019 - unable to load app 0 (mountpoint='www.mypython.com|') (callable not found or import error)
Tue Jul 23 09:42:52 2019 - --- no python application found, check your startup logs for errors ---

解决方案:

如果是虚拟机可能是调整了cpu数量造成的python 出现故障,从新编译安装python 即可解决。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值