scrapinghub / portia

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

Unable to run portia in Kali Linux #727

Closed hackrush01 closed 7 years ago

hackrush01 commented 7 years ago

This is the error encountered after following docker steps in this RTD http://portia.readthedocs.io/en/2.0-docs/installation.html

(pvenv)  ⚡ root@hackrush  ~/GSoC/portia   master  docker run -i -t --rm -v ~/portia/data:/app/slyd/data:rw -p 9001:9001 --name portia portia
+ action=
+ shift
+ '[' -z '' ']'
+ _run
+ service nginx start
+ _set_env
+ path=/app/portia_server:/app/slyd:/app/slybot
+ export PYTHONPATH=/app/portia_server:/app/slyd:/app/slybot
+ PYTHONPATH=/app/portia_server:/app/slyd:/app/slybot
+ echo /app/portia_server:/app/slyd:/app/slybot
/app/portia_server:/app/slyd:/app/slybot
+ /app/portia_server/manage.py runserver
+ /app/slyd/bin/slyd -p 9002 -r /app/portiaui/dist
2017-02-27 21:46:28+0000 [-] Log opened.
2017-02-27 21:46:28.174008 [-] Splash version: 2.3.1
2017-02-27 21:46:28.174301 [-] WARNING: Lua scripting is not available because 'lupa' Python package is not installed
2017-02-27 21:46:28.174371 [-] Qt 5.5.1, PyQt 5.5.1, WebKit 538.1, sip 4.17, Twisted 16.1.1
2017-02-27 21:46:28.174427 [-] Python 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]
2017-02-27 21:46:28.174483 [-] Open files limit: 1048576
2017-02-27 21:46:28.174528 [-] Can't bump open files limit
2017-02-27 21:46:28.464519 [-] Xvfb is started: ['Xvfb', ':1295160480', '-screen', '0', '1024x768x24', '-nolisten', 'tcp']
2017-02-27 21:46:29.681937 [-] Traceback (most recent call last):
2017-02-27 21:46:29.682231 [-]   File "/app/slyd/bin/slyd", line 28, in <module>
2017-02-27 21:46:29.682401 [-]     splash.server.main(server_factory=make_server, argv=[])
2017-02-27 21:46:29.682555 [-]   File "/usr/local/lib/python2.7/dist-packages/splash/server.py", line 372, in main
2017-02-27 21:46:29.682775 [-]     server_factory=server_factory,
2017-02-27 21:46:29.682893 [-]   File "/usr/local/lib/python2.7/dist-packages/splash/server.py", line 291, in default_splash_server
2017-02-27 21:46:29.683089 [-]     argument_cache_max_entries=argument_cache_max_entries,
2017-02-27 21:46:29.683234 [-]   File "/app/slyd/bin/slyd", line 25, in make_server
2017-02-27 21:46:29.683396 [-]     'docroot': opts.root}))
2017-02-27 21:46:29.683520 [-]   File "/app/slyd/slyd/tap.py", line 88, in makeService
2017-02-27 21:46:29.683682 [-]     root = create_root(config, settings_module)
2017-02-27 21:46:29.683819 [-]   File "/app/slyd/slyd/tap.py", line 61, in create_root
2017-02-27 21:46:29.683986 [-]     for file_name in listdir(config['docroot']):
2017-02-27 21:46:29.684137 [-] OSError: [Errno 2] No such file or directory: '/app/portiaui/dist'
Performing system checks...

System check identified no issues (0 silenced).

You have 12 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): auth, contenttypes, db_repo, sessions.
Run 'python manage.py migrate' to apply them.

February 27, 2017 - 21:46:31
Django version 1.10.1, using settings 'portia_server.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C