environment set up from source doc missing required packages

Bug #1488765 reported by Yang Shengming
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
Undecided
Yang Shengming

Bug Description

http://docs.openstack.org/developer/zaqar/development-environment.html

when I execute command "tox -e genconfig", appear error as follow:

ERROR: invocation failed (exit code 1), logfile: /home/yang/zaqar/.tox/genconfig/log/genconfig-1.log
ERROR: actionid: genconfig
msg: getenv
cmdargs: [local('/home/yang/zaqar/.tox/genconfig/bin/pip'), 'install', '-U', '-r/home/yang/zaqar/requirements.txt', '-r/home/yang/zaqar/test-requirements.txt']
env: {'LESSOPEN': '||/usr/bin/lesspipe.sh %s', 'SSH_CLIENT': '172.16.197.1 43666 22', 'SELINUX_USE_CURRENT_RANGE': '', 'LOGNAME': 'root', 'USER': 'root', 'PATH': '/home/yang/zaqar/.tox/genconfig/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin', 'HOME': '/root', 'LANG': 'zh_CN.UTF-8', 'TERM': 'xterm-256color', 'SHELL': '/bin/bash', 'SHLVL': '1', 'HISTSIZE': '1000', 'PYTHONHASHSEED': '2833535674', 'XMODIFIERS': '@im=ibus', 'XDG_RUNTIME_DIR': '/run/user/0', 'VIRTUAL_ENV': '/home/yang/zaqar/.tox/genconfig', 'SELINUX_ROLE_REQUESTED': '', 'ZAQAR_TESTS_CONFIGS_DIR': '/home/yang/zaqar/zaqar/tests/etc/', 'XDG_SESSION_ID': '4', '_': '/usr/bin/tox', 'LS_COLORS': 'rs=0:di=38;5;27:ln=38;5;51:mh=44;38;5;15:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=05;48;5;232;38;5;15:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;34:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.axv=38;5;13:*.anx=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.axa=38;5;45:*.oga=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:', 'SSH_TTY': '/dev/pts/2', 'OLDPWD': '/root', 'HOSTNAME': 'fedora 20', 'SELINUX_LEVEL_REQUESTED': '', 'HISTCONTROL': 'ignoredups', 'PWD': '/home/yang/zaqar', 'MAIL': '/var/spool/mail/root', 'SSH_CONNECTION': '172.16.197.1 43666 172.16.197.130 22'}

Collecting pbr<2.0,>=1.4 (from -r /home/yang/zaqar/requirements.txt (line 1))
  Using cached pbr-1.6.0-py2.py3-none-any.whl
Collecting Babel>=1.3 (from -r /home/yang/zaqar/requirements.txt (line 2))
Collecting netaddr>=0.7.12 (from -r /home/yang/zaqar/requirements.txt (line 3))
  Using cached netaddr-0.7.15-py2.py3-none-any.whl
Collecting falcon<0.2.0,>=0.1.6 (from -r /home/yang/zaqar/requirements.txt (line 4))
Collecting jsonschema!=2.5.0,<3.0.0,>=2.0.0 (from -r /home/yang/zaqar/requirements.txt (line 5))
  Using cached jsonschema-2.5.1-py2.py3-none-any.whl
Collecting iso8601>=0.1.9 (from -r /home/yang/zaqar/requirements.txt (line 6))
Collecting keystonemiddleware>=2.0.0 (from -r /home/yang/zaqar/requirements.txt (line 7))
  Using cached keystonemiddleware-2.1.0-py2.py3-none-any.whl
Collecting msgpack-python>=0.4.0 (from -r /home/yang/zaqar/requirements.txt (line 8))
Collecting posix-ipc (from -r /home/yang/zaqar/requirements.txt (line 9))
  Using cached posix_ipc-1.0.0.tar.gz
Collecting python-memcached>=1.56 (from -r /home/yang/zaqar/requirements.txt (line 10))
  Using cached python_memcached-1.57-py2.py3-none-any.whl
Collecting WebOb>=1.2.3 (from -r /home/yang/zaqar/requirements.txt (line 11))
Collecting stevedore>=1.5.0 (from -r /home/yang/zaqar/requirements.txt (line 12))
  Using cached stevedore-1.7.0-py2.py3-none-any.whl
Collecting six>=1.9.0 (from -r /home/yang/zaqar/requirements.txt (line 13))
  Using cached six-1.9.0-py2.py3-none-any.whl
Collecting oslo.config>=2.1.0 (from -r /home/yang/zaqar/requirements.txt (line 14))
  Using cached oslo.config-2.3.0-py2.py3-none-any.whl
Collecting oslo.context>=0.2.0 (from -r /home/yang/zaqar/requirements.txt (line 15))
  Using cached oslo.context-0.5.0-py2.py3-none-any.whl
Collecting oslo.i18n>=1.5.0 (from -r /home/yang/zaqar/requirements.txt (line 16))
  Using cached oslo.i18n-2.5.0-py2.py3-none-any.whl
Collecting oslo.log>=1.8.0 (from -r /home/yang/zaqar/requirements.txt (line 17))
  Using cached oslo.log-1.10.0-py2.py3-none-any.whl
Collecting oslo.serialization>=1.4.0 (from -r /home/yang/zaqar/requirements.txt (line 18))
  Using cached oslo.serialization-1.8.0-py2.py3-none-any.whl
Collecting oslo.utils>=2.0.0 (from -r /home/yang/zaqar/requirements.txt (line 19))
  Using cached oslo.utils-2.4.0-py2.py3-none-any.whl
Collecting SQLAlchemy<1.1.0,>=0.9.7 (from -r /home/yang/zaqar/requirements.txt (line 20))
Collecting enum34 (from -r /home/yang/zaqar/requirements.txt (line 21))
Collecting trollius>=1.0 (from -r /home/yang/zaqar/requirements.txt (line 22))
Collecting autobahn>=0.10.1 (from -r /home/yang/zaqar/requirements.txt (line 23))
Collecting requests>=2.5.2 (from -r /home/yang/zaqar/requirements.txt (line 24))
  Using cached requests-2.7.0-py2.py3-none-any.whl
Collecting futurist>=0.1.2 (from -r /home/yang/zaqar/requirements.txt (line 25))
  Using cached futurist-0.4.0-py2.py3-none-any.whl
Collecting hacking<0.11,>=0.10.0 (from -r /home/yang/zaqar/test-requirements.txt (line 1))
  Using cached hacking-0.10.2-py2.py3-none-any.whl
Collecting mock>=1.2 (from -r /home/yang/zaqar/test-requirements.txt (line 2))
  Using cached mock-1.3.0-py2.py3-none-any.whl
Collecting redis>=2.10.0 (from -r /home/yang/zaqar/test-requirements.txt (line 3))
Collecting pymongo>=3.0.2 (from -r /home/yang/zaqar/test-requirements.txt (line 4))
Collecting coverage>=3.6 (from -r /home/yang/zaqar/test-requirements.txt (line 5))
Collecting ddt>=0.7.0 (from -r /home/yang/zaqar/test-requirements.txt (line 6))
  Using cached ddt-1.0.0-py2.py3-none-any.whl
Collecting discover (from -r /home/yang/zaqar/test-requirements.txt (line 7))
Collecting fixtures>=1.3.1 (from -r /home/yang/zaqar/test-requirements.txt (line 8))
  Using cached fixtures-1.3.1-py2.py3-none-any.whl
Collecting python-subunit>=0.0.18 (from -r /home/yang/zaqar/test-requirements.txt (line 9))
Collecting testrepository>=0.0.18 (from -r /home/yang/zaqar/test-requirements.txt (line 10))
Collecting testtools>=1.4.0 (from -r /home/yang/zaqar/test-requirements.txt (line 11))
  Using cached testtools-1.8.0-py2.py3-none-any.whl
Collecting sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2 (from -r /home/yang/zaqar/test-requirements.txt (line 12))
  Using cached Sphinx-1.2.3-py2-none-any.whl
Collecting oslosphinx>=2.5.0 (from -r /home/yang/zaqar/test-requirements.txt (line 13))
  Using cached oslosphinx-3.1.0-py2.py3-none-any.whl
Collecting openstack-doc-tools>=0.23 (from -r /home/yang/zaqar/test-requirements.txt (line 14))
  Using cached openstack_doc_tools-0.30.0-py2.py3-none-any.whl
Collecting oslotest>=1.10.0 (from -r /home/yang/zaqar/test-requirements.txt (line 15))
  Using cached oslotest-1.10.0-py2.py3-none-any.whl
Collecting pytz>=0a (from Babel>=1.3->-r /home/yang/zaqar/requirements.txt (line 2))
  Using cached pytz-2015.4-py2.py3-none-any.whl
Collecting python-mimeparse (from falcon<0.2.0,>=0.1.6->-r /home/yang/zaqar/requirements.txt (line 4))
Collecting functools32 (from jsonschema!=2.5.0,<3.0.0,>=2.0.0->-r /home/yang/zaqar/requirements.txt (line 5))
Collecting python-keystoneclient>=1.6.0 (from keystonemiddleware>=2.0.0->-r /home/yang/zaqar/requirements.txt (line 7))
  Using cached python_keystoneclient-1.6.0-py2.py3-none-any.whl
Collecting pycadf>=0.8.0 (from keystonemiddleware>=2.0.0->-r /home/yang/zaqar/requirements.txt (line 7))
  Using cached pycadf-1.1.0-py2-none-any.whl
Collecting argparse (from stevedore>=1.5.0->-r /home/yang/zaqar/requirements.txt (line 12))
  Using cached argparse-1.3.0-py2.py3-none-any.whl
Collecting debtcollector>=0.3.0 (from oslo.log>=1.8.0->-r /home/yang/zaqar/requirements.txt (line 17))
  Using cached debtcollector-0.7.0-py2.py3-none-any.whl
Collecting netifaces>=0.10.4 (from oslo.utils>=2.0.0->-r /home/yang/zaqar/requirements.txt (line 19))
  Using cached netifaces-0.10.4.tar.gz
Collecting monotonic>=0.3 (from oslo.utils>=2.0.0->-r /home/yang/zaqar/requirements.txt (line 19))
Collecting futures (from trollius>=1.0->-r /home/yang/zaqar/requirements.txt (line 22))
  Using cached futures-3.0.3-py2-none-any.whl
Collecting txaio>=1.0.2 (from autobahn>=0.10.1->-r /home/yang/zaqar/requirements.txt (line 23))
Collecting contextlib2>=0.4.0 (from futurist>=0.1.2->-r /home/yang/zaqar/requirements.txt (line 25))
Collecting pep8==1.5.7 (from hacking<0.11,>=0.10.0->-r /home/yang/zaqar/test-requirements.txt (line 1))
  Using cached pep8-1.5.7-py2.py3-none-any.whl
Collecting flake8==2.2.4 (from hacking<0.11,>=0.10.0->-r /home/yang/zaqar/test-requirements.txt (line 1))
Collecting mccabe==0.2.1 (from hacking<0.11,>=0.10.0->-r /home/yang/zaqar/test-requirements.txt (line 1))
Collecting pyflakes==0.8.1 (from hacking<0.11,>=0.10.0->-r /home/yang/zaqar/test-requirements.txt (line 1))
  Using cached pyflakes-0.8.1-py2.py3-none-any.whl
Collecting funcsigs (from mock>=1.2->-r /home/yang/zaqar/test-requirements.txt (line 2))
  Using cached funcsigs-0.4-py2.py3-none-any.whl
Collecting extras (from python-subunit>=0.0.18->-r /home/yang/zaqar/test-requirements.txt (line 9))
Collecting unittest2>=1.0.0 (from testtools>=1.4.0->-r /home/yang/zaqar/test-requirements.txt (line 11))
  Using cached unittest2-1.1.0-py2.py3-none-any.whl
Collecting traceback2 (from testtools>=1.4.0->-r /home/yang/zaqar/test-requirements.txt (line 11))
  Using cached traceback2-1.4.0-py2.py3-none-any.whl
Collecting docutils>=0.7 (from sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2->-r /home/yang/zaqar/test-requirements.txt (line 12))
Collecting Jinja2>=2.3 (from sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2->-r /home/yang/zaqar/test-requirements.txt (line 12))
  Using cached Jinja2-2.8-py2.py3-none-any.whl
Collecting Pygments>=1.2 (from sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2->-r /home/yang/zaqar/test-requirements.txt (line 12))
  Using cached Pygments-2.0.2-py2-none-any.whl
Collecting lxml>=2.3 (from openstack-doc-tools>=0.23->-r /home/yang/zaqar/test-requirements.txt (line 14))
  Using cached lxml-3.4.4.tar.gz
Collecting demjson (from openstack-doc-tools>=0.23->-r /home/yang/zaqar/test-requirements.txt (line 14))
Collecting PyYAML>=3.1.0 (from openstack-doc-tools>=0.23->-r /home/yang/zaqar/test-requirements.txt (line 14))
Collecting mox3>=0.7.0 (from oslotest>=1.10.0->-r /home/yang/zaqar/test-requirements.txt (line 15))
  Using cached mox3-0.9.0-py2-none-any.whl
Collecting os-client-config>=1.4.0 (from oslotest>=1.10.0->-r /home/yang/zaqar/test-requirements.txt (line 15))
  Using cached os_client_config-1.6.3-py2-none-any.whl
Collecting testscenarios>=0.4 (from oslotest>=1.10.0->-r /home/yang/zaqar/test-requirements.txt (line 15))
  Using cached testscenarios-0.5.0-py2.py3-none-any.whl
Collecting PrettyTable<0.8,>=0.7 (from python-keystoneclient>=1.6.0->keystonemiddleware>=2.0.0->-r /home/yang/zaqar/requirements.txt (line 7))
Collecting wrapt>=1.7.0 (from debtcollector>=0.3.0->oslo.log>=1.8.0->-r /home/yang/zaqar/requirements.txt (line 17))
Collecting linecache2 (from traceback2->testtools>=1.4.0->-r /home/yang/zaqar/test-requirements.txt (line 11))
  Using cached linecache2-1.0.0-py2.py3-none-any.whl
Collecting MarkupSafe (from Jinja2>=2.3->sphinx!=1.2.0,!=1.3b1,<1.3,>=1.1.2->-r /home/yang/zaqar/test-requirements.txt (line 12))
Collecting appdirs>=1.3.0 (from os-client-config>=1.4.0->oslotest>=1.10.0->-r /home/yang/zaqar/test-requirements.txt (line 15))
  Using cached appdirs-1.4.0-py2.py3-none-any.whl
Building wheels for collected packages: posix-ipc, netifaces, lxml
  Running setup.py bdist_wheel for posix-ipc
  Complete output from command /home/yang/zaqar/.tox/genconfig/bin/python -c "import setuptools;__file__='/tmp/pip-build-h3dfDC/posix-ipc/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpn9lPUYpip-wheel-:
  running bdist_wheel
  running build
  running build_ext
  building 'posix_ipc' extension
  creating build
  creating build/temp.linux-x86_64-2.7
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c posix_ipc_module.c -o build/temp.linux-x86_64-2.7/posix_ipc_module.o
  posix_ipc_module.c:33:20: 致命错误:Python.h:没有那个文件或目录
   #include <Python.h>
                      ^
  编译中断。
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for posix-ipc
  Running setup.py bdist_wheel for netifaces
  Complete output from command /home/yang/zaqar/.tox/genconfig/bin/python -c "import setuptools;__file__='/tmp/pip-build-h3dfDC/netifaces/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp70pAxopip-wheel-:
  running bdist_wheel
  running build
  running build_ext
  checking for getifaddrs...found.
  checking for getnameinfo...found.
  checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h.
  checking whether struct sockaddr has a length field...no.
  checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un ash ec ll atmpvc atmsvc dn irda llc.
  checking for routing socket support...no.
  checking for sysctl(CTL_NET...) support...no.
  checking for netlink support...yes.
  will use netlink to read routing table
  building 'netifaces' extension
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DNETIFACES_VERSION=0.10.4 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/usr/include/python2.7 -c netifaces.c -o build/temp.linux-x86_64-2.7/netifaces.o
  netifaces.c:1:20: 致命错误:Python.h:没有那个文件或目录
   #include <Python.h>
                      ^
  编译中断。
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for netifaces
  Running setup.py bdist_wheel for lxml
  Complete output from command /home/yang/zaqar/.tox/genconfig/bin/python -c "import setuptools;__file__='/tmp/pip-build-h3dfDC/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpHKvx8Bpip-wheel-:
  /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
    warnings.warn(msg)
  Building lxml version 3.4.4.
  Building without Cython.
  Using build configuration of libxslt 1.1.28
  Building against libxml2/libxslt in the following directory: /usr/lib64
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-2.7
  creating build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/doctestcompare.py -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/__init__.py -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/_elementpath.py -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/sax.py -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/ElementInclude.py -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/pyclasslookup.py -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/cssselect.py -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/builder.py -> build/lib.linux-x86_64-2.7/lxml
  creating build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/__init__.py -> build/lib.linux-x86_64-2.7/lxml/includes
  creating build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/diff.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/defs.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/__init__.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/ElementSoup.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/soupparser.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/_setmixin.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/usedoctest.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/formfill.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/clean.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/_diffcommand.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/html5parser.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/builder.py -> build/lib.linux-x86_64-2.7/lxml/html
  copying src/lxml/html/_html5builder.py -> build/lib.linux-x86_64-2.7/lxml/html
  creating build/lib.linux-x86_64-2.7/lxml/isoschematron
  copying src/lxml/isoschematron/__init__.py -> build/lib.linux-x86_64-2.7/lxml/isoschematron
  copying src/lxml/lxml.etree.h -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/lxml.etree_api.h -> build/lib.linux-x86_64-2.7/lxml
  copying src/lxml/includes/xinclude.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/uri.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xmlschema.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/htmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xslt.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/tree.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xmlparser.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xpath.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/schematron.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/config.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/dtdvalid.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/c14n.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/etreepublic.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/xmlerror.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/relaxng.pxd -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/etree_defs.h -> build/lib.linux-x86_64-2.7/lxml/includes
  copying src/lxml/includes/lxml-version.h -> build/lib.linux-x86_64-2.7/lxml/includes
  creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources
  creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng
  copying src/lxml/isoschematron/resources/rng/iso-schematron.rng -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/rng
  creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
  copying src/lxml/isoschematron/resources/xsl/RNG2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
  copying src/lxml/isoschematron/resources/xsl/XSD2Schtrn.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl
  creating build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_skeleton_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_abstract_expand.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_svrl_for_xslt1.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_schematron_message.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/iso_dsdl_include.xsl -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  copying src/lxml/isoschematron/resources/xsl/iso-schematron-xslt1/readme.txt -> build/lib.linux-x86_64-2.7/lxml/isoschematron/resources/xsl/iso-schematron-xslt1
  running build_ext
  building 'lxml.etree' extension
  creating build/temp.linux-x86_64-2.7
  creating build/temp.linux-x86_64-2.7/src
  creating build/temp.linux-x86_64-2.7/src/lxml
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/libxml2 -I/tmp/pip-build-h3dfDC/lxml/src/lxml/includes -I/usr/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.linux-x86_64-2.7/src/lxml/lxml.etree.o -w
  src/lxml/lxml.etree.c:8:22: 致命错误:pyconfig.h:没有那个文件或目录
   #include "pyconfig.h"
                        ^
  编译中断。
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for lxml
Failed to build posix-ipc netifaces lxml
Installing collected packages: pbr, pytz, Babel, netaddr, six, python-mimeparse, falcon, functools32, jsonschema, iso8601, oslo.i18n, msgpack-python, netifaces, monotonic, wrapt, debtcollector, oslo.utils, oslo.serialization, argparse, PrettyTable, stevedore, oslo.config, requests, python-keystoneclient, WebOb, pycadf, oslo.context, keystonemiddleware, posix-ipc, python-memcached, oslo.log, SQLAlchemy, enum34, futures, trollius, txaio, autobahn, contextlib2, futurist, pep8, mccabe, pyflakes, flake8, hacking, funcsigs, mock, redis, pymongo, coverage, ddt, discover, extras, linecache2, traceback2, unittest2, testtools, fixtures, python-subunit, testrepository, docutils, MarkupSafe, Jinja2, Pygments, sphinx, oslosphinx, lxml, demjson, PyYAML, openstack-doc-tools, mox3, appdirs, os-client-config, testscenarios, oslotest
  Running setup.py install for netifaces
    Complete output from command /home/yang/zaqar/.tox/genconfig/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-h3dfDC/netifaces/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GW3xYM-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/yang/zaqar/.tox/genconfig/include/site/python2.7/netifaces:
    running install
    running build
    running build_ext
    checking for getifaddrs...found. (cached)
    checking for getnameinfo...found. (cached)
    checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h. (cached)
    checking whether struct sockaddr has a length field...no. (cached)
    checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un ash ec ll atmpvc atmsvc dn irda llc. (cached)
    checking for routing socket support...no. (cached)
    checking for sysctl(CTL_NET...) support...no. (cached)
    checking for netlink support...yes. (cached)
    will use netlink to read routing table
    building 'netifaces' extension
    gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DNETIFACES_VERSION=0.10.4 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/usr/include/python2.7 -c netifaces.c -o build/temp.linux-x86_64-2.7/netifaces.o
    netifaces.c:1:20: 致命错误:Python.h:没有那个文件或目录
     #include <Python.h>
                        ^
    编译中断。
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/home/yang/zaqar/.tox/genconfig/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-h3dfDC/netifaces/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-GW3xYM-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/yang/zaqar/.tox/genconfig/include/site/python2.7/netifaces" failed with error code 1 in /tmp/pip-build-h3dfDC/netifaces

ERROR: could not install deps [-r/home/yang/zaqar/requirements.txt, -r/home/yang/zaqar/test-requirements.txt]; v = InvocationError('/home/yang/zaqar/.tox/genconfig/bin/pip install -U -r/home/yang/zaqar/requirements.txt -r/home/yang/zaqar/test-requirements.txt (see /home/yang/zaqar/.tox/genconfig/log/genconfig-1.log)', 1)
______________________________________________________________________ summary ______________________________________________________________________
ERROR: genconfig: could not install deps [-r/home/yang/zaqar/requirements.txt, -r/home/yang/zaqar/test-requirements.txt]; v = InvocationError('/home/yang/zaqar/.tox/genconfig/bin/pip install -U -r/home/yang/zaqar/requirements.txt -r/home/yang/zaqar/test-requirements.txt (see /home/yang/zaqar/.tox/genconfig/log/genconfig-1.log)', 1)

Changed in zaqar:
assignee: nobody → Yang Shengming (yang-shengming)
tags: added: document
tags: removed: document
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to zaqar (master)

Fix proposed to branch: master
Review: https://review.openstack.org/217035

Changed in zaqar:
status: New → In Progress
summary: - environment set up from source doc missing python-devel (fedora-based
- distributions)
+ environment set up from source doc missing required packages
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zaqar (master)

Reviewed: https://review.openstack.org/217035
Committed: https://git.openstack.org/cgit/openstack/zaqar/commit/?id=6f1da676a875c32dcccfd348a9973bef1658f158
Submitter: Jenkins
Branch: master

commit 6f1da676a875c32dcccfd348a9973bef1658f158
Author: Yang Shengming <yang.shengming@99cloud.net>
Date: Wed Aug 26 14:58:55 2015 +0800

    Update 'doc/source/development-environment.rst'

    Change GNU/Linux system (Ubuntu, Fedora-based distributions) dependencies
    Add the missing packages which are required. Otherwise, it throws errors
    while running the 'tox -e genconfig' command in the doc.

    Change-Id: Ie339dd590367f5a6a39ef246b632803e6677c089
    Closes-Bug: #1488765

Changed in zaqar:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in zaqar:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in zaqar:
milestone: liberty-3 → 1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.