Skip to content
Advertisement

scrapy not running ModuleNotFoundError: No module named ‘scraper.settings’

I am getting below error while running my scrapy project. I tried everything suggested on stackoverflow but yet nothing has solved the problem.

Feel free to ask for more information. Looking forward for any help.

JavaScript

Advertisement

Answer

Make sure your scrapy.cfg file has the same default and project name as your spider crawler name inside the spiders folder. I tried changing my spider crawler name in the python file and subsequently modifying the scrapy.cfg file and it works.

Screenshot of scrapy.cfg

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement