title: Scrapy: Unresolved Import Errors
body: <p>I'm using Python 2.7 with Eclipse.  I'm doing a tutorial that builds a basic web scraper with Scrapy.  Here is the link.</p>
  
  <p><a href="http://www.youtube.com/watch?v=4fbvkMhvsWY" rel="nofollow noreferrer">http://www.youtube.com/watch?v=4fbvkMhvsWY</a></p>
  
  <p>Before launching the scraper in command prompt I received "unresolved import" errors when attempting the following lines of code:</p>
  
  <pre><code>from scrapy.spider import BaseSpider
  
  from scrapy.selector import HtmlXPathSelector
  </code></pre>
  
  <p>When I attempt to crawl in command prompt with the following command:</p>
  
  <blockquote>
    <p>scrapy crawl myfile</p>
  </blockquote>
  
  <p>I get the error, <strong>"Spider not found: myfile"</strong>.</p>
  
  <p>I also get another unresolved import error in my items.py file.  "Field" not only gets the "unresolved import" error, but it also gets the "unused import" error.</p>
  
  <p>code from items.py file:</p>
  
  <pre><code>from scrapy.item import Item, Field
  </code></pre>
  
  <p>Here is the code from the spider file:</p>
  
  <p>Spider file(named Tutorial1.py)</p>
  
  <pre><code>from scrapy.spider import BaseSpider
  
  from scrapy.selector import HtmlXPathSelector
  
  class Tutorial1 (BaseSpider):
      name="Tutorial1"
  
      allowed_domains=['http://wikipedia.org']
      start_urls = ["http://en.wikipedia.org/wiki/Home_page",]
  
      def parse(self, response):
          hxs = HtmlXPathSelector(response)
          print hxs.select('//div/a').extract()
  </code></pre>
  
  <p>Also when attempting to do other tutorials I experience the same issues leading me to believe that this has something to do with my directory.  I'm not sure though.</p>
  
  <p>I've found other individuals are having similar problems.</p>
  
  <p><a href="https://stackoverflow.com/questions/10570635/scrapy-importerror-no-module-named-items">Scrapy: ImportError: No module named items</a></p>
  
  <p><a href="https://stackoverflow.com/questions/1806990/scrapy-spider-is-not-working">Scrapy spider is not working</a></p>
  
  <p>My system path looks like this:</p>
  
  <blockquote>
    <p>C:\Python27;C:\Python27\Scripts</p>
  </blockquote>
  
  <p>I do not get errors when importing the following:</p>
  
  <pre><code>import zope.interface
  
  import twisted
  
  import lxml
  
  import OpenSSL
  
  import scrapy
  </code></pre>
  
  <p>Please help me figure this out.  Thanks in advance.</p>