title: Scrapy ImagesPipeline WARNING: File (unknown-error): Error downloading image from <GET
body: <p>I am learning Python and Scrapy and I am learning how to download images using it. I am kind of stuck right now and I cant figure out what the real problem is. </p>
  
  <p>I am getting this error message when I run the spider</p>
  
  <pre><code>&lt;None&gt;: Unsupported URL scheme '': no handler available for that scheme
  </code></pre>
  
  <p>and </p>
  
  <pre><code>[imageflip] WARNING: File (unknown-error): Error downloading image from &lt;GET
  </code></pre>
  
  <p>Please see my pipelines.py here</p>
  
  <pre><code>import scrapy
  from scrapy.contrib.pipeline.images import ImagesPipeline
  from scrapy.exceptions import DropItem
  
  
  class PriceoflipkartPipeline(object):
      def process_item(self, item, spider):
          return item
  
  class MyImagesPipeline(ImagesPipeline):
  
  def get_media_requests(self, item, info):
      for image_url in item['image_urls']:
          yield scrapy.Request(image_url)
  
  def item_completed(self, results, item, info):
      image_paths = [x['path'] for ok, x in results if ok]
      if not image_paths:
          raise DropItem("Item contains no images")
      item['image_paths'] = image_paths
      return item
  </code></pre>
  
  <p>Please see my settings.py here</p>
  
  <pre><code>SPIDER_MODULES = ['PriceoFlipkart.spiders']
  NEWSPIDER_MODULE = 'PriceoFlipkart.spiders'
  ITEM_PIPELINES = ['scrapy.contrib.pipeline.images.ImagesPipeline']
  IMAGES_STORE = 'D:\PriceoFlipkart\Images'
  IMAGES_EXPIRES = 90
  </code></pre>
  
  <p>Please see my Spider here</p>
  
  <pre><code>import scrapy
  from PriceoFlipkart.items import PriceoflipkartItem
  
  class FlipkartSpider(scrapy.Spider):
      name = "imageflip"
      allowed_domains = ["flipkart.com"]
       start_urls = [
      "http://www.flipkart.com/moto-g-2nd-gen/p/itme5z8n9mt77ajr?pid=MOBDYGZ6SHNB7RFC&amp;srno=b_1&amp;ref=06f4e48c-9548-45fa-b3ac-fa5fdf0e0d22"
  ]
  
  def parse(self, response):
      for sel in response.xpath('//body'):
          item = PriceoflipkartItem()
          item['image_urls'] = sel.select('//img[@class="productImage  current"]').extract()
          yield item
  </code></pre>
  
  <p>and in my item.py I have added the following code</p>
  
  <pre><code>image_urls = scrapy.Field()
  images = scrapy.Field()
  </code></pre>
  
  <p>Please advice me as to how to configure it correctly so that the image is downloaded. I am on a Windows 8 machine. Thank you in advance.  </p>