Quantcast
Viewing all articles
Browse latest Browse all 14011

Scrapy ModuleNotFoundError: No module named 'page_scraper.page_scraper'

Currently working with Python Scrapy Library. The problem is that when I tried to run 'scrapy crawl <spider_name>' it returns No module named '<dir_name>.<dir_name>' due to 'from <dir_name>.<dir_name>.items import <item_class>'. The problem is if I just try 'from <dir_name>.items import <item_class>' it causes error as well with the error message 'Cannot find reference 'items' in 'imported module page_scraper'.

Project Tree

scrapy_hub-.venv-page_scraper--page_scraper---spiders----__init__.py----metadata.py---__init__.py---items.py---middlewares.py 

input

scrapy crawl <spider_name>

output

ModuleNotFoundError: No module named 'page_scraper.page_scraper'


Viewing all articles
Browse latest Browse all 14011

Trending Articles