![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
BUG
丧心病狂博
get busy living or get busy dying
展开
-
MainProcess Process ‘ForkPoolWorker-84‘ pid:31087 exited with ‘signal 9 (SIGKILL)‘
flask + celery原因此报错是因为celery任务超过了 hard_time_limit 时间被celery主进程kill掉了, 应该还能找到此报错: MainProcess Hard time limit (300s) exceeded for (此处设置的hard_time_limit为300s)解决把soft_time_limit设置少于hard_time_limit, 并进行异常捕获处理即可存在问题查到公司原代码hard_time_limit为300s soft_time原创 2021-09-15 16:39:48 · 1124 阅读 · 0 评论 -
hexo部署报错 spawn failed
问题出现:原本是在mac正常使用的, 切换到windows时突然出现这个报错fatal: in unpopulated submodule '.deploy_git'FATAL { err: Error: Spawn failed at ChildProcess.<anonymous> (D:\workplace\blog\node_modules\hexo-util\lib\spawn.js:51:21) at ChildProcess.emit (even.原创 2021-06-13 22:42:08 · 1264 阅读 · 0 评论 -
the input device is not a TTY
环境: jenkins + docker + flask执行命令: docker-compose exec web_app flask db migrate问题说明: 配置自动部署时报错, 网上查说是exec 命令不能加 -it 去掉就不报错了, 但我并没有加解决: 加个 -d 命令改为 docker-compose exec -d web_app flask db migrate...原创 2021-05-27 11:16:23 · 283 阅读 · 1 评论 -
cannot import name ‘cached_property‘
flask-restplus运行报错ImportError: cannot import name 'cached_property'环境:Flask==1.1.2flask-restplus==0.13.0Werkzeug==1.0.1报错代码:from werkzeug import cached_property解决:将报错代码段改为 from werkzeug.utils import cached_property...原创 2020-05-17 17:34:45 · 2196 阅读 · 1 评论 -
vim [converted]乱码问题
环境:CentOS 72解释器:python3.7编辑器:vim 7.4问题: vim 编辑退出后会乱码 在编辑页面会看到【converted】字段解决方法:在vim的配置文件中加入设置编码字段即可sudo vi /etc/vimrc # 加入以下字段set encoding=utf-8set fileencoding=utf-8...原创 2019-10-19 20:49:50 · 1518 阅读 · 0 评论 -
报错UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 12: invalid continuation byte
pandas.read_csv() 读取文件报错,就是编码错误解决办法:打开目标文件另存为需要的格式如utf-8即可原创 2019-10-15 20:45:06 · 692 阅读 · 0 评论