Skip to content Skip to sidebar Skip to footer

Scrapy Importerror: No Module Named Item

I know that this question was already widely discussed, but I didn't find an answer. I'm getting error ImportError: No module named items. I've created a new project with $ scrapy

Solution 1:

It looks like your items.py and pluto_spider.py are at different levels. You should make your import either from pluto import items or a relative import import ..items per PEP 328 to import the module.

If you want the class from pluto.items import PlutoItem

Solution 2:

First of all, make sure to execute the Scrapy command from inside the top level directory of your project.

Or you may also try changing your import to:

from pluto.itemsimportPlutoItem

Post a Comment for "Scrapy Importerror: No Module Named Item"