title: Scrapy crawl error: [Error 123]The filename, directory name, or volume label syntax is incorrect
body: <p>I am programming using scrapy in windows, and I am entering in command</p>
  <blockquote>
  <p>C:\Users\David&gt;cd c:\python27\natliq</p>
  </blockquote>
  <p>which is the path where I have my spider. However, when I take my spider for a test run by running the crawl command I am getting the following error.</p>
  <blockquote>
  <p>File &quot;C:\python27\lib\os.py&quot;, line 157, in makedirs mkdir(name, mode)</p>
  <p>WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: 'c:\python27\natliq'</p>
  </blockquote>
  <p>I have not typed in a double backslash. So I guess my question is where scrapy or windows  is getting this error from. But how to fix it?</p>
  <p>FYI, I have tested my spider on Saturday and it worked. Now all of a sudden I am facing this message and have no clue how to resolve.</p>
  <p><strong>Spider Code:</strong></p>
  <pre><code>from scrapy.contrib.spiders import CrawlSpider, Rule
  from scrapy.selector import HtmlXPathSelector
  from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
  from natliq.items import NatliqItem
  from scrapy.http import Request
  from scrapy.contrib.pipeline.images import ImagesPipeline
  from PIL import Image
  
  
  class NatliqSpider(CrawlSpider):
      name = &quot;natliq&quot;
      allowed_domain = [&quot;&quot;]
      start_urls = [
      &quot;http://www.yachtauctions.com/inventory/&quot;
      ]
  
  rules = (
      Rule(
          SgmlLinkExtractor(
              restrict_xpaths = ('//td/a[3] [@class=&quot;inv-link&quot;]'),
              attrs = ('href'),
              ),
          follow=True,
          callback = 'item_parse',
          ),
      )
  def item_parse(self, response):
      hxs = HtmlXPathSelector(response)
      sites = hxs.select('//div[@class=&quot;content-area&quot;]/div[@class=&quot;listing&quot;]')
      items = []
      for site in sites:
          item = NatliqItem()
          item['price'] = site.select('//table[@class=&quot;inv-table&quot;]/tr[1]/td[2]/text()').extract()[0].strip()
          item['status'] = site.select('//table[@class=&quot;inv-table&quot;]/tr[2]/td[2]/text()').extract()[0].strip()
          item['stock_number'] = site.select('//table[@class=&quot;inv-table&quot;]/tr[3]/td[2]/text()').extract()[0].strip()
          item['vessel_type'] = site.select('//table[@class=&quot;inv-table&quot;]/tr[4]/td[2]/text()').extract()[0].strip()
          item['year'] = site.select('//table[@class=&quot;inv-table&quot;]/tr[5]/td[2]/text()').extract()[0].strip()
          item['make'] = site.select('//table[@class=&quot;inv-table&quot;]/tr[6]/td[2]/text()').extract()[0].strip()
          item['model'] = site.select('//table[@class=&quot;inv-table&quot;]/tr[7]/td[2]/text()').extract()[0].strip()
          item['description'] = site.select('//table[@class=&quot;inv-table&quot;]/tr[11]/td[2]/text()').extract()[0].strip()
          item['has_engine'] = site.select('//div[2]/table[@class=&quot;inv-table&quot;]/tr[1]/td[2]/text()').extract()[0].strip()
          item['numberOfEngines'] = site.select('//div[2]/table[@class=&quot;inv-table&quot;]/tr[2]/td[2]/text()').extract()[0].strip()
          item['engine_make'] = site.select('//div[2]/table[@class=&quot;inv-table&quot;]/tr[4]/td[2]/text()').extract()[0].strip()
          item['engine_model'] = site.select('//div[2]/table[@class=&quot;inv-table&quot;]/tr[5]/td[2]/text()').extract()[0].strip()
          item['fuel_type'] = site.select('//div[2]/table[@class=&quot;inv-table&quot;]/tr[6]/td[2]/text()').extract()[0].strip()
          item['engine_hp'] = site.select('//div[2]/table[@class=&quot;inv-table&quot;]/tr[7]/td[2]/text()').extract()[0].strip()
          item['engine_hours'] = site.select('//div[2]/table[@class=&quot;inv-table&quot;]/tr[8]/td[2]/text()').extract()[0].strip()
          item['location'] = site.select('//div[2]/table[@class=&quot;inv-table&quot;]/tr[14]/td[2]/text()').extract()[0].strip()
          # item['image_urls'] = [&quot;http://www.yachtauctions.com&quot; + x for x in site.select('//ul[@class=&quot;thethumbs&quot;]/li/a/@href').extract()[0].strip()
          items.append(item)
      return items
  </code></pre>