【发布时间】:2020-05-07 19:37:15
【问题描述】:
我正在尝试使用scrapyd-deploy 部署到远程scrapyd 服务器,但失败且没有错误消息:
% scrapyd-deploy
/Library/Frameworks/Python.framework/Versions/3.8/bin/scrapyd-deploy:23: ScrapyDeprecationWarning: Module `scrapy.utils.http` is deprecated, Please import from `w3lib.http` instead.
from scrapy.utils.http import basic_auth_header
fatal: No names found, cannot describe anything.
Packing version r3-master
Deploying to project "crawler" in http://ip:6843/addversion.json
Deploy failed (400):
没有显示更多错误消息。有人可以帮忙解决这个问题吗?
【问题讨论】:
-
您使用的是哪个版本的 Python 和 twisted?在带有 python-3.7 的 this case 中,似乎通过将 twisted 升级到 18.9 或更高版本来解决问题。
-
好提示!这可以解释为什么它在我的本地系统上运行。 17.9.0 安装在我的 ubuntu 18.04 系统上。现在我只需要弄清楚如何更新:-)
-
pip install -U Twisted==18.9.0。让我知道它是否解决了您的问题,以便我将评论转换为答案。 -
轰隆隆!!更新到twisted 20.3,这解决了它(遇到其他错误,但这个解决了)谢谢!我花了几个小时在谷歌上寻找解决方案,到处都没有成功!
标签: scrapy scrapyd scrapyd-deploy