MacOS M1 building Docker image fails
danepitkin opened this issue · 1 comments
danepitkin commented
Workaround: in line1 of the Dockerfile, replace FROM python:3.10-slim
with FROM python:3.10
.
Error from stack trace:
#9 22.11 error: command 'gcc' failed: No such file or directory
#9 22.11 [end of output]
#9 22.11
#9 22.11 note: This error originates from a subprocess, and is likely not a problem with pip.
#9 22.11 ERROR: Failed building wheel for duckdb
#9 22.11 Running setup.py clean for duckdb
#9 22.28 Building wheel for ibis-framework (pyproject.toml): started
#9 22.87 Building wheel for ibis-framework (pyproject.toml): finished with status 'done'
#9 22.87 Created wheel for ibis-framework: filename=ibis_framework-5.1.0-py3-none-any.whl size=1375611 sha256=10c6504a871186cac789a8bbdcad79fd6ce3cbae293e326be153548536b43574
#9 22.87 Stored in directory: /tmp/pip-ephem-wheel-cache-6k0a_y0r/wheels/f6/fd/92/72f8f5199af97f65a3e4bc7f6275fdeeb69a450a0d5e092c95
#9 22.88 Building wheel for psutil (pyproject.toml): started
#9 23.00 Building wheel for psutil (pyproject.toml): finished with status 'error'
#9 23.00 error: subprocess-exited-with-error
#9 23.00
#9 23.00 × Building wheel for psutil (pyproject.toml) did not run successfully.
#9 23.00 │ exit code: 1
#9 23.00 ╰─> [43 lines of output]
#9 23.00 running bdist_wheel
#9 23.00 running build
#9 23.00 running build_py
#9 23.00 creating build
#9 23.00 creating build/lib.linux-aarch64-cpython-310
#9 23.00 creating build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_common.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/__init__.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-310/psutil
#9 23.00 creating build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/__init__.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 copying psutil/tests/__main__.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
#9 23.00 running build_ext
#9 23.00 building 'psutil._psutil_linux' extension
#9 23.00 creating build/temp.linux-aarch64-cpython-310
#9 23.00 creating build/temp.linux-aarch64-cpython-310/psutil
#9 23.00 gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=594 -DPy_LIMITED_API=0x03060000 -DPSUTIL_LINUX=1 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -I/usr/local/include/python3.10 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-310/psutil/_psutil_common.o
#9 23.00 C compiler or Python headers are not installed on this system. Try to run:
#9 23.00 sudo apt-get install gcc python3-dev
#9 23.00 error: command 'gcc' failed: No such file or directory
#9 23.00 [end of output]
#9 23.00
#9 23.00 note: This error originates from a subprocess, and is likely not a problem with pip.
#9 23.00 ERROR: Failed building wheel for psutil
#9 23.00 Successfully built ibis-framework
#9 23.00 Failed to build duckdb psutil
#9 23.00 ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
------
executor failed running [/bin/sh -c pip install --no-cache -r requirements.txt && find /usr/local/lib/python3.10/site-packages/ -follow -type f -name '*.js.map' -delete]: exit code: 1
danepitkin commented
MacOS 13.3.1
Docker Desktop 4.18.0 (104112)
Docker Engine: 20.10.24
Docker Compose: v2.17.2