libxml2-dev and libxslt-dev are required in tempest, but not automatically handled.

Bug #1225714 reported by DennyZhang
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
tempest
New
Undecided
Unassigned

Bug Description

when I first run ./run_tests.sh of tempest, I need to manually "sudo apt-get install libxml2-dev libxslt-dev". How about automating this for users of centos/ubuntus?

The bindep project seems to be working on this: https://github.com/stackforge/bindep.

If it's not easy to fix, shall we document this required manual step in README.rst.

,----------- console output
| root@ip-10-165-44-182:/opt/stack/tempest# ./run_tests.sh
| No virtual environment found...create one? (Y/n) Y
| Creating venv... done.
| Installing dependencies with pip (this can take a while)...
| Downloading/unpacking pip>=1.3
| Downloading pip-1.4.1.tar.gz (445Kb): 445Kb downloaded
| Running setup.py egg_info for package pip
|
| ...
| ...
| ...
| ...
| ...
| ...
| no previously-included directories found matching 'doc/_build'
| Downloading/unpacking lxml>=2.3 (from -r /opt/stack/tempest/requirements.txt (line 7))
| Downloading lxml-3.2.3.tar.gz (3.3MB): 3.3MB downloaded
| Running setup.py egg_info for package lxml
| /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
| warnings.warn(msg)
| Building lxml version 3.2.3.
| Building without Cython.
| ERROR: /bin/sh: 1: xslt-config: not found
|
| ** make sure the development packages of libxml2 and libxslt are installed **
|
| Using build configuration of libxslt
|
| warning: no previously-included files found matching '*.py'
| warning: no files found matching '*.txt' under directory 'src/lxml/tests'
| Downloading/unpacking boto>=2.4.0,!=2.13.0 (from -r /opt/stack/tempest/requirements.txt (line 8))
| Downloading boto-2.12.0.tar.gz (1.1MB): 1.1MB downloaded
| Running setup.py egg_info for package boto
|
| ...
| ...
| ...
| ...
| ...
| ...
|
| no previously-included directories found matching 'doc/_build'
| Running setup.py install for lxml
| /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
| warnings.warn(msg)
| Building lxml version 3.2.3.
| Building without Cython.
| ERROR: /bin/sh: 1: xslt-config: not found
|
| ** make sure the development packages of libxml2 and libxslt are installed **
|
| Using build configuration of libxslt
| building 'lxml.etree' extension
| gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/opt/stack/tempest/.venv/build/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
| In file included from src/lxml/lxml.etree.c:314:0:
| /opt/stack/tempest/.venv/build/lxml/src/lxml/includes/etree_defs.h:9:31: fatal error: libxml/xmlversion.h: No such file or directory
| compilation terminated.
| error: command 'gcc' failed with exit status 1
| Complete output from command /opt/stack/tempest/.venv/bin/python -c "import setuptools;__file__='/opt/stack/tempest/.venv/build/lxml/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-1e4_Od-record/install-record.txt --single-version-externally-managed --install-headers /opt/stack/tempest/.venv/include/site/python2.7:
| /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url'
|
| warnings.warn(msg)
|
| Building lxml version 3.2.3.
|
| Building without Cython.
|
| ERROR: /bin/sh: 1: xslt-config: not found
| ** make sure the development packages of libxml2 and libxslt are installed **
|
|
|
| Using build configuration of libxslt
|
| running install
|
| running build
| ...
| ...
|
`-----------

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.