Hi everyone,
I'm new to scrapy and I want to start contributing to this project, and
hopefully apply as a student in the next Gsoc :) I have already downloaded
scrapy from github, but I have problems running tests. I created a
virtualenv in scrapy root directory, where I installed scrapy using
pip install --editable .
In scrapy docs [1] says that tests are running using tox. I installed tox
using
pip install tox
But when I ran
tox
as the documentation says, it gives me the following error:
(.env)~/Proyectos/scrapy|master⚡ ⇒ tox
GLOB sdist-make: /home/lukas/Proyectos/scrapy/setup.py
py27 create: /home/lukas/Proyectos/scrapy/.tox/py27
py27 installdeps: -rrequirements.txt, boto, Pillow, django, leveldb, -rtests
/requirements.txt
ERROR: invocation failed, logfile: /home/lukas/Proyectos/scrapy/.tox/py27/
log/py27-1.log
ERROR: actionid=py27
msg=getenv
cmdargs=[local('/home/lukas/Proyectos/scrapy/.tox/py27/bin/pip'), 'install',
'--pre', '-rrequirements.txt', 'boto', 'Pillow', 'django', 'leveldb',
'-rtests/requirements.txt']
env={'INSTANCE': '', 'PYTHONIOENCODING': 'utf_8', 'QT_QPA_PLATFORMTHEME':
'appmenu-qt5', 'XDG_GREETER_DATA_DIR': '/var/lib/lightdm-data/lukas',
'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'AUTOJUMP_DATA_DIR':
'/home/lukas/.local/share/autojump', 'LC_CTYPE': 'es_CL.UTF-8',
'XDG_CURRENT_DESKTOP': 'Unity', 'QT_IM_MODULE': 'ibus', 'LOGNAME': 'lukas',
'USER': 'lukas', 'PATH':
'/home/lukas/Proyectos/scrapy/.tox/py27/bin:/home/lukas/Proyectos/scrapy/.env/bin:/home/lukas/dev/android/android-studio/bin:/home/lukas/.linuxbrew/bin:/home/lukas/.rbenv/shims:/home/lukas/.rbenv/bin:/usr/local/heroku/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games'
, 'XDG_VTNR': '7', 'GNOME_KEYRING_CONTROL': '/run/user/1000/keyring-elOPI0',
'PS1':
'(.env)%{$fg[cyan]%}%3~%{$reset_color%}%{$fg[red]%}|%{$reset_color%}$(git_prompt_info)%{$fg[cyan]%}\xe2\x87\x92%{$reset_color%}
', 'DISPLAY': ':0', 'LANG': 'es_CL.UTF-8', 'INFOPATH':
'/home/lukas/.linuxbrew/share/info:', 'TERM': 'xterm', 'SHELL': '/bin/zsh',
'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', 'XAUTHORITY'
: '/home/lukas/.Xauthority', 'LANGUAGE': 'es_CL:es', 'SESSION_MANAGER':
'local/notebook-lukas:@/tmp/.ICE-unix/2080,unix/notebook-lukas:/tmp/.ICE-unix/2080'
, 'XDG_DATA_DIRS':
'/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/',
'LESS_TERMCAP_me': '\x1b[0m', 'MANDATORY_PATH':
'/usr/share/gconf/ubuntu.mandatory.path', 'LESS_TERMCAP_mb': '\x1b[01;31m',
'TEXTDOMAIN': 'im-config', 'JOB': 'dbus', 'WINDOWID': '77594635',
'HISTCONTROL': 'erasedups', 'EDITOR': 'vim', 'MANPATH':
'/home/lukas/.linuxbrew/share/man:', 'SESSIONTYPE': 'gnome-session',
'IM_CONFIG_PHASE': '1', 'GPG_AGENT_INFO':
'/run/user/1000/keyring-elOPI0/gpg:0:1', 'HOME':
'/home/lukas/Proyectos/scrapy/.tox/py27/tmp/pseudo-home', 'QT4_IM_MODULE':
'ibus', 'SELINUX_INIT': 'YES', 'COMPIZ_BIN_PATH': '/usr/bin/',
'XDG_RUNTIME_DIR': '/run/user/1000', 'GTK_IM_MODULE': 'ibus', 'RBENV_SHELL':
'zsh', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'CLUTTER_IM_MODULE': 'xim',
'VIRTUAL_ENV': '/home/lukas/Proyectos/scrapy/.env', 'SSH_AUTH_SOCK':
'/run/user/1000/keyring-elOPI0/ssh', 'VTE_VERSION': '3409', 'GDMSESSION':
'ubuntu', 'XMODIFIERS': '@im=ibus', 'TEXTDOMAINDIR': '/usr/share/locale/',
'DESKTOP_SESSION': 'ubuntu', 'GNOME_KEYRING_PID': '1944', 'XDG_SEAT_PATH':
'/org/freedesktop/DisplayManager/Seat0', 'LESS_TERMCAP_md':
'\x1b[01;38;5;74m', 'XDG_SESSION_ID': 'c2', 'DBUS_SESSION_BUS_ADDRESS':
'unix:abstract=/tmp/dbus-dA2E4ffPcF', '_': '/usr/bin/tox', 'DEFAULTS_PATH':
'/usr/share/gconf/ubuntu.default.path', 'SESSION': 'ubuntu',
'LESS_TERMCAP_ue': '\x1b[0m', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad',
'XDG_CONFIG_DIRS': '/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg',
'GTK_MODULES': 'overlay-scrollbar:unity-gtk-module', 'UBUNTU_MENUPROXY': '1'
, 'XDG_SEAT': 'seat0', 'OLDPWD': '/home/lukas/Proyectos', 'GDM_LANG':
'es_CL', 'NODE_PATH':
'/usr/lib/nodejs:/usr/lib/node_modules:/usr/share/javascript',
'LESS_TERMCAP_se': '\x1b[0m', 'SHLVL': '1', 'PWD':
'/home/lukas/Proyectos/scrapy', 'LESS_TERMCAP_us': '\x1b[04;38;5;146m',
'COLORTERM': 'gnome-terminal', 'XDG_MENU_PREFIX': 'gnome-',
'LESS_TERMCAP_so': '\x1b[38;5;246m', 'LESS': '-R', 'PAGER': 'less',
'UPSTART_SESSION': 'unix:abstract=/com/ubuntu/upstart-session/1000/1946'}
Could not open requirements file: [Errno 2] No such file or directory:
'requirements.txt'
Storing debug log for failure in /home/lukas/Proyectos/scrapy/.tox/py27/tmp/
pseudo-home/.pip/pip.log
ERROR: could not install deps [-rrequirements.txt, boto, Pillow, django,
leveldb, -rtests/requirements.txt]
____________________________________________________________________________________________
summary
_____________________________________________________________________________________________
ERROR: py27: could not install deps [-rrequirements.txt, boto, Pillow,
django, leveldb, -rtests/requirements.tx]
>
>
I'm sure that I have all depts installed, because I ran *pip install
requirements.txt* and* pip install tests/requirements.txt* before. I
searched but I couldn't find nothing that helps me. Anyone has an idea of
what the problem can be?
Thanks in advance!
Lukas.
[1]: http://doc.scrapy.org/en/master/contributing.html#tests
--
You received this message because you are subscribed to the Google Groups
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.