-
Notifications
You must be signed in to change notification settings - Fork 239
Closed
Description
When trying to build the docker image with latest pytest-xdist , following error is produced. The issue is resolved when reverting to pytest-xdist:1.34.0
Error
Running setup.py install for psutil: started
[17:05:25] Running setup.py install for psutil: finished with status 'error'
[17:05:25] Complete output from command /home/e2e/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-opgz1ts0/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-6io9j8f9/install-record.txt --single-version-externally-managed --compile --install-headers /home/e2e/venv/include/site/python3.7/psutil:
[17:05:25] running install
[17:05:25] running build
[17:05:25] running build_py
[17:05:25] creating build
[17:05:25] creating build/lib.linux-x86_64-3.7
[17:05:25] creating build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_pswindows.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_psbsd.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_compat.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_common.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_psposix.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/__init__.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_psaix.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_pslinux.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_pssunos.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] copying psutil/_psosx.py -> build/lib.linux-x86_64-3.7/psutil
[17:05:25] creating build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_aix.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_system.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_testutils.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_bsd.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_connections.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_memleaks.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_unicode.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_posix.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_windows.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_misc.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_sunos.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/__init__.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_osx.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_process.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_linux.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/__main__.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/test_contracts.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] copying psutil/tests/runner.py -> build/lib.linux-x86_64-3.7/psutil/tests
[17:05:25] running build_ext
[17:05:25] building 'psutil._psutil_linux' extension
[17:05:25] creating build/temp.linux-x86_64-3.7
[17:05:25] creating build/temp.linux-x86_64-3.7/psutil
[17:05:25] x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=572 -DPSUTIL_LINUX=1 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/home/e2e/venv/include -I/usr/include/python3.7m -c psutil/_psutil_common.c -o build/temp.linux-x86_64-3.7/psutil/_psutil_common.o
[17:05:25] unable to execute 'x86_64-linux-gnu-gcc': No such file or directory
[17:05:25] C compiler or Python headers are not installed on this system. Try to run:
[17:05:25] sudo apt-get install gcc python3-dev
[17:05:25] error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
DockerFile
FROM debian:latest
RUN set -e \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get -qq install --no-install-recommends \
python3-dev \
python3-venv \
&& useradd -m -u 1000 e2e \
&& mkdir /reports \
&& chmod a+rwx /reports \
&& chown e2e:e2e /reports
VOLUME ["/reports"]
COPY entrypoint.sh /usr/local/bin/entrypoint
RUN chmod 755 /usr/local/bin/entrypoint
ENTRYPOINT [ "/usr/local/bin/entrypoint" ]
COPY . /home/e2e/
RUN chown -R e2e:e2e /home/e2e/
RUN chmod -R 0777 /home/e2e/
USER e2e
WORKDIR /home/e2e
RUN set -e \
&& python3 -m venv venv \
&& . venv/bin/activate \
&& pip install --no-cache-dir wheel \
&& pip install --no-cache-dir .\
&& flake8 .
Setup.py
#!/usr/bin/env python
VERSION = '###'
DESCRIPTION = '###'
try:
from setuptools import setup, find_packages
except ImportError:
from distutils.core import setup, find_packages
setup(
name='e2e',
version=VERSION,
description=DESCRIPTION,
license="###",
long_description="###",
url='###',
author="###",
author_email='###',
install_requires=[
'selenium',
'requests',
'pytest',
'nested-lookup==0.2.21',
'pyhamcrest',
'retry',
'pytest-html',
'pytest-xdist',
'pytest-rerunfailures',
'pytest-repeat',
'wheel',
'flake8'
],
provides=[],
packages=find_packages(),
scripts=[]
)
Metadata
Metadata
Assignees
Labels
No labels