2015-06-04 65 views
1

我正在評估portia並運行到部署到etchyd的問題。由於'找不到模塊,因此無法部署portia項目'

當我嘗試使用

scrapyd-deploy local -p new_project 

從我的鮑西婭項目目錄,我得到了以下錯誤消息

Packing version 1433441798 
Deploying to project "new_project" in http://192.168.59.103:6800/addversion.json 
Server response (200): 
{"status": "error", "message": "ImportError: Error loading object 
'slybot.spidermanager.ZipfileSlybotSpiderManager': No module named slybot.spidermanager"} 

我有一個搬運工容器中運行波西亞,而另一個運行scrapyd部署我波西亞項目。

我的項目成功通過portiacrawl運行。 我也嘗試創建一個使用它成功地部署在scrapyd

我不知道在哪裏可以找到所生成的卵子文件startprojectgenspider命令的簡單scrapy項目。

Scrapyd登錄

2015-06-04 18:28:51+0000 [HTTPChannel,21,172.17.42.1] Unhandled Error 
     Traceback (most recent call last): 
      File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1618, in allContentReceived 
      req.requestReceived(command, path, version) 
      File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 773, in requestReceived 
      self.process() 
      File "/usr/lib/python2.7/dist-packages/twisted/web/server.py", line 132, in process 
      self.render(resrc) 
      File "/usr/lib/python2.7/dist-packages/twisted/web/server.py", line 167, in render 
      body = resrc.render(self) 
     --- <exception caught here> --- 
      File "/usr/lib/pymodules/python2.7/scrapyd/webservice.py", line 18, in render 
      return JsonResource.render(self, txrequest) 
      File "/usr/lib/pymodules/python2.7/scrapy/utils/txweb.py", line 10, in render 
      r = resource.Resource.render(self, txrequest) 
      File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 216, in render 
      return m(request) 
      File "/usr/lib/pymodules/python2.7/scrapyd/webservice.py", line 66, in render_POST 
      spiders = get_spider_list(project) 
      File "/usr/lib/pymodules/python2.7/scrapyd/utils.py", line 65, in get_spider_list 
      raise RuntimeError(msg.splitlines()[-1]) 
     exceptions.RuntimeError: ImportError: Error loading object 'slybot.spidermanager.ZipfileSlybotSpiderManager': No module named slybot.spidermanager 

2015-06-04 18:28:51+0000 [HTTPChannel,21,172.17.42.1] 172.17.42.1 - - [04/Jun/2015:18:28:51 +0000] "POST /addversion.json HTTP/1.1" 200 156 "-" "Python-urllib/2.7" 

任何想法我很想念?

回答

相關問題