Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SCRAPY_PROJECTS_DIR not detecting projects in directory #171

Open
caffeinatedMike opened this issue Dec 23, 2020 · 4 comments · May be fixed by #172
Open

SCRAPY_PROJECTS_DIR not detecting projects in directory #171

caffeinatedMike opened this issue Dec 23, 2020 · 4 comments · May be fixed by #172

Comments

@caffeinatedMike
Copy link

I'm currently developing locally on windows 10 and have the SCRAPY_PROJECTS_DIR setting set to SCRAPY_PROJECTS_DIR = 'C:/Users/mhill/PycharmProjects/dScrapy/d_webscraping'

In that directory, I have the following structure:

  • d_webscraping/nutritional (first project)
  • d_webscraping/pricingandreviews (second project)
  • d_webscraping/scrapy.cfg
  • d_webscraping/scrapydweb_settings_v10.py

scrapy.cfg file setup is like so:

[settings]
default = nutritional.settings
nutritional = nutritional.settings
pricingandreviews = pricingandreviews.settings

[deploy:nutritional]
url = http://localhost:6800/
project = nutritional

[deploy:pricingandreviews]
url = http://localhost:6800/
project = pricingandreviews

In scrapydweb_settings_v10.py SCRAPYDWEB_BIND, SCRAPYD_SERVERS, and LOCAL_SCRAPYD_SERVER all have '127.0.0.1:6800' as the server address.

What am I doing wrong? Shouldn't the above two projects be showing up on http://127.0.0.1:5000/1/deploy/? Instead, I see the error message No projects found in 'C:/Users/mhill/PycharmProjects/dScrapy/d_webscraping' of the ScrapydWeb host, check and update the SCRAPY_PROJECTS_DIR option in the config file.

@caffeinatedMike
Copy link
Author

Looking at the way this project handles the scrapy.cfg files made it clear why my projects aren't being picked up. Currently, this project does not account for projects that share the same root directory (see scrapy docs href). Can this be added?

@gingergenius
Copy link

gingergenius commented Jan 8, 2021

I have the same problem except I have a single scrapy project. I tried directing scrapydweb to the directory with the scrapy.cfg file and the one below it. It still does not see any available projects. How did you make this work?

@gingergenius
Copy link

Nevermind. I figured out that I just had to point scrapydweb one level higher in the path, also the parent folder of the one that contains scrapy.cfg. It works now

@caffeinatedMike
Copy link
Author

Glad you got it figured out. I was just about to point you to the changes I madex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants