scrapinghub / portia

Visual scraping for Scrapy
BSD 3-Clause "New" or "Revised" License
9.28k stars 1.41k forks source link

Portia 2.0: On starting slyd "no module named portia_server.settings" #667

Closed wildgarden closed 7 years ago

wildgarden commented 7 years ago

fresh checkout of branch nui-develop @ https://github.com/scrapinghub/portia/commit/9693bc16d87ba5f9c066c8e857223472eedac8de

ruairif commented 7 years ago

If you run:

export PYTHONPATH='/app/portia_server:/app/slyd:/app/slybot'
/app/slyd/bin/slyd -p 9002 -r /app/portiaui/dist & /app/portia_server/manage.py runserver

Does it work?

wildgarden commented 7 years ago

The error is gone, after adding the PYTHONPATH. However, I had to change the path since I use Vagrant. Thus app == vagrant . Morevover the /portiaui/dist was missing. Building as proposed in #674 failed in node postinstall. This failure might be due to the use of legacy binary "node".

ruairif commented 7 years ago

Thank you for the full list of what you needed to change. I'll add it to the docs when I'm updating them.