-
Notifications
You must be signed in to change notification settings - Fork 89
Description
At first is was an issue with SciPy, then peycopg2-binary, then pillow, then aiohttp.
> [builder 5/5] RUN pip install --no-cache-dir -r requirements.txt:
2.264 Collecting pandas==2.2.3 (from -r requirements.txt (line 2))
2.362 Downloading pandas-2.2.3.tar.gz (4.4 MB)
3.194 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.4/4.4 MB 5.4 MB/s 0:00:00
4.085 Installing build dependencies: started
13.11 Installing build dependencies: finished with status 'done'
13.12 Getting requirements to build wheel: started
13.77 Getting requirements to build wheel: finished with status 'done'
13.77 Installing backend dependencies: started
15.25 Installing backend dependencies: finished with status 'done'
15.25 Preparing metadata (pyproject.toml): started
79.94 Preparing metadata (pyproject.toml): still running...
141.9 Preparing metadata (pyproject.toml): still running...
216.0 Preparing metadata (pyproject.toml): still running...
246.1 Preparing metadata (pyproject.toml): finished with status 'done'
246.2 Collecting azure-monitor-query==1.4.1 (from -r requirements.txt (line 3))
246.2 Downloading azure_monitor_query-1.4.1-py3-none-any.whl.metadata (38 kB)
246.2 Collecting opencensus-ext-azure==1.1.15 (from -r requirements.txt (line 4))
246.2 Downloading opencensus_ext_azure-1.1.15-py2.py3-none-any.whl.metadata (17 kB)
246.3 Collecting Flask==2.2.5 (from -r requirements.txt (line 5))
246.3 Downloading Flask-2.2.5-py3-none-any.whl.metadata (3.9 kB)
246.3 Collecting Flask-WTF==1.2.1 (from -r requirements.txt (line 6))
246.3 Downloading flask_wtf-1.2.1-py3-none-any.whl.metadata (3.4 kB)
246.4 Collecting gunicorn (from -r requirements.txt (line 7))
246.4 Downloading gunicorn-23.0.0-py3-none-any.whl.metadata (4.4 kB)
246.4 Collecting Werkzeug==3.0.6 (from -r requirements.txt (line 8))
246.4 Downloading werkzeug-3.0.6-py3-none-any.whl.metadata (3.7 kB)
246.5 Collecting requests==2.32.4 (from -r requirements.txt (line 9))
246.5 Downloading requests-2.32.4-py3-none-any.whl.metadata (4.9 kB)
246.6 Collecting openai==1.67 (from -r requirements.txt (line 10))
246.6 Downloading openai-1.67.0-py3-none-any.whl.metadata (24 kB)
246.7 Collecting docx2txt==0.8 (from -r requirements.txt (line 11))
246.7 Downloading docx2txt-0.8.tar.gz (2.8 kB)
246.7 Installing build dependencies: started
248.3 Installing build dependencies: finished with status 'done'
248.3 Getting requirements to build wheel: started
249.3 Getting requirements to build wheel: finished with status 'done'
249.3 Preparing metadata (pyproject.toml): started
250.0 Preparing metadata (pyproject.toml): finished with status 'done'
250.1 Collecting Markdown==3.3.4 (from -r requirements.txt (line 12))
250.1 Downloading Markdown-3.3.4-py3-none-any.whl.metadata (4.6 kB)
250.1 Collecting bleach==6.1.0 (from -r requirements.txt (line 13))
250.1 Downloading bleach-6.1.0-py3-none-any.whl.metadata (30 kB)
250.2 Collecting azure-cosmos==4.9.0 (from -r requirements.txt (line 14))
250.2 Downloading azure_cosmos-4.9.0-py3-none-any.whl.metadata (80 kB)
250.2 Collecting msal==1.31.0 (from -r requirements.txt (line 15))
250.2 Downloading msal-1.31.0-py3-none-any.whl.metadata (11 kB)
250.3 Collecting Flask-Session==0.8.0 (from -r requirements.txt (line 16))
250.3 Downloading flask_session-0.8.0-py3-none-any.whl.metadata (5.2 kB)
250.3 Collecting azure-ai-documentintelligence==1.0.2 (from -r requirements.txt (line 17))
250.3 Downloading azure_ai_documentintelligence-1.0.2-py3-none-any.whl.metadata (53 kB)
250.8 Collecting numpy==2.1.1 (from -r requirements.txt (line 18))
251.2 Downloading numpy-2.1.1.tar.gz (18.9 MB)
255.3 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.9/18.9 MB 4.6 MB/s 0:00:04
260.5 Installing build dependencies: started
263.8 Installing build dependencies: finished with status 'done'
263.8 Getting requirements to build wheel: started
264.5 Getting requirements to build wheel: finished with status 'done'
264.5 Installing backend dependencies: started
265.7 Installing backend dependencies: finished with status 'done'
265.7 Preparing metadata (pyproject.toml): started
326.3 Preparing metadata (pyproject.toml): still running...
386.3 Preparing metadata (pyproject.toml): still running...
448.6 Preparing metadata (pyproject.toml): still running...
467.5 Preparing metadata (pyproject.toml): finished with status 'done'
467.7 Collecting scikit-learn==1.5.2 (from -r requirements.txt (line 19))
467.8 Downloading scikit_learn-1.5.2.tar.gz (7.0 MB)
469.9 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.0/7.0 MB 3.1 MB/s 0:00:02
470.8 Installing build dependencies: started
486.5 Installing build dependencies: finished with status 'done'
486.5 Getting requirements to build wheel: started
487.2 Getting requirements to build wheel: finished with status 'done'
487.2 Installing backend dependencies: started
488.4 Installing backend dependencies: finished with status 'done'
488.4 Preparing metadata (pyproject.toml): started
549.3 Preparing metadata (pyproject.toml): still running...
609.7 Preparing metadata (pyproject.toml): still running...
657.2 Preparing metadata (pyproject.toml): finished with status 'done'
657.5 Collecting SciPy==1.15.1 (from -r requirements.txt (line 20))
657.5 Downloading scipy-1.15.1.tar.gz (59.4 MB)
673.8 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.4/59.4 MB 3.7 MB/s 0:00:16
680.0 Installing build dependencies: started
687.3 Installing build dependencies: finished with status 'done'
687.3 Getting requirements to build wheel: started
688.0 Getting requirements to build wheel: finished with status 'done'
688.0 Installing backend dependencies: started
689.3 Installing backend dependencies: finished with status 'done'
689.3 Preparing metadata (pyproject.toml): started
697.2 Preparing metadata (pyproject.toml): finished with status 'error'
697.2 error: subprocess-exited-with-error
697.2
697.2 × Preparing metadata (pyproject.toml) did not run successfully.
697.2 │ exit code: 1
697.2 ╰─> [50 lines of output]
697.2 + meson setup /tmp/pip-install-g3m0i35y/scipy_c7e31ea8ef8d4329af06616ac6d84efb /tmp/pip-install-g3m0i35y/scipy_c7e31ea8ef8d4329af06616ac6d84efb/.mesonpy-vnml40_f -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-g3m0i35y/scipy_c7e31ea8ef8d4329af06616ac6d84efb/.mesonpy-vnml40_f/meson-python-native-file.ini
697.2 The Meson build system
697.2 Version: 1.9.2
697.2 Source dir: /tmp/pip-install-g3m0i35y/scipy_c7e31ea8ef8d4329af06616ac6d84efb
697.2 Build dir: /tmp/pip-install-g3m0i35y/scipy_c7e31ea8ef8d4329af06616ac6d84efb/.mesonpy-vnml40_f
697.2 Build type: native build
697.2 Project name: scipy
697.2 Project version: 1.15.1
697.2 C compiler for the host machine: cc (gcc 15.2.0 "cc (Wolfi 15.2.0-r6) 15.2.0")
697.2 C linker for the host machine: cc ld.bfd 2.45.1
697.2 C++ compiler for the host machine: c++ (gcc 15.2.0 "c++ (Wolfi 15.2.0-r6) 15.2.0")
697.2 C++ linker for the host machine: c++ ld.bfd 2.45.1
697.2 Cython compiler for the host machine: cython (cython 3.0.12)
697.2 Host machine cpu family: x86_64
697.2 Host machine cpu: x86_64
697.2 Program python found: YES (/app/venv/bin/python)
697.2 Found pkg-config: YES (/usr/bin/pkg-config) 2.5.1
697.2 Run-time dependency python found: YES 3.14
697.2 Program cython found: YES (/tmp/pip-build-env-njxnqm39/overlay/bin/cython)
697.2 Compiler for C supports arguments -Wno-unused-but-set-variable: YES
697.2 Compiler for C supports arguments -Wno-unused-function: YES
697.2 Compiler for C supports arguments -Wno-conversion: YES
697.2 Compiler for C supports arguments -Wno-misleading-indentation: YES
697.2 Library m found: YES
697.2
697.2 ../meson.build:80:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang-new'], ['flang'], ['nvfortran'], ['pgfortran'], ['ifort'], ['ifx'], ['g95']]
697.2 The following exception(s) were encountered:
697.2 Running flang-new --help gave "[Errno 2] No such file or directory: 'flang-new'"
697.2 Running flang-new --version gave "[Errno 2] No such file or directory: 'flang-new'"
697.2 Running flang-new -V gave "[Errno 2] No such file or directory: 'flang-new'"
697.2 Running flang --help gave "[Errno 2] No such file or directory: 'flang'"
697.2 Running flang --version gave "[Errno 2] No such file or directory: 'flang'"
697.2 Running flang -V gave "[Errno 2] No such file or directory: 'flang'"
697.2 Running nvfortran --help gave "[Errno 2] No such file or directory: 'nvfortran'"
697.2 Running nvfortran --version gave "[Errno 2] No such file or directory: 'nvfortran'"
697.2 Running nvfortran -V gave "[Errno 2] No such file or directory: 'nvfortran'"
697.2 Running pgfortran --help gave "[Errno 2] No such file or directory: 'pgfortran'"
697.2 Running pgfortran --version gave "[Errno 2] No such file or directory: 'pgfortran'"
697.2 Running pgfortran -V gave "[Errno 2] No such file or directory: 'pgfortran'"
697.2 Running ifort --help gave "[Errno 2] No such file or directory: 'ifort'"
697.2 Running ifort --version gave "[Errno 2] No such file or directory: 'ifort'"
697.2 Running ifort -V gave "[Errno 2] No such file or directory: 'ifort'"
697.2 Running ifx --help gave "[Errno 2] No such file or directory: 'ifx'"
697.2 Running ifx --version gave "[Errno 2] No such file or directory: 'ifx'"
697.2 Running ifx -V gave "[Errno 2] No such file or directory: 'ifx'"
697.2 Running g95 --help gave "[Errno 2] No such file or directory: 'g95'"
697.2 Running g95 --version gave "[Errno 2] No such file or directory: 'g95'"
697.2 Running g95 -V gave "[Errno 2] No such file or directory: 'g95'"
697.2
697.2 A full log can be found at /tmp/pip-install-g3m0i35y/scipy_c7e31ea8ef8d4329af06616ac6d84efb/.mesonpy-vnml40_f/meson-logs/meson-log.txt
697.2 [end of output]
697.2
697.2 note: This error originates from a subprocess, and is likely not a problem with pip.
697.3 error: metadata-generation-failed
697.3
697.3 × Encountered error while generating package metadata.
697.3 ╰─> SciPy
697.3
697.3 note: This is an issue with the package mentioned above, not pip.
697.3 hint: See above for details.
Dockerfile:12
10 | COPY ./requirements.txt .
11 | ENV PATH="/app/venv/bin:$PATH"
12 | >>> RUN pip install --no-cache-dir -r requirements.txt
13 |
14 | FROM cgr.dev/chainguard/python:latest
ERROR: failed to build: failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1
Each time, I moved the requirement to it's own install line and removed them from requirements.txt:
RUN pip install --upgrade pip setuptools wheel
RUN pip install --only-binary=:all: "numpy>=2.1.1"
RUN pip install --only-binary=:all: "scipy>=1.15.1"
RUN pip install --only-binary=:all: "psycopg2-binary>=2.9.10"
RUN pip install --only-binary=:all: "pillow>=11.1.0"
RUN pip install --only-binary=:all: "aiohttp>=3.12.15"
RUN pip install --no-cache-dir -r requirements.txt
At this point, I think it must be my workstation:
- Windows 11 Pro 25H2
- AMD Ryzen 7 2700 CPU
- Docker Engine v28.4.0
- Docker builder docker-linux v0.24.0
- VS Code 1.106.3