5

我正在为一个项目使用scrapy。我运行了以下命令来部署项目:

$scrapy deploy -l

然后我得到了以下o/p:

刮板 http://localhost:6800/

$cat scrapy.cfg

[settings] 
default = scrapBib.settings

[deploy:scrapysite]  
url = http://localhost:6800/  
project = scrapBib

$scrapy deploy scrapysite -p scrapBib

'Building egg of scrapBib-1346242513
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it

'build/bdist.linux-x86_64' does not exist -- can't clean it

'build/scripts-2.7' does not exist -- can't clean it

zip_safe flag not set; analyzing archive contents...

Deploying scrapBib-1346242513 to `http://localhost:6800/addversion.json`

2012-08-29 17:45:14+0530 [HTTPChannel,22,127.0.0.1] 127.0.0.1 - - [29/Aug/2012:12:15:13 

+0000] "POST /addversion.json HTTP/1.1" 200 79 "-" "Python-urllib/2.7"

Server response (200):

{"status": "ok", "project": "scrapBib", "version": "1346242513", "spiders": 0}

如您所见,虽然我在 project/spiders/ 文件夹中编写了 3 个蜘蛛,但将蜘蛛设为 0 。结果,我无法使用 curl 请求开始爬网。请帮忙

4

1 回答 1

5

我也遇到过这个问题,做两件事

1)从本地系统中删除project.egg-info, build, 。setup.py

2) 从您的服务器中删除所有已部署的版本。

然后尝试部署它将被修复...

于 2013-06-07T07:23:43.720 回答