执行scrapy crawl woaidu出错
Opened this issue · 5 comments
josephok commented
$ scrapy crawl woaidu Traceback (most recent call last): File "/usr/local/bin/scrapy", line 4, in execute() File "/usr/local/lib/python2.7/dist-packages/scrapy/cmdline.py", line 143, in execute _run_print_help(parser, _run_command, cmd, args, opts) File "/usr/local/lib/python2.7/dist-packages/scrapy/cmdline.py", line 89, in _run_print_help func(*a, **kw) File "/usr/local/lib/python2.7/dist-packages/scrapy/cmdline.py", line 150, in _run_command cmd.run(args, opts) File "/usr/local/lib/python2.7/dist-packages/scrapy/commands/crawl.py", line 47, in run crawler = self.crawler_process.create_crawler() File "/usr/local/lib/python2.7/dist-packages/scrapy/crawler.py", line 87, in create_crawler self.crawlers[name] = Crawler(self.settings) File "/usr/local/lib/python2.7/dist-packages/scrapy/crawler.py", line 20, in __init__ self.stats = load_object(settings['STATS_CLASS'])(self) File "/home/joe/test/scrapy/woaidu_crawler/woaidu_crawler/statscol/graphite.py", line 209, in __init__ self._graphiteclient = GraphiteClient(host,port) File "/home/joe/test/scrapy/woaidu_crawler/woaidu_crawler/statscol/graphite.py", line 27, in __init__ self._sock.connect((host,port)) File "/usr/lib/python2.7/socket.py", line 224, in meth return getattr(self._sock,name)(*args) socket.error: [Errno 111] Connection refused
gnemoug commented
graphite没有部署好
heber commented
请问下graphite应该怎么部署?谢谢!
TylerzhangZC commented
按照下面这个链接里面去安装好graphite并start后就可以了
http://www.vpsee.com/2012/05/install-graphite-on-ubuntu-12-04/
CoolView commented
注意要 每次启动carbon
$ cd /opt/graphite/
$ sudo ./bin/carbon-cache.py start
lDaisy847800926 commented
我无法运行你的代码呀,是直接执行spider文件下的代码吗