votes up 2

Not inside a project

Package:
scrapy
github stars 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")
😲  Walkingbet is Android app that pays you real bitcoins for a walking. Withdrawable real money bonus is available now, hurry up! 🚶

Ways to fix

votes up 0 votes down

Summary:

scrapy crawl was ran outside project directory.

To fix:

Navigate to the folder where you ran scrapy startproject and run scrapy crawl

May 28, 2021 cRyp70s answer
cRyp70s 113

Add a possible fix

Please authorize to post fix