devstack - "命令" python setup.py egg_info"失败,错误代码为1"

时间:2017-11-12 14:15:31

标签: python devstack

我在以物理机器运行的centos7中安装devstack。我遇到了问题" Command" python setup.py egg_info"失败,错误代码为1"。日志太长,无法发布所有内容。所以我只是发布了密钥。

2017-11-12 14:03:33.612 |   Downloading pyperclip-1.5.27.zip
2017-11-12 14:03:33.909 |     Complete output from command python setup.py egg_info:
2017-11-12 14:03:33.909 |     No protocol specified
2017-11-12 14:03:33.909 |     Traceback (most recent call last):
2017-11-12 14:03:33.909 |       File "<string>", line 1, in <module>
2017-11-12 14:03:33.909 |       File "/tmp/pip-build-a6kle5/pyperclip/setup.py", line 8, in <module>
2017-11-12 14:03:33.909 |         version=__import__('pyperclip').__version__,
2017-11-12 14:03:33.909 |       File "pyperclip/__init__.py", line 101, in <module>
2017-11-12 14:03:33.909 |         copy, paste = determine_clipboard()
2017-11-12 14:03:33.909 |       File "pyperclip/__init__.py", line 63, in determine_clipboard
2017-11-12 14:03:33.909 |         import gtk  # check if gtk is installed
2017-11-12 14:03:33.909 |       File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 64, in <module>
2017-11-12 14:03:33.909 |         _init()
2017-11-12 14:03:33.909 |       File "/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/__init__.py", line 52, in _init
2017-11-12 14:03:33.909 |         _gtk.init_check()
2017-11-12 14:03:33.909 |     RuntimeError: could not open display
2017-11-12 14:03:33.909 |     
2017-11-12 14:03:33.909 |     ----------------------------------------
2017-11-12 14:03:34.097 | Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-a6kle5/pyperclip/
2017-11-12 14:03:34.297 | +inc/python:pip_install:1                  exit_trap
2017-11-12 14:03:34.300 | +./stack.sh:exit_trap:493                  local r=1
2017-11-12 14:03:34.302 | ++./stack.sh:exit_trap:494                  jobs -p
2017-11-12 14:03:34.305 | +./stack.sh:exit_trap:494                  jobs=
2017-11-12 14:03:34.307 | +./stack.sh:exit_trap:497                  [[ -n '' ]]
2017-11-12 14:03:34.310 | +./stack.sh:exit_trap:503                  '[' -f '' ']'
2017-11-12 14:03:34.313 | +./stack.sh:exit_trap:508                  kill_spinner
2017-11-12 14:03:34.315 | +./stack.sh:kill_spinner:407               '[' '!' -z '' ']'
2017-11-12 14:03:34.318 | +./stack.sh:exit_trap:510                  [[ 1 -ne 0 ]]
2017-11-12 14:03:34.320 | +./stack.sh:exit_trap:511                  echo 'Error on exit'
2017-11-12 14:03:34.320 | Error on exit

我不知道如何处理它。有些人有想法吗? 非常感谢。

0 个答案:

没有答案