简体   繁体   English

无法使用scrapyd deploy在centos7中部署portia spider

[英]Unable to Deploy the portia spider in centos7 using scrapyd deploy

I have installed portia and scrapyd. 我已经安装了portia和scrapyd。

Created new project using Portia web UI - all ok 使用Portia Web UI创建新项目 - 一切正常

I can able to see the project folder in slyd/data/project/new_project 我可以在slyd/data/project/new_project看到项目文件夹

Then I have copied the new_folder to some other different path for deployment. 然后我将new_folder复制到其他一些不同的部署路径。

Updated the scrapy.cfg file as follows, 更新了scrapy.cfg文件,如下所示,

[deploy:local]
url = http://localhost:6800/
project = stack

And opened a terminal form the new_folder directory, entered the following command to get the deployment location, 并从new_folder目录中打开一个终端,输入以下命令获取部署位置,

scrapyd-deploy -l 

got the following error only, 只有以下错误,

错误信息

Could you please help me to resolve the issue? 你能帮我解决一下这个问题吗?

The program you used to edit the file added extra characters to the start of the file (Those characters being \\xef\\xbb\\xbf, the UTF-8 BOM). 您用来编辑文件的程序在文件的开头添加了额外的字符(这些字符是\\ xef \\ xbb \\ xbf,UTF-8 BOM)。 If you remove these characters it should work. 如果你删除这些字符,它应该工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM