Skip to content

Commit 3fddf2a

Browse files
committed
RHAIENG-2111: build(trustyai): add missing pillow requirements and other python requirements
``` The headers or library files could not be found for jpeg, a required dependency when compiling Pillow from source. Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation/basic-installation.html × Failed to build `/tmp/tmp.mHgTyZTiW2/Pillow` ├─▶ The build backend returned an error ╰─▶ Call to `backend.build_wheel` failed (exit status: 1) hint: This usually indicates a problem with the package or the build environment. subprocess exited with status 2 ``` ``` Could not find directory of OpenSSL installation, and this `-sys` crate cannot proceed without this knowledge. If OpenSSL is installed and this crate had trouble finding it, you can set the `OPENSSL_DIR` environment variable for the compilation process. Make sure you also have the development packages of openssl installed. For example, `libssl-dev` on Ubuntu or `openssl-devel` on Fedora. If you're in a situation where you think the directory *should* be found automatically, please open a bug at https://github.com/sfackler/rust-openssl and include information about your system as well as this message. ... warning: build failed, waiting for other jobs to finish... 💥 maturin failed Caused by: Failed to build a native library through cargo Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_BUILD_EXTENSION_MODULE="1" PYO3_ENVIRONMENT_SIGNATURE="cpython-3.12-64bit" PYO3_PYTHON="/root/.cache/uv/builds-v0/.tmpsjsmaI/bin/python" PYTHON_SYS_EXECUTABLE="/root/.cache/uv/builds-v0/.tmpsjsmaI/bin/python" "cargo" "rustc" "--profile" "release" "--features" "pyo3/abi3-py37" "--message-format" "json-render-diagnostics" "--locked" "--manifest-path" "/root/.cache/uv/sdists-v9/index/c2c553577285dd6f/cryptography/43.0.3/0S5Vw6G2gpWxT0EJkPki9/src/src/rust/Cargo.toml" "--lib"` Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/root/.cache/uv/builds-v0/.tmpsjsmaI/bin/python', '--compatibility', 'off'] returned non-zero exit status 1 hint: This usually indicates a problem with the package or the build environment. subprocess exited with status 1 ``` ``` + uv pip install /wheelsdir/pillow-11.3.0-cp312-cp312-manylinux_2_34_ppc64le.whl /wheelsdir/pyarrow-20.0.0-cp312-cp312-linux_ppc64le.whl /wheelsdir/torch-2.7.1-cp312-cp312-linux_ppc64le.whl accelerate --cache-dir /root/.cache/uv ... × No solution found when resolving dependencies: ╰─▶ Because numpy==2.3.4 has no wheels with a matching platform tag (e.g., `manylinux_2_34_ppc64le`) and only numpy==2.3.4 is available, we can conclude that numpy==2.3.4 cannot be used. And because accelerate==1.10.1 depends on numpy==2.3.4 and only the following versions of accelerate are available: accelerate==1.10.1 accelerate==1.11.0 we can conclude that accelerate<1.11.0 cannot be used. (1) Because numpy==2.3.4 has no wheels with a matching platform tag (e.g., `manylinux_2_34_ppc64le`) and only numpy==2.3.4 is available, we can conclude that numpy==2.3.4 cannot be used. And because accelerate==1.11.0 depends on numpy==2.3.4, we can conclude that accelerate==1.11.0 cannot be used. And because we know from (1) that accelerate<1.11.0 cannot be used, we can conclude that all versions of accelerate cannot be used. And because you require accelerate, we can conclude that your requirements are unsatisfiable. hint: Wheels are available for `numpy` (v2.3.4) on the following platforms: `linux_aarch64`, `linux_x86_64` subprocess exited with status 1 ```
1 parent 0f5b57e commit 3fddf2a

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

jupyter/trustyai/ubi9-python-3.12/Dockerfile.konflux.cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ RUN --mount=type=cache,from=whl-cache,source=/wheelsdir/,target=/wheelsdir/,rw \
243243
set -Eeuxo pipefail
244244
ARCH=$(uname -m)
245245
if [ "$ARCH" = "ppc64le" ] || [ "$ARCH" = "s390x" ]; then
246-
UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install /wheelsdir/*.whl accelerate --cache-dir /root/.cache/uv
246+
UV_NO_CACHE=false UV_LINK_MODE=copy uv pip install /wheelsdir/*.whl accelerate --extra-index-url https://pypi.org/simple --cache-dir /root/.cache/uv
247247
fi
248248
EOF
249249

jupyter/trustyai/ubi9-python-3.12/devel_env_setup.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,12 @@ if [[ $(uname -m) == "ppc64le" ]] || [[ $(uname -m) == "s390x" ]]; then
6060
tcl-devel tk-devel unixODBC-devel \
6161
git tar wget unzip
6262
else
63-
# ppc64le packages
63+
# ppc64le packages, mostly compile requirements for pillow
64+
# and openssl-devel for maturin, and gcc-gfortran for scikit-learn
6465
dnf install -y --setopt=keepcache=1 fribidi-devel lcms2-devel libimagequant-devel \
65-
libraqm-devel openjpeg2-devel tcl-devel tk-devel unixODBC-devel
66+
zlib-devel libraqm-devel libjpeg-devel libjpeg-turbo-devel openjpeg2-devel tcl-devel tk-devel \
67+
openssl-devel gcc-gfortran \
68+
unixODBC-devel
6669
fi
6770

6871
# Install Rust for both ppc64le and s390x

0 commit comments

Comments
 (0)