Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行scrapy crawl woaidu出错 #13

Open
josephok opened this issue May 19, 2014 · 5 comments
Open

执行scrapy crawl woaidu出错 #13

josephok opened this issue May 19, 2014 · 5 comments

Comments

@josephok
Copy link

$ 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
Copy link
Owner

gnemoug commented May 21, 2014

graphite没有部署好

@heber
Copy link

heber commented Nov 21, 2014

请问下graphite应该怎么部署?谢谢!

@TylerzhangZC
Copy link

按照下面这个链接里面去安装好graphite并start后就可以了
http://www.vpsee.com/2012/05/install-graphite-on-ubuntu-12-04/

@CoolView
Copy link

注意要 每次启动carbon
$ cd /opt/graphite/
$ sudo ./bin/carbon-cache.py start

@lDaisy847800926
Copy link

我无法运行你的代码呀,是直接执行spider文件下的代码吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants