Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[13pt] Docker build fails on Mac #1380

Open
mluck opened this issue Dec 17, 2024 · 0 comments · May be fixed by #1389
Open

[13pt] Docker build fails on Mac #1380

mluck opened this issue Dec 17, 2024 · 0 comments · May be fixed by #1389
Assignees
Labels
bug Something isn't working dependencies Pull requests that update a dependency file

Comments

@mluck
Copy link
Contributor

mluck commented Dec 17, 2024

Building a Docker image from the current (v4.5.13.1) Dockerfile.dev fails on Mac. This appears to be caused by a subdependency of rasterio where cython conflicts with the numpy version (ERROR: No matching distribution found for numpy==2.0.0rc1). In addition, it seems like a subdependency is trying to install a package requiring python_version < "3.9", while the python version is 3.10.

This doesn't affect Ubuntu and hasn't been tested on Windows.

Current behavior

97.82 [pipenv.exceptions.InstallError]: Collecting rasterio==1.3.10 (from -r /tmp/pipenv-k0eeawd5-requirements/pipenv-xz30_0w2-hashed-reqs.txt (line 177))
97.82 [pipenv.exceptions.InstallError]:   Downloading rasterio-1.3.10.tar.gz (412 kB)
97.82 [pipenv.exceptions.InstallError]:      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 412.9/412.9 kB 10.9 MB/s eta 0:00:00
97.82 [pipenv.exceptions.InstallError]:   Installing build dependencies: started
97.82 [pipenv.exceptions.InstallError]:   Installing build dependencies: finished with status 'error'
97.82 [pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
97.82 [pipenv.exceptions.InstallError]:
97.82 [pipenv.exceptions.InstallError]:   × pip subprocess to install build dependencies did not run successfully.
97.82 [pipenv.exceptions.InstallError]:   │ exit code: 1
97.82 [pipenv.exceptions.InstallError]:   ╰─> [9 lines of output]
97.82 [pipenv.exceptions.InstallError]:       Ignoring oldest-supported-numpy: markers 'python_version < "3.9"' don't match your environment
97.82 [pipenv.exceptions.InstallError]:       Collecting setuptools>=67.8
97.82 [pipenv.exceptions.InstallError]:         Downloading setuptools-75.6.0-py3-none-any.whl.metadata (6.7 kB)
97.82 [pipenv.exceptions.InstallError]:       Collecting wheel
97.82 [pipenv.exceptions.InstallError]:         Downloading wheel-0.45.1-py3-none-any.whl.metadata (2.3 kB)
97.82 [pipenv.exceptions.InstallError]:       Collecting cython~=3.0.2
97.82 [pipenv.exceptions.InstallError]:         Downloading Cython-3.0.11-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.metadata (3.2 kB)
97.82 [pipenv.exceptions.InstallError]:       ERROR: Could not find a version that satisfies the requirement numpy==2.0.0rc1 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.22.0, 1.22.1, 1.22.2, 1.22.3, 1.22.4, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4, 1.23.5, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.25.0, 1.25.1, 1.25.2, 1.26.0, 1.26.1, 1.26.2, 1.26.3, 1.26.4, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.1.3, 2.2.0rc1, 2.2.0)
97.82 [pipenv.exceptions.InstallError]:       ERROR: No matching distribution found for numpy==2.0.0rc1
97.82 [pipenv.exceptions.InstallError]:       [end of output]
97.82 [pipenv.exceptions.InstallError]:
97.82 [pipenv.exceptions.InstallError]:   note: This error originates from a subprocess, and is likely not a problem with pip.
97.82 [pipenv.exceptions.InstallError]: error: subprocess-exited-with-error
97.82 [pipenv.exceptions.InstallError]:
97.82 [pipenv.exceptions.InstallError]: × pip subprocess to install build dependencies did not run successfully.
97.82 [pipenv.exceptions.InstallError]: │ exit code: 1
97.82 [pipenv.exceptions.InstallError]: ╰─> See above for output.
97.82 [pipenv.exceptions.InstallError]:
97.82 [pipenv.exceptions.InstallError]: note: This error originates from a subprocess, and is likely not a problem with pip.
97.82 ERROR: Couldn't install package: {}
97.82  Package installation failed...
97.84 /usr/lib/python3.10/subprocess.py:1072: ResourceWarning: subprocess 19 is still running
97.84   _warn("subprocess %s is still running" % self.pid,
97.84 ResourceWarning: Enable tracemalloc to get the object allocation traceback
97.84 sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=4 encoding='utf-8'>
97.84 ResourceWarning: Enable tracemalloc to get the object allocation traceback
97.84 sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=7 encoding='utf-8'>
97.84 ResourceWarning: Enable tracemalloc to get the object allocation traceback
------
Dockerfile.dev:99
--------------------
  97 |     COPY Pipfile .
  98 |     COPY Pipfile.lock .
  99 | >>> RUN pip3 install pipenv==2024.0.1 && PIP_NO_CACHE_DIR=off pipenv install --system --deploy --ignore-pipfile
 100 |
 101 |     # ----------------------------------
--------------------
ERROR: failed to solve: process "/bin/sh -c pip3 install pipenv==2024.0.1 && PIP_NO_CACHE_DIR=off pipenv install --system --deploy --ignore-pipfile" did not complete successfully: exit code: 1

Steps to replicate behavior (include URLs)

  1. Run docker build --rm --no-cache --force-rm -t fim_4:dev-4.5.13.1 -f Dockerfile.dev .
@mluck mluck added bug Something isn't working dependencies Pull requests that update a dependency file labels Dec 17, 2024
@mluck mluck self-assigned this Dec 20, 2024
@mluck mluck linked a pull request Dec 30, 2024 that will close this issue
20 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant