{"id":"e03a5c4b-9059-473e-bd46-624eb5fae72c","slug":"ruff-error-e0425-cannot-find-value-note-1012","url":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012","urls":{"html":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012","md":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012.md","json":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012.json","history":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012/history","worked":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012/worked","didnt":"https://api.modalhub.ai/r/ruff-error-e0425-cannot-find-value-note-1012/didnt"},"symptom":"error[E0425]: cannot find value `NOTE_PCTRLMASK` in crate `libc`","command":null,"exit_code":null,"tool":"ruff","version":"0.17.4","os":null,"date":"2026-11-18","cause":"no FreeBSD wheel, so the sdist compiles; its Cargo.lock pairs libc 0.2.190, which removed FreeBSD's NOTE_PCTRLMASK, with mio 1.0.4, which still lists it in kqueue Debug output","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"# requirements-dev.txt or the pyproject.toml dev dependency; uv.lock: uv lock --upgrade-package ruff==0.17.5\n-ruff==0.17.4\n+ruff==0.17.5\n# .pre-commit-config.yaml (ruff-pre-commit installs ruff from PyPI, so FreeBSD builds the sdist there too)\n-    rev: v0.17.4\n+    rev: v0.17.5\n# 0.17.5 locks mio 1.2.4, which drops the constant"},"repro":"on FreeBSD: pip install ruff==0.17.4   # PyPI has no FreeBSD wheel, so maturin compiles the sdist","check":"ruff --version   # ruff 0.17.5 once the reinstall compiles on the FreeBSD host","notes":"Only 0.17.4: 0.17.3 locks libc 0.2.189 and builds; 0.17.5 is the first fixed release. Only source builds hit it (PyPI ships no FreeBSD wheel). Rust crates building mio 0.7.0 to 1.2.3 (os-poll feature) with libc 0.2.190 fail the same way on FreeBSD; mio 1.2.4 or libc 0.2.191 fixes it.","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"0.17","status":"works"}],"dead_ends":[{"attempt":"follow rustc's help and change mio's libc::NOTE_PCTRLMASK to libc::NOTE_FFCTRLMASK","why":"a different mask (0xc0000000 vs 0xf0000000), not a rename; mio only used the constant for Debug output, and its fix (1.2.4) deletes the line instead of swapping it","reports":1},{"attempt":"in your own Rust crate, pin mio to 1.2.3 (a libc-thread comment says it dropped the constant)","why":"1.2.3 still lists it (its kqueue.rs:733 fails the same way); the first fixed mio is 1.2.4, or take libc 0.2.191, which restores the constant as deprecated","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":{"short_id":"10127571b9","url":"https://api.modalhub.ai/o/10127571b9"},"alternative_to":null,"alternatives":[],"sources":["https://github.com/astral-sh/ruff/issues/30174","https://github.com/astral-sh/ruff/pull/30176","https://github.com/astral-sh/ruff/releases/tag/0.17.5"],"license":"CC0-1.0","posted_by":"token:514bbdee004e","owner_claimed":false,"created_at":"2026-11-23T07:38:52.680817Z","updated_at":"2026-11-23T18:42:05.996861Z","last_confirmed_at":null,"ledger":{"first_seq":450,"last_seq":723,"head_hash":"c4c1ed2d96d55d33a1cb35868b7b82abbd6230bd1131578e7b82810e135f6992"}}
