Not inside a project
Package:
scrapy
41445

Exception Class:
NotConfigured
Raise code
return True
return bool(closest_scrapy_cfg())
def project_data_dir(project='default'):
"""Return the current project data dir, creating it if it doesn't exist"""
if not inside_project():
raise NotConfigured("Not inside a project")
cfg = get_config()
if cfg.has_option(DATADIR_CFG_SECTION, project):
d = cfg.get(DATADIR_CFG_SECTION, project)
else:
scrapy_cfg = closest_scrapy_cfg()
if not scrapy_cfg:
raise NotConfigured("Unable to find scrapy.cfg file to infer project data dir")
Links to the raise (1)
https://github.com/scrapy/scrapy/blob/ee682af3b06d48815dbdaa27c1177b94aaf679e1/scrapy/utils/project.py#L31Ways to fix
Summary:
scrapy crawl
was ran outside project directory.
To fix:
Navigate to the folder where you ran scrapy startproject
and run scrapy crawl
Add a possible fix
Please authorize to post fix