title: scrapy install on debian
body: <p>I got an issue, scrapy was working fine until I uninstalled it and reinstalled.
  Since 0.24 wasn't available at the time on debian I added the ubuntu repo to my /etc/pat/sources.list.d and installed it with apt-get as described here : <a href="http://doc.scrapy.org/en/0.24/topics/ubuntu.html" rel="nofollow">http://doc.scrapy.org/en/0.24/topics/ubuntu.html</a></p>
  
  <p>today when seeing that it was available on debian I apt-get remove scrapy-0.24 (the one installed from ubuntu repo) and did apt-get install python-scrapy</p>
  
  <p>now when I do a <code>scrapy shell www.google.fr</code> here's the output :</p>
  
  <pre><code>2014-12-07 22:08:26+0100 [scrapy] INFO: Scrapy 0.24.2 started (bot: scrapybot)
  2014-12-07 22:08:26+0100 [scrapy] INFO: Optional features available: ssl, http11, boto, django
  2014-12-07 22:08:26+0100 [scrapy] INFO: Overridden settings: {'LOGSTATS_INTERVAL': 0}
  2014-12-07 22:08:26+0100 [scrapy] INFO: Enabled extensions: TelnetConsole, CloseSpider, WebService, CoreStats, SpiderState
  2014-12-07 22:08:26+0100 [scrapy] INFO: Enabled downloader middlewares: HttpAuthMiddleware, DownloadTimeoutMiddleware, UserAgentMiddleware, RetryMiddleware, DefaultHeadersMiddleware, MetaRefreshMiddleware, HttpCompressionMiddleware, RedirectMiddleware, CookiesMiddleware, ChunkedTransferMiddleware, DownloaderStats
  2014-12-07 22:08:26+0100 [scrapy] INFO: Enabled spider middlewares: HttpErrorMiddleware, OffsiteMiddleware, RefererMiddleware, UrlLengthMiddleware, DepthMiddleware
  2014-12-07 22:08:26+0100 [scrapy] INFO: Enabled item pipelines: 
  2014-12-07 22:08:26+0100 [scrapy] DEBUG: Telnet console listening on 127.0.0.1:6023
  2014-12-07 22:08:26+0100 [scrapy] DEBUG: Web service listening on 127.0.0.1:6080
  2014-12-07 22:08:26+0100 [default] INFO: Spider opened
  2014-12-07 22:08:26+0100 [default] DEBUG: Retrying &lt;GET file:///home/lotso/www.google.fr&gt; (failed 1 times): [Errno 2] No such file or directory: '/home/lotso/www.google.fr'
  2014-12-07 22:08:26+0100 [default] DEBUG: Retrying &lt;GET file:///home/lotso/www.google.fr&gt; (failed 2 times): [Errno 2] No such file or directory: '/home/lotso/www.google.fr'
  2014-12-07 22:08:26+0100 [default] DEBUG: Gave up retrying &lt;GET file:///home/lotso/www.google.fr&gt; (failed 3 times): [Errno 2] No such file or directory: '/home/lotso/www.google.fr'
  Traceback (most recent call last):
    File "/usr/bin/scrapy", line 4, in &lt;module&gt;
  execute()
    File "/usr/lib/python2.7/dist-packages/scrapy/cmdline.py", line 143, in execute
  _run_print_help(parser, _run_command, cmd, args, opts)
    File "/usr/lib/python2.7/dist-packages/scrapy/cmdline.py", line 89, in _run_print_help
  func(*a, **kw)
    File "/usr/lib/python2.7/dist-packages/scrapy/cmdline.py", line 150, in _run_command
  cmd.run(args, opts)
    File "/usr/lib/python2.7/dist-packages/scrapy/commands/shell.py", line 50, in run
  shell.start(url=url, spider=spider)
    File "/usr/lib/python2.7/dist-packages/scrapy/shell.py", line 45, in start
  self.fetch(url, spider)
    File "/usr/lib/python2.7/dist-packages/scrapy/shell.py", line 90, in fetch
  reactor, self._schedule, request, spider)
    File "/usr/lib/python2.7/dist-packages/twisted/internet/threads.py", line 122, in blockingCallFromThread
  result.raiseException()
    File "&lt;string&gt;", line 2, in raiseException
  IOError: [Errno 2] No such file or directory: '/home/lotso/www.google.fr'
  </code></pre>
  
  <p>as you can imagine <code>➜  ~  pwd
  /home/lotso
  </code>
  If I change directory it appends the directory where I am
  I tried uninstalling python-scrapy with purge then install it through pip and I got the same issue</p>
  
  <p>I'm at a loss now, I suspect an environment variable somewhere but failed to solve it myself... </p>