Scrapy ImportError: No module named Item
<p>I know that this question was already widely discussed, but I didn't find an answer. I'm getting error <strong>ImportError: No module named items</strong>. I've created a new project with <strong>$ scrapy startproject pluto</strong> and I have no equal names (in names of project, classes etc), to avoid <a href="http://stackoverflow.com/questions/10570635/scrapy-importerror-no-module-named-items">problem with naming</a>.</p>

<p><em>pluto_spider.py</em> :</p>

<pre><code>import scrapy
from items import PlutoItem

class PlutoSpider(scrapy.Spider):
  name = "plutoProj"

  allowed_domains = ['successories.com']
  start_urls = [
        'http://www.successories.com/iquote/category/39/inspirational-quotes/4',
        'http://www.successories.com/iquote/category/39/inspirational-quotes/6',
        ]

def parse(self,response):

  items = []

  for quote in response.css('div.quotebox'):
    item = PlutoItem()
    item['author'] =  quote.css('span.author a::text').extract_first()
    item['quote'] = quote.css('div.quote a::text').extract_first()
    items.append(item)
    return items
</code></pre>

<p><em>item.py</em> : </p>

<pre><code>import scrapy

class PlutoItem(scrapy.Item):
  author = scrapy.Field()
  quote = scrapy.Field()
</code></pre>

<p>This my folder's hierarchy:</p>

<pre><code>/pluto
/pluto/scrapy.cfg
/pluto/pluto/__init__.pyc
/pluto/pluto/__init__.py
/pluto/pluto/items.py
/pluto/pluto/pipelines.py
/pluto/pluto/settings.py
/pluto/pluto/settings.pyc
/pluto/pluto/spiders/__init__.py
/pluto/pluto/spiders/__init__.pyc
/pluto/pluto/spiders/pluto_spider.py
/pluto/pluto/spiders/pluto_spider.pyc
</code></pre>

<p>First of all, make sure to <em>execute the Scrapy command from inside the top level directory of your project</em>.</p>

<p>Or you may also try changing your import to:</p>

<pre><code>from pluto.items import PlutoItem
</code></pre>

python scrapy