在本地环境下keystone用tox进行pep8代码检测时报错(新手求教)

提问于 2015-06-22 19:57:53 -0600

chengkunye 图像

系统ubuntu kylink15.04 本地环境根据官方文档http://docs.openstack.org/developer/keystone/setup.html进行配置 当运行tox -e pep8 keystone/tests/test_v3_policy.py命令时出错,下面时错误日志: 系统ubuntu kylink15.04 本地环境根据官方文档http://docs.openstack.org/developer/keystone/setup.html进行配置 当运行tox -e pep8 keystone/tests/test_v3_policy.py命令时出错,下面时错误日志: (.venv)root@scorpio-Inspiron-5537:/home/openstack/keystone# tox -e pep8 keystone/tests/unit/test_v3_controller.py pep8 create: /home/openstack/keystone/.tox/pep8 pep8 installdeps: -r/home/openstack/keystone/requirements.txt, -r/home/openstack/keystone/test-requirements.txt ERROR: invocation failed, logfile: /home/openstack/keystone/.tox/pep8/log/pep8-1.log ERROR: actionid=pep8 msg=getenv cmdargs=[local('/home/openstack/keystone/.tox/pep8/bin/pip'), 'install', '-U', '-r/home/openstack/keystone/requirements.txt', '-r/home/openstack/keystone/test-requirements.txt'] env={'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session0', '_': '/usr/bin/tox', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'XMODIFIERS': '@im=fcitx', 'DEFAULTS_PATH': '/usr/share/gconf/ubuntu.default.path', 'QT4_IM_MODULE': 'fcitx', 'GTK_IM_MODULE': 'fcitx', 'XDG_SESSION_DESKTOP': 'ubuntu', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'HOME': '/root', 'USER': 'root', 'INSTANCE': 'Unity', 'LANG': 'zh_CN.UTF-8', 'XDG_SESSION_ID': 'c2', 'UPSTART_EVENTS': 'started starting', 'XDG_DATA_DIRS': '/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/', 'PS1': '(.venv)\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ', 'UPSTART_JOB': 'unity-settings-daemon', 'SHELL': '/bin/bash', 'JAVA_TOOL_OPTIONS': '-javaagent:/usr/share/java/jayatanaag.jar ', 'LOGNAME': 'root', 'XAUTHORITY': '/root/.Xauthority', 'PATH': '/home/openstack/keystone/.tox/pep8/bin:/home/openstack/keystone/.venv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games', 'QT_QPA_PLATFORMTHEME': 'appmenu-qt5', 'XDG_VTNR': '7', 'UPSTART_SESSION': 'unix:abstract=/com/ubuntu/upstart-session/0/1736', 'DESKTOP_SESSION': 'ubuntu', 'VIRTUAL_ENV': '/home/openstack/keystone/.tox/pep8', 'XDG_SEAT': 'seat0', 'GNOME_KEYRING_PID': '', 'PWD': '/home/openstack/keystone', 'XDG_SESSION_TYPE': 'x11', 'GDMSESSION': 'ubuntu', 'WINDOWID': '75497483', 'JOB': 'gnome-session', 'LS_COLORS': 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:.tar=01;31:.tgz=01;31:.arc=01;31:.arj=01;31:.taz=01;31:.lha=01;31:.lz4=01;31:.lzh=01;31:.lzma=01;31:.tlz=01;31:.txz=01;31:.tzo=01;31:.t7z=01;31:.zip=01;31:.z=01;31:.Z=01;31:.dz=01;31:.gz=01;31:.lrz=01;31:.lz=01;31:.lzo=01;31:.xz=01;31:.bz2=01;31:.bz=01;31:.tbz=01;31:.tbz2=01;31:.tz=01;31:.deb=01;31:.rpm=01;31:.jar=01;31:.war=01;31:.ear=01;31:.sar=01;31:.rar=01;31:.alz=01;31:.ace=01;31:.zoo=01;31:.cpio=01;31:.7z=01;31:.rz=01;31:.cab=01;31:.jpg=01;35:.jpeg=01;35:.gif=01;35:.bmp=01;35:.pbm=01;35:.pgm=01;35:.ppm=01;35:.tga=01;35:.xbm=01;35:.xpm=01;35:.tif=01;35:.tiff=01;35:.png=01;35:.svg=01;35:.svgz=01;35:.mng=01;35:.pcx=01;35:.mov=01;35:.mpg=01;35:.mpeg ... (更多)

edit retag flag offensive close merge delete