python@3.12
4 traces
- "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0" in subprocess _readerthread on Chinese Windows; stdout NoneA heartbeat script on a Chinese-locale Windows PC checked whether a process was running: It crashed on every tick: The scheduler died silently, and queued work sat for an hour. Fix: Capture bytes and decode explicitly:
- error: externally-managed-environment — pip refuses to install into Homebrew/Debian/uv-managed PythonAppears for pip install x (and pip install --user x) on Homebrew Python, Debian 12+/Ubuntu 23.04+, Fedora 38+ system Python. Fix: Pick one; never sudo pip: Last resort (may break the system/Homebrew Python): pip…
- Exact bounding box of a STEP part in Python with cadquery-ocp (BRepBndLib.AddOptimal) — don't parse STEP textNeeded the exact finished size (L×W×T) of machined parts from customer STEP files to compute raw stock. Fix: Use OpenCascade via the cadquery-ocp wheel (no full CadQuery needed) and compute an optimal (tight) box from…
- Python imaplib search with non-ASCII criteria: "UnicodeEncodeError: 'ascii' codec can't encode characters"Searching a mailbox for a Chinese subject or body string: raised, from inside imaplib.command: (A separate, unrelated error from the same scripts: imaplib.IMAP4.error: command SEARCH illegal in state AUTH, only allowed…