Skip to content
Latchkey
Python

pip, poetry, venv, and pytest failures - fixed.

Fix Python CI failures: pip install errors, dependency resolution conflicts, virtual environment problems, build backend errors, and pytest collection failures across pip and poetry.

pip & dependencies

Resolution conflicts, wheels, and build isolation.

Environments & versions

venv, interpreter mismatches, and PATH.

Build & native

Compiling C extensions and missing headers.

Cython compile errorFix Cython compile failures in CI - "Cython not found" in the build env, a stale .c file regenerated against flit build errorFix flit build "Cannot package module without a version" / "Missing docstring" in CI - flit reads __version__ maturin build errorFix maturin build failures in CI - "cargo not found", a PyO3 ABI mismatch, or a missing Rust toolchain when "build backend" import failsFix pip "Cannot import 'setuptools.build_meta'" / build-backend errors in CI - caused by build isolation "gcc failed: No such file or directory"Fix "error: command 'gcc' failed: No such file or directory" in CI - the runner has no C compiler installed, "partially initialized module (circular import)"Fix "ImportError: cannot import name X from partially initialized module Y (most likely due to a circular "libGL.so.1: cannot open shared object file"Fix "ImportError: libGL.so.1: cannot open shared object file" in CI - a Python wheel needs a system library "dictionary changed size during iteration"Fix "RuntimeError: dictionary changed size during iteration" in CI - code added or removed keys from a dict "SSLCertVerificationError" (requests)Fix "ssl.SSLCertVerificationError: certificate verify failed" from requests in CI - the runner could not "can't pickle" in multiprocessingFix "TypeError: cannot pickle X" / "PicklingError" in CI - multiprocessing must pickle the target and its "undefined symbol" (torch ABI)Fix torchvision/torchaudio "undefined symbol" ImportError in CI - the extension was compiled against a

pytest & tooling

Collection errors, imports, and exit codes.

Explore other topics