You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue when trying to build the Docker container on a Mac (running macOS Sequoia version 15.0.1). Full traceback below, but main issue I think was no GCC available. Was able to fix it by adding RUN apt-get update && apt-get install -y gcc && apt-get clean to the Dockerfile, which now looks like this:
FROM python:3.9-slim
# Install gccRUN apt-get update && apt-get install -y gcc && apt-get clean
RUN useradd --create-home --shell /bin/bash artist
WORKDIR /home/artist
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
USER artist
COPY . .
CMD ["bash"]
Followed the rest of your instructions here and everything else ran smoothly, thanks!
Full traceback:
% docker-compose run --rm app
WARN[0000] /Users/ryanlane/Repositories/miniature/docker/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
[+] Creating 1/0
✔ Network docker_default Created 0.0s
[+] Running 1/1
! app Warning pull access denied for my_image, repository does not exist or may... 0.7s
[+] Building 13.3s (10/11) docker:desktop-linux
=> [app internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 285B 0.0s
=> [app internal] load metadata for docker.io/library/python:3.9-slim 1.2s
=> [app auth] library/python:pull token for registry-1.docker.io 0.0s
=> [app internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [app 1/6] FROM docker.io/library/python:3.9-slim@sha256:4ee0613170ac55ebc693a03b6655a5c6f38 1.3s
=> => resolve docker.io/library/python:3.9-slim@sha256:4ee0613170ac55ebc693a03b6655a5c6f387126 0.0s
=> => sha256:b17061f37db52c2f236f65c6e9440d0eb28c7d593de4512f403250886e9ef9ee 250B / 250B 0.1s
=> => sha256:cd87c688b22f91a11ea5d6977744929a2cbbf7751fd1899fe1b169b0a5590be 14.83MB / 14.83MB 0.5s
=> => sha256:e88090b39a19b3e4a9f95f2a3043886f41461282cccea8072ad8f29213b9c5fa 3.14MB / 3.14MB 0.7s
=> => sha256:bb3f2b52e6af242cee1bc6c19ce79e05544f8a1d13f5a6c1e828d98d2dbdc94 28.06MB / 28.06MB 0.6s
=> => extracting sha256:bb3f2b52e6af242cee1bc6c19ce79e05544f8a1d13f5a6c1e828d98d2dbdc94e 0.4s
=> => extracting sha256:e88090b39a19b3e4a9f95f2a3043886f41461282cccea8072ad8f29213b9c5fa 0.0s
=> => extracting sha256:cd87c688b22f91a11ea5d6977744929a2cbbf7751fd1899fe1b169b0a5590be9 0.2s
=> => extracting sha256:b17061f37db52c2f236f65c6e9440d0eb28c7d593de4512f403250886e9ef9ee 0.0s
=> [app internal] load build context 0.0s
=> => transferring context: 8.66kB 0.0s
=> [app 2/6] RUN useradd --create-home --shell /bin/bash artist 0.2s
=> [app 3/6] WORKDIR /home/artist 0.0s
=> [app 4/6] COPY requirements.txt ./ 0.0s
=> ERROR [app 5/6] RUN pip install --no-cache-dir -r requirements.txt 10.5s
------
> [app 5/6] RUN pip install --no-cache-dir -r requirements.txt:
1.030 Collecting colormath==3.0.0
1.110 Downloading colormath-3.0.0.tar.gz (39 kB)
1.122 Preparing metadata (setup.py): started
1.265 Preparing metadata (setup.py): finished with status 'done'
1.430 Collecting matplotlib
1.442 Downloading matplotlib-3.9.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (8.2 MB)
1.551 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 8.2/8.2 MB 77.5 MB/s eta 0:00:00
1.733 Collecting numpy
1.745 Downloading numpy-2.0.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (13.9 MB)
1.892 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.9/13.9 MB 95.6 MB/s eta 0:00:00
1.968 Collecting scikit-image
1.978 Downloading scikit_image-0.24.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.2 MB)
2.130 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 14.2/14.2 MB 98.7 MB/s eta 0:00:00
2.226 Collecting scikit-learn
2.237 Downloading scikit_learn-1.5.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (12.5 MB)
2.364 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.5/12.5 MB 100.0 MB/s eta 0:00:00
2.424 Collecting tifffile
2.434 Downloading tifffile-2024.8.30-py3-none-any.whl (227 kB)
2.437 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 227.3/227.3 kB 318.4 MB/s eta 0:00:00
2.458 Collecting umap-learn
2.467 Downloading umap_learn-0.5.7-py3-none-any.whl (88 kB)
2.469 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 88.8/88.8 kB 323.0 MB/s eta 0:00:00
2.501 Collecting zarr
2.512 Downloading zarr-2.18.2-py3-none-any.whl (210 kB)
2.514 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 210.2/210.2 kB 347.0 MB/s eta 0:00:00
2.573 Collecting imagecodecs
2.584 Downloading imagecodecs-2024.9.22-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (42.1 MB)
2.996 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.1/42.1 MB 104.5 MB/s eta 0:00:00
3.037 Collecting argparse
3.046 Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB)
3.098 Collecting h5py
3.108 Downloading h5py-3.12.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (5.2 MB)
3.161 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.2/5.2 MB 106.5 MB/s eta 0:00:00
3.194 Collecting networkx>=2.0
3.204 Downloading networkx-3.2.1-py3-none-any.whl (1.6 MB)
3.221 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 99.3 MB/s eta 0:00:00
3.252 Collecting cycler>=0.10
3.261 Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
3.297 Collecting importlib-resources>=3.2.0
3.306 Downloading importlib_resources-6.4.5-py3-none-any.whl (36 kB)
3.367 Collecting kiwisolver>=1.3.1
3.378 Downloading kiwisolver-1.4.7-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB)
3.393 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.4/1.4 MB 96.7 MB/s eta 0:00:00
3.467 Collecting contourpy>=1.0.1
3.480 Downloading contourpy-1.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (309 kB)
3.485 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 309.2/309.2 kB 116.7 MB/s eta 0:00:00
3.651 Collecting pillow>=8
3.661 Downloading pillow-11.0.0-cp39-cp39-manylinux_2_28_aarch64.whl (4.2 MB)
3.704 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.2/4.2 MB 101.0 MB/s eta 0:00:00
3.739 Collecting pyparsing>=2.3.1
3.748 Downloading pyparsing-3.2.0-py3-none-any.whl (106 kB)
3.750 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.9/106.9 kB 586.5 MB/s eta 0:00:00
3.777 Collecting packaging>=20.0
3.787 Downloading packaging-24.2-py3-none-any.whl (65 kB)
3.788 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.5/65.5 kB 495.3 MB/s eta 0:00:00
3.811 Collecting python-dateutil>=2.7
3.820 Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
3.823 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 229.9/229.9 kB 172.9 MB/s eta 0:00:00
3.951 Collecting fonttools>=4.22.0
3.962 Downloading fonttools-4.55.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.6 MB)
4.022 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.6/4.6 MB 77.3 MB/s eta 0:00:00
4.145 Collecting scipy>=1.9
4.155 Downloading scipy-1.13.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (33.7 MB)
4.789 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 33.7/33.7 MB 58.5 MB/s eta 0:00:00
4.852 Collecting imageio>=2.33
4.863 Downloading imageio-2.36.1-py3-none-any.whl (315 kB)
4.867 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 315.4/315.4 kB 99.7 MB/s eta 0:00:00
4.890 Collecting lazy-loader>=0.4
4.900 Downloading lazy_loader-0.4-py3-none-any.whl (12 kB)
4.957 Collecting joblib>=1.2.0
4.966 Downloading joblib-1.4.2-py3-none-any.whl (301 kB)
4.970 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 301.8/301.8 kB 92.6 MB/s eta 0:00:00
4.994 Collecting threadpoolctl>=3.1.0
5.004 Downloading threadpoolctl-3.5.0-py3-none-any.whl (18 kB)
5.043 Collecting pynndescent>=0.5
5.053 Downloading pynndescent-0.5.13-py3-none-any.whl (56 kB)
5.054 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.9/56.9 kB 351.2 MB/s eta 0:00:00
5.103 Collecting tqdm
5.113 Downloading tqdm-4.67.1-py3-none-any.whl (78 kB)
5.114 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 442.5 MB/s eta 0:00:00
5.221 Collecting numba>=0.51.2
5.231 Downloading numba-0.60.0-cp39-cp39-manylinux2014_aarch64.manylinux_2_17_aarch64.whl (3.4 MB)
5.295 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 58.2 MB/s eta 0:00:00
5.342 Collecting asciitree
5.352 Downloading asciitree-0.3.3.tar.gz (4.0 kB)
5.354 Preparing metadata (setup.py): started
5.422 Preparing metadata (setup.py): finished with status 'done'
5.468 Collecting numcodecs>=0.10.0
5.586 Downloading numcodecs-0.12.1.tar.gz (4.1 MB)
5.844 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.1/4.1 MB 16.1 MB/s eta 0:00:00
6.037 Installing build dependencies: started
7.821 Installing build dependencies: finished with status 'done'
7.822 Getting requirements to build wheel: started
8.013 Getting requirements to build wheel: finished with status 'done'
8.014 Preparing metadata (pyproject.toml): started
8.181 Preparing metadata (pyproject.toml): finished with status 'done'
8.206 Collecting fasteners
8.215 Downloading fasteners-0.19-py3-none-any.whl (18 kB)
8.315 Collecting zipp>=3.1.0
8.324 Downloading zipp-3.21.0-py3-none-any.whl (9.6 kB)
8.405 Collecting llvmlite<0.44,>=0.43.0dev0
8.415 Downloading llvmlite-0.43.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (42.9 MB)
9.412 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.9/42.9 MB 50.4 MB/s eta 0:00:00
9.512 Collecting six>=1.5
9.521 Downloading six-1.17.0-py2.py3-none-any.whl (11 kB)
9.568 Building wheels for collected packages: colormath, numcodecs, asciitree
9.568 Building wheel for colormath (setup.py): started
9.696 Building wheel for colormath (setup.py): finished with status 'done'
9.696 Created wheel for colormath: filename=colormath-3.0.0-py3-none-any.whl size=39407 sha256=e76d946d031a58fde582a27f5c395591f8c5ed8534c7e920d87fa3e781d82de1
9.696 Stored in directory: /tmp/pip-ephem-wheel-cache-5z8s6bfp/wheels/41/fc/b0/725cea6b023e17948a084b1111b4941299859d468c4407e01d
9.699 Building wheel for numcodecs (pyproject.toml): started
10.18 Building wheel for numcodecs (pyproject.toml): finished with status 'error'
10.19 error: subprocess-exited-with-error
10.19
10.19 × Building wheel for numcodecs (pyproject.toml) did not run successfully.
10.19 │ exit code: 1
10.19 ╰─> [234 lines of output]
10.19 [numcodecs] setting up Blosc extension
10.19 [numcodecs] compiling Blosc extension without SSE2 support
10.19 [numcodecs] compiling Blosc extension without AVX2 support
10.19 [numcodecs] setting up Zstandard extension
10.19 [numcodecs] setting up LZ4 extension
10.19 [numcodecs] setting up compat extension
10.19 [numcodecs] setting up shuffle extension
10.19 [numcodecs] setting up vlen extension
10.19 [numcodecs] setting up fletcher32 extension
10.19 [numcodecs] setting up jenkins extension
10.19 running bdist_wheel
10.19 running build
10.19 running build_py
10.19 creating build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/ndarray_like.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/pickles.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/fixedscaleoffset.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/delta.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/bz2.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/bitround.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/lzma.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/zlib.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/packbits.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/__init__.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/categorize.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/shuffle.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/checksum32.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/astype.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/quantize.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/abc.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/compat.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/json.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/gzip.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/zfpy.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/base64.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/registry.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/msgpacks.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 copying ./numcodecs/version.py -> build/lib.linux-aarch64-cpython-39/numcodecs
10.19 creating build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_registry.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_zstd.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_vlen_bytes.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_ndarray_like.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_shuffle.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_msgpacks.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_astype.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_json.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_packbits.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_lz4.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_vlen_array.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_categorize.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_compat.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/__init__.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_zlib.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_delta.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_jenkins.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/common.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_lzma.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_pickles.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_base64.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_zfpy.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_gzip.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_fletcher32.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_fixedscaleoffset.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_checksum32.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_blosc.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_bz2.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_bitround.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_quantize.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_vlen_utf8.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_entrypoints_backport.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 copying ./numcodecs/tests/test_entrypoints.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests
10.19 running egg_info
10.19 writing numcodecs.egg-info/PKG-INFO
10.19 writing dependency_links to numcodecs.egg-info/dependency_links.txt
10.19 writing requirements to numcodecs.egg-info/requires.txt
10.19 writing top-level names to numcodecs.egg-info/top_level.txt
10.19 reading manifest file 'numcodecs.egg-info/SOURCES.txt'
10.19 reading manifest template 'MANIFEST.in'
10.19 adding license file 'LICENSE.txt'
10.19 writing manifest file 'numcodecs.egg-info/SOURCES.txt'
10.19 /tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'numcodecs.tests.package_with_entrypoint' is absent from the `packages` configuration.
10.19 !!
10.19
10.19 ********************************************************************************
10.19 ############################
10.19 # Package would be ignored #
10.19 ############################
10.19 Python recognizes 'numcodecs.tests.package_with_entrypoint' as an importable package[^1],
10.19 but it is absent from setuptools' `packages` configuration.10.19 10.19 This leads to an ambiguous overall configuration. If you want to distribute this10.19 package, please make sure that 'numcodecs.tests.package_with_entrypoint' is explicitly added10.19 to the `packages` configuration field.10.19 10.19 Alternatively, you can also rely on setuptools' discovery methods
10.19 (for example by using `find_namespace_packages(...)`/`find_namespace:`
10.19 instead of `find_packages(...)`/`find:`).
10.19
10.19 You can read more about "package discovery" on setuptools documentation page:
10.19
10.19 - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html
10.19
10.19 If you don't want 'numcodecs.tests.package_with_entrypoint' to be distributed and are10.19 already explicitly excluding 'numcodecs.tests.package_with_entrypoint' via10.19 `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,10.19 you can try to use `exclude_package_data`, or `include-package-data=False` in10.19 combination with a more fine grained `package-data` configuration.10.19 10.19 You can read more about "package data files" on setuptools documentation page:10.19 10.19 - https://setuptools.pypa.io/en/latest/userguide/datafiles.html10.19 10.19 10.19 [^1]: For Python, any directory (with suitable naming) can be imported,10.19 even if it does not contain any `.py` files.10.19 On the other hand, currently there is no concept of package data10.19 directory, all directories are treated like packages.10.19 ********************************************************************************10.19 10.19 !!10.19 check.warn(importable)10.19 creating build/lib.linux-aarch64-cpython-39/numcodecs/tests/package_with_entrypoint10.19 copying ./numcodecs/tests/package_with_entrypoint/__init__.py -> build/lib.linux-aarch64-cpython-39/numcodecs/tests/package_with_entrypoint10.19 creating build/lib.linux-aarch64-cpython-39/numcodecs/tests/package_with_entrypoint-0.1.dist-info10.19 copying ./numcodecs/tests/package_with_entrypoint-0.1.dist-info/entry_points.txt -> build/lib.linux-aarch64-cpython-39/numcodecs/tests/package_with_entrypoint-0.1.dist-info10.19 running build_ext10.19 Compiling numcodecs/blosc.pyx because it changed.10.19 [1/1] Cythonizing numcodecs/blosc.pyx10.19 building 'numcodecs.blosc' extension10.19 creating build/temp.linux-aarch64-cpython-39/c-blosc/blosc10.19 creating build/temp.linux-aarch64-cpython-39/c-blosc/internal-complibs/lz4-1.9.310.19 creating build/temp.linux-aarch64-cpython-39/c-blosc/internal-complibs/zlib-1.2.810.19 creating build/temp.linux-aarch64-cpython-39/c-blosc/internal-complibs/zstd-1.4.8/common10.19 creating build/temp.linux-aarch64-cpython-39/c-blosc/internal-complibs/zstd-1.4.8/compress10.19 creating build/temp.linux-aarch64-cpython-39/c-blosc/internal-complibs/zstd-1.4.8/decompress10.19 creating build/temp.linux-aarch64-cpython-39/c-blosc/internal-complibs/zstd-1.4.8/dictBuilder10.19 creating build/temp.linux-aarch64-cpython-39/numcodecs10.19 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DHAVE_LZ4=1 -DHAVE_ZLIB=1 -DHAVE_ZSTD=1 -Ic-blosc/blosc -Ic-blosc/internal-complibs/lz4-1.9.3 -Ic-blosc/internal-complibs/zlib-1.2.8 -Ic-blosc/internal-complibs/zstd-1.4.8 -Ic-blosc/internal-complibs/zstd-1.4.8/dictBuilder -Ic-blosc/internal-complibs/zstd-1.4.8/common -Ic-blosc/internal-complibs/zstd-1.4.8/compress -Ic-blosc/internal-complibs/zstd-1.4.8/decompress -Ic-blosc/internal-complibs/zstd-1.4.8/dll -Ic-blosc/internal-complibs/zstd-1.4.8/deprecated -Ic-blosc/internal-complibs/zstd-1.4.8/legacy -Ic-blosc/internal-complibs/zstd-1.4.8/dll/example -I/usr/local/include/python3.9 -c c-blosc/blosc/bitshuffle-generic.c -o build/temp.linux-aarch64-cpython-39/c-blosc/blosc/bitshuffle-generic.o10.19 [numcodecs] command 'gcc' failed: No such file or directory10.19 Traceback (most recent call last):10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/spawn.py", line 70, in spawn10.19 subprocess.check_call(cmd, env=_inject_macos_ver(env))10.19 File "/usr/local/lib/python3.9/subprocess.py", line 368, in check_call10.19 retcode = call(*popenargs, **kwargs)10.19 File "/usr/local/lib/python3.9/subprocess.py", line 349, in call10.19 with Popen(*popenargs, **kwargs) as p:10.19 File "/usr/local/lib/python3.9/subprocess.py", line 951, in __init__10.19 self._execute_child(args, executable, preexec_fn, close_fds,10.19 File "/usr/local/lib/python3.9/subprocess.py", line 1837, in _execute_child10.19 raise child_exception_type(errno_num, err_msg, err_filename)10.19 FileNotFoundError: [Errno 2] No such file or directory: 'gcc'10.19 10.19 The above exception was the direct cause of the following exception:10.19 10.19 Traceback (most recent call last):10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/unixccompiler.py", line 200, in _compile10.19 self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 1045, in spawn10.19 spawn(cmd, dry_run=self.dry_run, **kwargs)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/spawn.py", line 72, in spawn10.19 raise DistutilsExecError(10.19 distutils.errors.DistutilsExecError: command 'gcc' failed: No such file or directory10.19 10.19 During handling of the above exception, another exception occurred:10.19 10.19 Traceback (most recent call last):10.19 File "<string>", line 308, in build_extension10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/Cython/Distutils/build_ext.py", line 135, in build_extension10.19 super(build_ext, self).build_extension(ext)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 557, in build_extension10.19 objects = self.compiler.compile(10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 606, in compile10.19 self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/unixccompiler.py", line 202, in _compile10.19 raise CompileError(msg)10.19 distutils.errors.CompileError: command 'gcc' failed: No such file or directory10.19 10.19 During handling of the above exception, another exception occurred:10.19 10.19 Traceback (most recent call last):10.19 File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>10.19 main()10.19 File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main10.19 json_out['return_val'] = hook(**hook_input['kwargs'])10.19 File "/usr/local/lib/python3.9/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 251, in build_wheel10.19 return _build_backend().build_wheel(wheel_directory, config_settings,10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 438, in build_wheel10.19 return _build(['bdist_wheel', '--dist-info-dir', str(metadata_directory)])10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 426, in _build10.19 return self._build_with_temp_dir(10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir10.19 self.run_setup()10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 320, in run_setup10.19 exec(code, locals())10.19 File "<string>", line 335, in <module>10.19 File "<string>", line 326, in run_setup10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 117, in setup10.19 return distutils.core.setup(**attrs)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 183, in setup10.19 return run_commands(dist)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 199, in run_commands10.19 dist.run_commands()10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands10.19 self.run_command(cmd)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 995, in run_command10.19 super().run_command(command)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command10.19 cmd_obj.run()10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/command/bdist_wheel.py", line 381, in run10.19 self.run_command("build")10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command10.19 self.distribution.run_command(command)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 995, in run_command10.19 super().run_command(command)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command10.19 cmd_obj.run()10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run10.19 self.run_command(cmd_name)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 316, in run_command10.19 self.distribution.run_command(command)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 995, in run_command10.19 super().run_command(command)10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 973, in run_command10.19 cmd_obj.run()10.19 File "<string>", line 301, in run10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 359, in run10.19 self.build_extensions()10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 476, in build_extensions10.19 self._build_extensions_serial()10.19 File "/tmp/pip-build-env-c7tysa1h/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 502, in _build_extensions_serial10.19 self.build_extension(ext)10.19 File "<string>", line 311, in build_extension10.19 __main__.BuildFailed10.19 [end of output]10.19 10.19 note: This error originates from a subprocess, and is likely not a problem with pip.10.19 ERROR: Failed building wheel for numcodecs10.19 Building wheel for asciitree (setup.py): started10.28 Building wheel for asciitree (setup.py): finished with status 'done'10.28 Created wheel for asciitree: filename=asciitree-0.3.3-py3-none-any.whl size=5050 sha256=cd09b1d6c483ca6c200f839e73ba00dbf19a6baa085af24a23ae76f155d366e210.28 Stored in directory: /tmp/pip-ephem-wheel-cache-5z8s6bfp/wheels/07/00/bc/937e878be0d781a569792a1e0e5acf149e463d4536453ec97810.28 Successfully built colormath asciitree10.28 Failed to build numcodecs10.28 ERROR: Could not build wheels for numcodecs, which is required to install pyproject.toml-based projects10.36 10.36 [notice] A new release of pip is available: 23.0.1 -> 24.3.110.36 [notice] To update, run: pip install --upgrade pip------failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
The text was updated successfully, but these errors were encountered:
Hi!
I ran into an issue when trying to build the Docker container on a Mac (running macOS Sequoia version 15.0.1). Full traceback below, but main issue I think was no GCC available. Was able to fix it by adding
RUN apt-get update && apt-get install -y gcc && apt-get clean
to the Dockerfile, which now looks like this:Followed the rest of your instructions here and everything else ran smoothly, thanks!
Full traceback:
The text was updated successfully, but these errors were encountered: