allure-framework / allure-pytest

Deprecated, please use https://github.com/allure-framework/allure-python instead
Other
171 stars 83 forks source link

A problem with pip install pytest-allure-adaptor. #91

Closed bubanoid closed 8 years ago

bubanoid commented 8 years ago

Trying pip install pytest-allure-adaptor with Python 2.7.10 I have got the following error:

... creating build/temp.linux-x86_64-2.7/src/lxml

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/libxml2 -Isrc/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

In file included from src/lxml/lxml.etree.c:85:0:

/usr/include/python2.7/Python.h:8:22: fatal error: pyconfig.h: No such file or directory

compilation terminated.

Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ... main (int argc, char **argv) { ^ cc tmp/xmlXPathInitr_ehk5.o -lxml2 -o a.out error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Cleaning up... Command /media/win_d/Dropbox/Andriy_Work/PROJECTS/infinity/env/bin/python2 -c "import setuptools, tokenize;file='/tmp/pip-build-F3xYRb/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-PW72d1-record/install-record.txt --single-version-externally-managed --compile --install-headers /media/win_d/Dropbox/Andriy_Work/PROJECTS/infinity/env/include/site/python2.7 failed with error code 1 in /tmp/pip-build-F3xYRb/lxml

I should say that I have successfully installed pytest-allure-adaptor on environment with Python3. Any ideas how to solve it with Python2.7?

bubanoid commented 8 years ago

Sorry guys, the installation of the lxml package into environments caused the problem. Now it is solved.