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.

"'FieldInfo' object has no attribute"Fix "AttributeError: 'FieldInfo' object has no attribute X" in CI - code reads Pydantic v1 field internals th… "BaseSettings has been moved"Fix Pydantic v2 "BaseSettings has been moved to the pydantic-settings package" in CI - config classes must im… "cannot import name ... from 'pydantic'"Fix "ImportError: cannot import name X from 'pydantic'" in CI - code written for Pydantic v1 ran against Pyda… "orjson must be installed"Fix FastAPI "orjson must be installed to use ORJSONResponse" (or the ujson equivalent) in CI - the optional J… "pydantic.errors.PydanticUserError"Fix "pydantic.errors.PydanticUserError" in CI - a model or config uses a Pydantic v1 pattern (validator signa… "python-multipart must be installed"Fix FastAPI "Form data requires 'python-multipart' to be installed" in CI - form and file endpoints need the… "401 ... Repository Not Found"Fix huggingface_hub "401 Client Error ... Repository Not Found for url" in CI - the Hub rejected an unauthent… "429 ... rate-limited"Fix huggingface_hub "429 Client Error: Too Many Requests" in CI - the Hub rate-limited anonymous or bursty re… "Can't load tokenizer"Fix transformers "OSError: Can't load tokenizer for <repo>" in CI - the tokenizer files are missing, the repo… "Couldn't connect to https://huggingface.co"Fix Hugging Face "ConnectionError ... couldn't connect to https://huggingface.co" in CI - the runner could no… "Consistency check failed"Fix huggingface_hub "Consistency check failed: file should be of size X but has size Y" in CI - a download wa… "CUDA out of memory" (HF load)Fix "torch.cuda.OutOfMemoryError: CUDA out of memory" when loading a Hugging Face model in CI - the checkpoin… "does not have a config.json"Fix transformers "OSError: <repo> does not appear to have a file named config.json" in CI - the repo, revisio… "GatedRepoError ... access is restricted"Fix huggingface_hub "GatedRepoError ... Access to model <repo> is restricted" in CI - you must accept the mod… "huggingface-cli: command not found"Fix "huggingface-cli: command not found" in CI - the huggingface_hub package is not installed, or its console… "requires the ... library but it was not found"Fix transformers "ImportError ... requires the PyTorch library but it was not found" (or accelerate) in CI -… "not a valid model identifier"Fix Hugging Face "OSError: <repo> is not a local folder and is not a valid model identifier listed on hugging… "No space left on device" (HF cache)Fix "OSError: [Errno 28] No space left on device" while downloading Hugging Face models in CI - large weights… "403 Forbidden" on push_to_hubFix huggingface_hub "403 Forbidden ... you don't have the rights to create/write" on push_to_hub in CI - the… "ReadTimeoutError" (download)Fix huggingface_hub "ReadTimeoutError ... Read timed out" while downloading model files in CI - a large weigh… "RepositoryNotFoundError"Fix huggingface_hub "RepositoryNotFoundError" in CI - the repo id, repo_type (model vs dataset vs space), or… "Revision Not Found for url"Fix huggingface_hub "RevisionNotFoundError: 404 ... Revision Not Found" in CI - the branch, tag, or commit pa… "symlinks not supported ... cache-system"Fix the huggingface_hub "cache-system uses symlinks by default ... your machine does not support them" warnin… "Token is required"Fix huggingface_hub "Token is required (token=True), but no token found" in CI - a call demanded authenticati… "Couldn't find a dataset script"Fix datasets "FileNotFoundError: Couldn't find a dataset script" in CI - the dataset name, path, or config is… "requires you to execute ... trust_remote_code"Fix datasets "The repository ... contains custom code which must be executed ... pass trust_remote_code=True"… "smudge filter lfs failed"Fix Git LFS "smudge filter lfs failed" when cloning a Hugging Face model repo in CI - large files are LFS-tra… "cannot find the requested files in the cached path"Fix Hugging Face "Cannot find the requested files in the cached path and outgoing traffic has been disabled"… "SafetensorError: ... HeaderTooLarge"Fix safetensors "SafetensorError: Error while deserializing header: HeaderTooLarge" in CI - the .safetensors… "Loading ... requires ... trust_remote_code=True"Fix transformers "Loading <model> requires you to execute the configuration file ... set trust_remote_code=Tr… PDM "lock does not match"Fix PDM "Lock file hash does not match pyproject.toml" and pdm install/sync failures in CI - the lock is stal… "--config-settings"Fix pip "--config-settings" not taking effect or "unknown config setting" in CI - wrong key, an old pip that… "--find-links" no candidateFix pip "--find-links" not finding a local/offline wheel in CI - a wrong directory, a tag mismatch, or a name… "--no-build-isolation" buildFix a "pip install --no-build-isolation" failure in CI - disabling isolation means the build backend and its… --target not on pathFix packages installed with pip "--target DIR" failing to import in a later step - the directory is not on sy… "combine --user and --target"Fix pip "Can not combine '--user' and '--target'" and --target / --prefix conflicts in CI - these install-loc… "conflicting dependencies"Fix pip "Cannot install X and Y because these package versions have conflicting dependencies" in CI - two req… "conflicting dependencies"Fix pip "Cannot install X and Y because these have conflicting dependencies" in CI - two direct requirements… "pip: command not found"Fix "pip: command not found" in CI - the runner has Python but no `pip` on PATH, or pip lives only as a modul… "which use PEP 517"Fix pip "Could not build wheels for X, which is required to install pyproject.toml-based projects" in CI - a… "Could not build wheels for cffi"Fix pip "Could not build wheels for cffi" in CI - the C foreign function interface build needs a compiler and… "can't find Rust compiler"Fix pip "Could not build wheels for cryptography" in CI - modern cryptography builds its core in Rust and the… "Could not build wheels for lxml"Fix pip "Could not build wheels for lxml" in CI - the lxml source build needs libxml2 and libxslt development… "could not build wheels"Fix pip "ERROR: Could not build wheels for X, which is required to install pyproject.toml-based projects" in… "No matching distribution"Fix pip "Could not find a version that satisfies the requirement" / "No matching distribution found" in CI -… "could not find a version that satisfies"Fix pip "ERROR: Could not find a version that satisfies the requirement X" in CI - the index has no release m… "Defaulting to user installation"Fix pip "Defaulting to user installation because normal site-packages is not writeable" in CI - packages land… "Defaulting to user installation"Fix pip "Defaulting to user installation because normal site-packages is not writeable" in CI - site-packages… "externally-managed-environment"Fix pip "error: externally-managed-environment" (PEP 668) in CI - install into a virtualenv instead of fighti… "invalid command 'bdist_wheel'"Fix "error: invalid command 'bdist_wheel'" in CI - setuptools cannot build a wheel because the `wheel` packag… "no such option"Fix pip "error: no such option" in CI - a misspelled flag, an option for the wrong subcommand, or a requireme… "subprocess-exited-with-error"Fix pip "error: subprocess-exited-with-error" in CI - a generic wrapper for a failed build subprocess. Read t… "externally-managed-environment"Fix pip "error: externally-managed-environment" in CI - pip refuses to install into a system Python protected… "externally-managed" (Docker)Fix pip "error: externally-managed-environment" inside a Docker build on a Debian/Ubuntu base image - the sys… "Failed building wheel"Fix pip "ERROR: Failed building wheel for <pkg>" in CI - when there is no prebuilt wheel and the source build… "does not appear to be a Python project"Fix pip "ERROR: file:///path does not appear to be a Python project: neither setup.py nor pyproject.toml foun… "could not read Username for git+https"Fix a pip "git+https://" install that fails authentication in CI - the clone of a private repo dependency has… "Hashes are required"Fix pip "Hashes are required in --require-hashes mode" in CI - every direct and transitive requirement must b… "Invalid requirement"Fix pip "ERROR: Invalid requirement" and requirements.txt parse errors in CI - bad version operators, stray c… "Max retries exceeded"Fix pip "HTTPSConnectionPool(...): Max retries exceeded with url" in CI - pip exhausted its retries reaching… "Microsoft Visual C++ 14.0 is required"Fix pip "error: Microsoft Visual C++ 14.0 or greater is required" (Windows) or "gcc: command not found" (Linu… "Microsoft Visual C++ ... required"Fix "Microsoft Visual C++ 14.0 or greater is required" building a Python package on Windows CI - install Buil… "No matching distribution found"Fix pip "ERROR: No matching distribution found for X" in CI - pip reached an index but found no release match… "No matching distribution" (yanked)Fix pip "No matching distribution found for X==Y" in CI when the exact version was yanked or removed from PyP… "not a supported wheel"Fix pip "X.whl is not a supported wheel on this platform" in CI - a manylinux wheel on musl (Alpine), a too-n… "[Errno 13] Permission denied"Fix pip "Could not install packages due to an OSError: [Errno 13] Permission denied" in CI - installing into… "[Errno 28] No space left"Fix pip "Could not install packages due to an OSError: [Errno 28] No space left on device" in CI - the runner… editable "pip install -e ."Fix "pip install -e ." failures in CI - missing build backend, no editable support on old setuptools, or a pr… "does not support editable"Fix pip "ERROR: Project file:///... does not support editable installs" / "build_editable not supported" in C… "ReadTimeoutError"Fix pip "ReadTimeoutError" and connection failures in CI - pip could not download a package within the timeou… "ReadTimeoutError"Fix transient pip "ReadTimeoutError" and "Connection broken" failures in CI - network blips and slow PyPI mir… "requires a different Python"Fix pip "Requires-Python" / "requires a different Python" errors in CI when a package version is incompatible… "ResolutionImpossible"Fix pip "ResolutionImpossible: for help visit ..." dependency conflicts in CI - when two packages pin incompa… "ResolutionImpossible"Fix pip "ResolutionImpossible" in CI - the new resolver exhausted all candidates because two requirements dem… "CERTIFICATE_VERIFY_FAILED"Fix pip "SSL: CERTIFICATE_VERIFY_FAILED" in CI - caused by a missing CA bundle, a proxy doing TLS interceptio… "CERTIFICATE_VERIFY_FAILED"Fix pip "SSLError: [SSL: CERTIFICATE_VERIFY_FAILED]" in CI - pip could not verify the index TLS certificate a… "DO NOT MATCH THE HASHES"Fix pip "THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE" in CI - a stale/incomplete hash,… "Ignoring invalid distribution"Fix pip "WARNING: Ignoring invalid distribution -X" in CI - a partially removed or corrupted package left a s… "Retrying ... connection broken"Fix pip "WARNING: Retrying ... after connection broken" in CI - transient network drops reaching PyPI. Add re… "Running pip as root"Understand pip "WARNING: Running pip as the 'root' user can result in broken permissions" in CI - when it is… "installed in ... not on PATH"Fix pip "WARNING: The scripts X are installed in '~/.local/bin' which is not on PATH" in CI - console entry p… "401 Unauthorized" from private indexFix pip 401/403 errors from a private package index in CI - the request reached the index but the credentials… "DO NOT MATCH THE HASHES"Fix pip "THESE PACKAGES DO NOT MATCH THE HASHES" under --require-hashes in CI - the downloaded artifact does… "pip install -e ." failsFix "pip install -e ." failures in CI - pip cannot build the editable install because the project metadata, b… "pg_config executable not found"Fix psycopg2 "Error: pg_config executable not found" in CI - the source build needs PostgreSQL client dev fil… "pip-compile" resolutionFix pip-tools "pip-compile" failures in CI - a backtracking resolver giving up, a missing index for a private… "Locking Failed!"Fix Pipenv "Locking Failed!" / "Your dependencies could not be resolved" in CI - conflicting constraints, a P… "Locking Failed!"Fix pipenv "Locking Failed!" in CI - pipenv could not resolve a consistent set of versions for your Pipfile a… "Invalid PEP 440 version"Fix Poetry "Invalid PEP 440 version" in CI - a version string in pyproject.toml or a dependency constraint do… "poetry.lock is not consistent"Fix poetry "pyproject.toml changed significantly since poetry.lock was last generated" in CI - the lockfile i… "lock file is not up to date"Fix Poetry "pyproject.toml changed significantly since poetry.lock was last generated" in CI - regenerate and… "SolverProblemError"Fix Poetry "SolverProblemError: version solving failed" in CI - incompatible version constraints or a python… "SolverProblemError"Fix poetry "SolverProblemError: Could not find a matching version of X" in CI - poetry's solver could not sat… "current project could not be installed"Fix Poetry "The current project could not be installed: No file/folder found for package X" in CI - the packa… Poetry keyring backendFix Poetry keyring failures and hangs in CI - "Failed to create the collection: Prompt dismissed" or a stalle… "module has no attribute"Fix "AttributeError: module X has no attribute Y" in CI caused by version skew - a dependency upgrade moved,… "backend is not available"Fix "Backend object ... is not available" / "Cannot import build backend" in CI - pyproject.toml names a buil… "[Errno 11] Resource temporarily unavailable"Fix Python "BlockingIOError: [Errno 11] Resource temporarily unavailable" in CI - writing to a full non-block… "partially initialized module"Fix "ImportError: cannot import name X from partially initialized module (most likely due to a circular impor… "PackageNotFoundError"Fix "importlib.metadata.PackageNotFoundError: No package metadata was found for X" in CI - the package is not… "KeyError" (os.environ)Fix "KeyError: 'VAR'" from os.environ[...] in CI - a required environment variable isn’t set in the job. Set… "No module named 'distutils'"Fix "ModuleNotFoundError: No module named 'distutils'" in CI on Python 3.12+ - distutils was removed; upgrade… "No module named pip"Fix "No module named pip" / "pip: command not found" in CI - when the interpreter has no pip, the venv was bu… "[Errno 24] Too many open files"Fix Python "OSError: [Errno 24] Too many open files" (EMFILE) in CI - a file-descriptor leak or a too-low uli… "pkg_resources is deprecated"Fix the "pkg_resources is deprecated as an API" DeprecationWarning breaking CI - when warnings are promoted t… "ContextualVersionConflict"Fix "pkg_resources.ContextualVersionConflict" in CI - an installed package version does not satisfy what anot… "pkg_resources.DistributionNotFound"Fix "pkg_resources.DistributionNotFound: The X distribution was not found and is required" in CI - a declared… shutil.which() → NoneFix Python code that crashes because shutil.which("tool") returned None in CI - an external binary (git, ffmp… "ssl.SSLError"Fix "ssl.SSLError: [SSL: WRONG_VERSION_NUMBER]" / handshake failures in Python tests in CI - TLS to a local t… "undefined symbol" (ABI)Fix a C-extension "ImportError: undefined symbol" or ABI mismatch in CI - a binary built against one Python o… "FileNotFoundError" (subprocess)Fix subprocess.run() "FileNotFoundError: [Errno 2] No such file or directory: 'cmd'" in CI - the program isn’… "requests.exceptions.SSLError"Fix requests.exceptions.SSLError "CERTIFICATE_VERIFY_FAILED" in CI - point requests at the right CA bundle vi… setup.cfg vs pyprojectFix setuptools errors when metadata is split between setup.cfg and pyproject.toml - duplicate or conflicting… "use_2to3 is invalid"Fix "error in setup command: use_2to3 is invalid" in CI - newer setuptools removed the 2to3 build option, so… setuptools_scm version lookupFix a setuptools_scm package whose runtime version read via importlib.metadata fails in CI - the dynamic vers… "No interpreter found"Fix uv "No interpreter found for Python 3.X in ..." in CI - uv could not locate a matching Python; install it… "No solution found"Fix uv "× No solution found when resolving dependencies" in CI - uv’s resolver hit conflicting constraints or… "lockfile is out of date"Fix uv "The lockfile at uv.lock is out of date" / "--frozen" failures in CI - pyproject.toml changed without… uv "No solution found"Fix uv "No solution found when resolving dependencies" in CI - uv's resolver proved your requirements are mut…

Environments & versions

venv, interpreter mismatches, and PATH.

black "would reformat"Fix black "would reformat" failing CI under --check - black found files whose formatting differs from its sty… "CondaHTTPError"Fix transient conda "CondaHTTPError: HTTP 000 CONNECTION FAILED" / "failed with repodata.json" in CI - a netw… "Found conflicts!"Fix conda "Found conflicts! Looking for incompatible packages" / endless solving in CI - incompatible pins, m… "PackagesNotFoundError"Fix conda "PackagesNotFoundError: packages are not available from current channels" in CI - add the right cha… "ResolvePackageNotFound"Fix conda "ResolvePackageNotFound" creating an env from environment.yml in CI - platform-specific pins or exa… "Couldn't parse '.coverage'"Fix coverage "Couldn't parse '.coverage'" during combine in CI - a data file is corrupt, empty, or from an in… coverage.py "No source for code"Fix coverage.py "NoSource: No source for code" / "CoverageWarning: No source" in CI - coverage recorded a fil… "Could not find profile named"Fix dbt "Could not find profile named X" in CI - the profile key in dbt_project.yml does not match any profil… "profiles.yml file ... not found"Fix dbt "Runtime Error: Could not find profiles.yml" in CI - dbt looked in ~/.dbt and the profiles directory… "Credentials in profile ... target ... invalid"Fix dbt "Credentials in profile ..., target ... invalid" in CI - profiles.yml is missing a required connectio… "Database Error ... could not connect"Fix dbt "Database Error ... could not connect to server / connection refused" in CI - the credentials or netw… "could not find ... version" (dbt deps)Fix dbt deps failures in CI - packages.yml requests a package or version that dbt cannot resolve from the hub… "Env var required but not provided"Fix dbt "Env var required but not provided: DBT_..." in CI - a profiles.yml env_var call references a variabl… "version ... not compatible with required_dbt_version"Fix dbt "Runtime Error ... version not compatible with required_dbt_version" in CI - the installed dbt does n… "Could not find adapter type" (not installed)Fix dbt "Runtime Error: Could not find adapter type snowflake" in CI - the adapter package (dbt-snowflake, db… dbt deps git package auth failedFix dbt deps git package authentication failures in CI - a private git-based package in packages.yml cannot b… "ALLOWED_HOSTS ... must not be empty"Fix Django "ImproperlyConfigured: You must set settings.ALLOWED_HOSTS if DEBUG is False" and DisallowedHost i… "STATIC_ROOT ... hasn't been provided"Fix Django "ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting… "django.db.utils.OperationalError"Fix "django.db.utils.OperationalError" in CI - Django could not reach or use the configured database, from a… "FATAL: database ... does not exist"Fix Django "django.db.utils.OperationalError: FATAL: database app does not exist" in CI - DATABASES names a d… "permission denied to create database"Fix Django "Got an error creating the test database: permission denied to create database" in CI - the Postgr… "No module named 'myproject.settings'"Fix Django "ModuleNotFoundError: No module named myproject.settings" in CI - DJANGO_SETTINGS_MODULE points at… "could not connect to server"Fix Django "django.db.utils.OperationalError: could not connect to server: Connection refused" in CI - the Po… "settings are not configured"Fix Django "ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured" in CI -… "received a naive datetime"Fix Django "RuntimeWarning: DateTimeField X received a naive datetime while time zone support is active" that… check --deploy fails on DEBUGFix Django "manage.py check --deploy" failures in CI caused by DEBUG being True or read from an unset env var… "DJANGO_SETTINGS_MODULE"Fix Django "ImproperlyConfigured: settings are not configured ... DJANGO_SETTINGS_MODULE" in CI - set the env… "The SECRET_KEY setting must not be empty"Fix Django "ImproperlyConfigured: The SECRET_KEY setting must not be empty" in CI - settings read SECRET_KEY… "Connection refused" to RedisFix Celery "redis.exceptions.ConnectionError: Error 111 connecting to localhost:6379. Connection refused" in… "Missing staticfiles manifest entry"Fix Django "ValueError: Missing staticfiles manifest entry for X" in CI - the manifest storage backend requir… "[Errno 98] Address already in use"Fix uvicorn "[Errno 98] address already in use" in CI - an integration test started the server on a port that… "httpx.ConnectError"Fix "httpx.ConnectError: [Errno 111] Connection refused" in CI - an integration test made an HTTP request bef… "No module named 'app'"Fix FastAPI "ModuleNotFoundError: No module named 'app'" in CI - pytest or uvicorn cannot import your applica… "uvicorn: command not found"Fix "uvicorn: command not found" in CI - the ASGI server is not installed in the active environment, or its c… gunicorn "class uri ... invalid"Fix gunicorn "Invalid value for worker_class" / "class uri ... invalid" in CI - the uvicorn worker class is r… lifespan "Application startup failed"Fix FastAPI "Application startup failed. Exiting." in CI - an exception inside a lifespan or startup handler… mypy "Module has no attribute"Fix mypy "error: Module X has no attribute Y" in CI - the type checker cannot find a name on a module, from m… "Python interpreter X not found"Fix nox "Python interpreter X not found" in CI - a parametrized nox session requests a Python version that is… nox "interpreter not found"Fix nox skipping or failing a session because the requested Python is not installed on the runner - provide t… nox "Session ... failed"Fix a failing nox session in CI - nox reports a session failed because a command inside it exited non-zero or… "does not appear to be a Python project"Fix pip "ERROR: file://... does not appear to be a Python project" in CI - pip was pointed at a directory wit… "Executable doesn't exist"Fix Playwright Python "Executable doesn't exist" in CI - the browser binaries were not downloaded with "playw… "Because ... depends on"Fix Poetry "Because <pkg> depends on <dep> ... version solving failed" in CI - follow the "Because" chain to… "404 Client Error"Fix Poetry "HTTPError: 404 Client Error: Not Found for url" in CI - a misconfigured source, a wrong package n… "could not connect to server" (psycopg2)Fix psycopg2 "OperationalError: could not connect to server" in CI - the Postgres client could not reach the… "pydantic ValidationError"Fix pydantic "ValidationError" in tests in CI - data did not match the model schema, often from a v1-to-v2 be… "pydantic v1 vs v2"Fix pydantic v1-vs-v2 API skew in CI - v2 renamed validators, config, and serialization methods, so v1-style… "BaseSettings has been moved"Fix the Pydantic v1-to-v2 "BaseSettings has been moved to pydantic-settings" error in CI - settings classes m… "pyenv: version not found"Fix pyenv "pyenv: version `3.12.2` is not installed" / "version not found" in CI - the version in .python-ver… "pyenv: version not installed"Fix pyenv "version `X' is not installed" in CI - the .python-version pins an interpreter pyenv has not built… pyenv shim not rehashedFix pyenv selecting the wrong Python or a "command not found" after install in CI - the shims were not rehash… "ClientConnectorError"Fix "aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host" in CI - the aiohttp client could… "unrecognized arguments"Fix "error: unrecognized arguments" from argparse in CI - the CLI was passed a flag the parser does not defin… "attempted relative import with no known parent package"Fix "ImportError: attempted relative import with no known parent package" in CI - a module using relative imp… "module has no attribute"Fix "AttributeError: module 'X' has no attribute 'Y'" from version skew in CI - the installed library version… "BrokenProcessPool"Fix "concurrent.futures.process.BrokenProcessPool" in CI - a worker process in a ProcessPoolExecutor died abr… "cannot import name Mapping from collections"Fix "ImportError: cannot import name 'Mapping' from 'collections'" in CI - the ABCs were removed from the top… "click.UsageError"Fix "click.exceptions.UsageError" in CI - a Click CLI rejected its arguments (missing option, bad value, or n… "python: command not found"Fix "python: command not found" or the wrong Python version on a CI runner - the runner exposes `python3` but… "NoSectionError"Fix "configparser.NoSectionError" in CI - configparser was asked for a section that the loaded .ini file does… "ConnectionResetError"Fix "ConnectionResetError: [Errno 104] Connection reset by peer" in CI - the remote end closed a socket while… "no current event loop"Fix the asyncio "DeprecationWarning: There is no current event loop" (and its removal) breaking CI - get_even… "FileExistsError"Fix "FileExistsError: [Errno 17] File exists" in CI - mkdir or an exclusive open failed because the target al… "FileNotFoundError" from a wrong cwdFix "FileNotFoundError: [Errno 2] No such file or directory" in a test in CI - the code opens a path relative… "FileNotFoundError"Fix "FileNotFoundError: [Errno 2] No such file or directory" in CI - code opened a path that does not exist o… "httpx.ConnectError"Fix "httpx.ConnectError: All connection attempts failed" in CI - httpx could not open a connection to the hos… "cannot import name"Fix "ImportError: cannot import name X from Y" in CI - a removed/renamed API in a newer dependency, a circula… "DLL load failed while importing"Fix "ImportError: DLL load failed while importing X" on Windows CI runners - a native extension cannot find a… "libgthread-2.0.so.0"Fix "ImportError: libgthread-2.0.so.0: cannot open shared object file" in CI - install the GLib runtime (libg… importlib.resourcesFix importlib.resources / pkgutil "FileNotFoundError" for package data in CI - data files not included in the… "IsADirectoryError"Fix "IsADirectoryError: [Errno 21] Is a directory" in CI - code tried to open or read a path as a file but it… "Expecting value"Fix "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)" in CI - json.loads got an empty… "unsupported locale setting"Fix "locale.Error: unsupported locale setting" in CI - setlocale was called with a locale that is not generat… "No module named '_bz2'"Fix "ModuleNotFoundError: No module named '_bz2'" (and _lzma) in CI - the bzip2/lzma dev headers were missing… "No module named '_ctypes'"Fix "ModuleNotFoundError: No module named '_ctypes'" in CI - libffi dev headers were missing when Python was… "No module named '_ssl'"Fix "ModuleNotFoundError: No module named '_ssl'" in CI - OpenSSL dev headers were missing when Python was bu… "No module named 'tests'"Fix "ModuleNotFoundError: No module named 'tests'" in CI - an import of the tests package fails because the p… "ModuleNotFoundError"Fix "ModuleNotFoundError: No module named X" in CI - missing install, wrong interpreter/venv, or a sys.path/p… "ModuleNotFoundError" (namespace)Fix "ModuleNotFoundError: No module named X.Y" for a PEP 420 namespace package in CI - a stray __init__.py, o… "NotADirectoryError"Fix "NotADirectoryError: [Errno 20] Not a directory" in CI - a path component that the code treated as a dire… "[Errno 24] Too many open files"Fix "OSError: [Errno 24] Too many open files" in CI - the process exceeded the file-descriptor limit, usually… "[Errno 13]"Fix "PermissionError: [Errno 13] Permission denied" in CI - the process tried to read, write, or execute a pa… "python: command not found"Fix "python: command not found" in CI - the binary is named python3, the interpreter is not on PATH, or setup… "python" vs "python3"Fix CI where "python" and "python3" resolve to different interpreters - a system python2, a pyenv shim, or a… "maximum recursion depth exceeded"Fix "RecursionError: maximum recursion depth exceeded" in CI - genuine unbounded recursion, deep data structu… "Max retries exceeded"Fix "requests.exceptions.ConnectionError: Max retries exceeded with url" in CI - requests could not establish… "Event loop is closed"Fix "RuntimeError: Event loop is closed" in asyncio code and tests in CI - using a loop after it was closed,… "coroutine was never awaited"Fix "RuntimeWarning: coroutine X was never awaited" in CI - calling an async function without awaiting it, wh… "WRONG_VERSION_NUMBER"Fix "ssl.SSLError: [SSL: WRONG_VERSION_NUMBER]" in CI - a TLS handshake was attempted against a plaintext end… "CalledProcessError"Fix "subprocess.CalledProcessError: Command returned non-zero exit status" in CI - a command run with check=T… "SyntaxError" (version)Fix Python SyntaxError in CI caused by running newer syntax (walrus, match, f-strings) on an older interprete… sys.path manipulationFix fragile "sys.path.insert(0, ...)" import hacks that break in CI - relative path assumptions fail when the… "SystemError"Fix Python "SystemError: <built-in> returned a result with an error set" / "excessive stack use" in CI - usua… "TabError" / "IndentationError"Fix Python "TabError: inconsistent use of tabs and spaces" and IndentationError in CI - mixed indentation tha… "TimeoutError"Fix "TimeoutError" / "socket.timeout" in CI - a socket operation exceeded its timeout, usually a slow or unre… "UnicodeDecodeError" (locale)Fix "UnicodeDecodeError: 'ascii' codec can't decode byte" in CI - the runner locale defaults to ASCII/C, so r… "UnicodeDecodeError"Fix "UnicodeDecodeError: ascii codec can not decode byte" in CI - caused by a missing UTF-8 locale on minimal… "UnicodeEncodeError"Fix "UnicodeEncodeError: 'ascii' codec can't encode character" when printing in CI - a non-UTF-8 locale makes… "NewConnectionError"Fix "urllib3.exceptions.NewConnectionError: Failed to establish a new connection" in CI - urllib3 could not o… "yaml.scanner.ScannerError"Fix "yaml.scanner.ScannerError" in CI - PyYAML could not tokenize a YAML file, usually a tab character, bad i… conda env not activatedFix a conda environment that is not activated in CI - the runner uses the base interpreter, so packages insta… "cannot open shared object" (LD path)Fix a Python C-extension ImportError where the .so loads but a dependent library is not on LD_LIBRARY_PATH in… "KeyError" from os.environFix "KeyError: 'X'" from os.environ in CI - a required environment variable or secret is not set on the runne… multiprocessing fork vs spawnFix multiprocessing deadlocks, "context has already been set", or pickling errors in CI - fork-after-threads… "compiled against API version"Fix a NumPy ABI mismatch in CI - a C-extension package was compiled against a different NumPy version than th… PYTHONPATH not setFix local-package import failures in CI caused by an unset PYTHONPATH - your package directory is not on sys.… PYTHONPATH not setFix first-party imports failing in CI because PYTHONPATH is unset - code that relies on running from the repo… venv activate: wrong shellFix venv activation failing in CI non-bash shells - "source: not found" under sh/dash, or sourcing the wrong… venv "activate" lost between stepsFix a Python venv that activates in one CI step but is gone in the next - each step runs in a fresh shell, so… venv not activatedFix Python venv activation in CI - packages installed in one step vanish in the next because each step is a f… .python-version vs CI mismatchFix a Python version mismatch in CI - the runner uses a different interpreter than your `.python-version` / `… "SSLCertVerificationError"Fix requests "SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]" in CI - a missing CA bundle, a stal… ruff "Found N errors"Fix ruff failing CI with lint violations or "would reformat" - ruff found rule violations or formatting diffe… "session not created"Fix Selenium Python "Message: session not created" in CI - the browser and driver versions are mismatched, or… "QueuePool limit ... connection timed out"Fix SQLAlchemy "TimeoutError: QueuePool limit of size X overflow Y reached" in CI - the connection pool was e… tox "InterpreterNotFound"Fix tox "ERROR: InterpreterNotFound: pythonX.Y" in CI - tox cannot find the Python interpreter an environment… "InterpreterNotFound"Fix tox "py3X: InterpreterNotFound" in CI - tox cannot find a Python interpreter for an environment because t… Wrong Python versionFix the wrong Python version running in CI - syntax features failing or wheels missing because PATH resolves…

Build & native

Compiling C extensions and missing headers.

Airflow "db migrate" failedFix "airflow db migrate" / "airflow db upgrade" failures in CI - the metadata database is unreachable, uninit… alembic autogenerateFix Alembic "autogenerate" producing an empty migration or "Target database is not up to date" in CI - models… "... cannot be located"Fix auditwheel repair failing because a needed shared library cannot be located in CI, or patchelf is not ins… "is not a manylinux ... wheel"Fix auditwheel reporting a Linux wheel is not a manylinux wheel in CI. A plain linux_x86_64 wheel must be rep… "No module named 'setuptools'"Fix "ModuleNotFoundError: No module named 'setuptools'" during a PEP 517 build in CI. The isolated build env… "Unable to load celery"Fix Celery "Unable to load celery application" / "Receiver ... attribute error" in CI - a wrong -A app path,… "Unable to load celery application"Fix Celery "Error: Unable to load celery application. The module X was not found" in CI - a wrong -A target,… "No build identifiers selected"Fix cibuildwheel building zero wheels in CI because CIBW_BUILD/CIBW_SKIP filtered out every identifier. The s… "Repaired wheel ... not ... compliant"Fix cibuildwheel/auditwheel reporting a repaired wheel is still not manylinux compliant in CI. The wheel link… "Could not load dynamic library 'libcudart.so'"Fix "Could not load dynamic library 'libcudart.so.12'" in CI - the CUDA runtime library is missing from the r… "driver version is insufficient"Fix "CUDA driver version is insufficient for CUDA runtime version" in CI - the runner's NVIDIA kernel driver… "no CUDA-capable device is detected"Fix "CUDA error: no CUDA-capable device is detected" in CI - the job ran on a CPU-only runner, or the GPU was… "no kernel image is available"Fix CUDA "no kernel image is available for execution on the device" in CI - the installed binaries were not c… "nvcc: command not found"Fix "nvcc: command not found" in CI - the CUDA toolkit compiler is not installed or not on PATH, so a CUDA ex… Cython compile errorFix Cython compile failures in CI - "Cython not found" in the build env, a stale .c file regenerated against… dbt "Could not find adapter type"Fix dbt "Could not find adapter type X" in CI - the warehouse adapter package (dbt-snowflake, dbt-bigquery, d… "Apps aren't loaded yet"Fix Django "AppRegistryNotReady: Apps aren't loaded yet" in CI - code imported models or accessed the app reg… "pg_config executable not found"Fix "Error: pg_config executable not found" when pip builds psycopg2 for a Django app in CI - the Postgres cl… "manage.py check"Fix Django "manage.py check" failures in CI - system check framework errors (E001/W042), a missing DJANGO_SET… "doesn't declare an explicit app_label"Fix Django "RuntimeError: Model class X doesn't declare an explicit app_label and isn't in an application in… "without having set the STATIC_ROOT setting"Fix Django collectstatic "ImproperlyConfigured: You're using the staticfiles app without having set the STATI… "config file error"Fix DVC config file errors from .dvc/config in CI - a malformed or invalid config section stops DVC before it… "Checkout failed for" / not in cacheFix DVC "ERROR: Checkout failed for ... data ... not in cache" in CI - dvc checkout cannot materialize worksp… "circular dependency"Fix DVC "ERROR: circular dependency" in CI - a stage output feeds back as a dependency of an upstream stage,… "no such remote"Fix DVC "config file error: no remote 'X'" in CI - a command names a remote that is not defined in .dvc/confi… "failed to push data to the cloud"Fix DVC "ERROR: failed to push data to the cloud" in CI - the runner cannot upload cache objects to the remot… "failed to reproduce" a stageFix DVC "ERROR: failed to reproduce ... stage" in CI - a dvc repro pipeline stage command exited non-zero. Th… "dvc: command not found"Fix "dvc: command not found" in CI - DVC is not installed on the runner. Install it with pip or the iterative… "dvc.lock does not match"Fix DVC "dvc.lock does not match" / stages out of date in CI - the committed dvc.lock is stale relative to dv… "dvc.lock ... out of sync"Fix DVC pipeline failures where dvc.lock is out of sync with dvc.yaml in CI - committed lock and stage defini… "failed to reproduce experiment"Fix DVC "ERROR: Failed to reproduce experiment" (dvc exp run) in CI - an experiment run failed, usually becau… "missing cache files"Fix DVC "ERROR: Failed to collect ... missing cache files" in CI - the .dvc metadata references objects that… "failed to pull data ... no remote"Fix DVC "ERROR: failed to pull data from the cloud ... no remote provided" in CI - dvc pull has no configured… "failed to pull data from the cloud"Fix DVC "ERROR: failed to pull data from the cloud" in CI - the remote is reachable but the runner has no val… "md5 ... changed"Fix DVC "WARNING: md5 ... changed" in CI - a tracked file's hash no longer matches its .dvc record, so DVC se… "[Errno 28] No space left"Fix DVC "ERROR: unexpected error - [Errno 28] No space left on device" in CI - the runner disk filled while p… "already tracked by git"Fix DVC "ERROR: output ... is already tracked by SCM (e.g. Git)" in CI - you tried to dvc add a path Git alre… "Path ... does not exist"Fix DVC "ERROR: failed to ... - Path ... does not exist" from dvc get / dvc import in CI - the path or revisi… "paths are ignored by your gitignore"Fix DVC "ERROR: bad DVC file name ... The following paths are ignored by your .gitignore file" in CI - DVC ca… "Unable to acquire lock"Fix DVC "ERROR: Unable to acquire lock. Most likely another DVC process is running" in CI - a stale or concur… "unable to find DVC remote"Fix DVC "ERROR: unable to find DVC remote" in CI - dvc pull/push has no default remote configured, or the nam… "unable to read" a .dvc fileFix DVC "ERROR: unable to read" a .dvc file in CI - a tracking file is corrupt, truncated, or was mangled by… "not inside of a DVC repository"Fix DVC "ERROR: you are not inside of a DVC repository" in CI - the working directory has no .dvc directory b… "403" / "AccessDenied" from remoteFix DVC "403" / "AccessDenied" errors from an S3, GCS, or Azure remote in CI - the runner authenticated but t… DVC pointers "modified" in GitFix a dirty Git tree from DVC in CI - dvc add/repro updated .dvc pointers or dvc.lock that were not committed… Google Drive remote auth in CIFix DVC Google Drive remote authentication failures in CI - the interactive OAuth flow cannot run on a headle… DVC Studio token in CIFix DVC Studio integration failures in CI - sharing experiments or live metrics to DVC Studio needs a valid D… "Missing version or docstring"Fix the flit build error that the module is missing a __version__ or docstring in CI. flit reads version and… flit build errorFix flit build "Cannot package module without a version" / "Missing docstring" in CI - flit reads __version__… "Python.h: No such file or directory"Fix "fatal error: Python.h: No such file or directory" when compiling a Cython or C extension in CI. The Pyth… "Worker failed to boot"Fix gunicorn "Worker (pid:N) exited / Worker failed to boot" and uvicorn import errors in CI - the app module… "Field ... is required"Fix hatchling metadata errors where a required project field such as name is missing in CI. hatchling enforce… "missing field `project.version`"Fix the hatchling error that the project version is required but missing in CI. Either set a static version o… hatchling build errorFix hatchling build errors in CI - "Unknown field", "metadata field version not set", or a missing VCS hook w… "Unable to initialize backend 'gpu'"Fix JAX "RuntimeError: Unable to initialize backend 'gpu'" / "Backend 'gpu' failed to initialize" in CI - the… "Keras 3 ... not supported" / tf.keras mismatchFix Keras 3 / tf.keras import breakage in CI - TensorFlow 2.16+ ships Keras 3 by default, which breaks code w… "Could not find lib_lightgbm"Fix LightGBM "Cannot find lib_lightgbm.so" / "Could not find LightGBM library" in CI - the package cannot loa… "no display name and no $DISPLAY"Fix matplotlib "RuntimeError: Invalid DISPLAY variable" / "no display name and no $DISPLAY environment variab… "Can't find Rust compiler"Fix the maturin build error that it cannot find a Rust compiler in CI. The runner has no cargo/rustc on PATH,… "cargo metadata ... error"Fix maturin failing because `cargo metadata` exited with an error in CI. A broken or missing Cargo.toml, or a… maturin build errorFix maturin build failures in CI - "cargo not found", a PyO3 ABI mismatch, or a missing Rust toolchain when b… "abi3" feature requiredFix maturin/pyo3 abi3 build errors in CI where building without the abi3 feature requires the Python interpre… "Killed" during trainingFix an ML training step that prints only "Killed" in CI - the Linux OOM killer terminated the process for exc… nox reused venvFix nox sessions failing because a reused virtualenv has stale dependencies in CI - -r/-R reuses the env and… "module compiled against API version ... numpy"Fix NumPy "RuntimeError: module compiled against API version X but this version of numpy is Y" in CI - a bina… "numpy.core.multiarray failed to import"Fix "ImportError: numpy.core.multiarray failed to import" in CI - NumPy's C core could not load, usually from… "compiled against API version"Fix NumPy "RuntimeError: module compiled against API version 0x10 but this version of numpy is 0xe" in CI - a… "numpy.dtype size changed"Fix "ValueError: numpy.dtype size changed, may indicate binary incompatibility" in CI - an ABI mismatch betwe… "SettingWithCopyWarning"Fix pandas "SettingWithCopyWarning: A value is trying to be set on a copy of a slice" failing CI - when warni… PDM/uv source buildFix a PDM or uv install that falls back to building a dependency from source and fails for a missing compiler… "build-system.requires ... missing"Fix the pip error that the project's pyproject.toml has a [build-system] table without a valid requires key i… "Building wheel did not run successfully"Fix "Building wheel for X did not run successfully" with a Cython error in CI - the .pyx compilation step fai… "build backend" import failsFix pip "Cannot import 'setuptools.build_meta'" / build-backend errors in CI - caused by build isolation miss… "Cargo ... is not installed"Fix pip "This package requires Rust ... Cargo is not installed" in CI - packages like cryptography build from… "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,… "invalid command bdist_wheel"Fix "error: invalid command 'bdist_wheel'" in CI - setuptools cannot build a wheel because the wheel package… "legacy-install-failure"Fix pip "error: legacy-install-failure" in CI - a wrapper around a failed source build. Find the real compile… "legacy-install-failure"Fix pip "error: legacy-install-failure" in CI - the fallback "setup.py install" path failed, usually because… "metadata-generation-failed"Fix pip "error: metadata-generation-failed" in CI - the project build backend crashed while preparing package… "pg_config executable not found"Fix "Error: pg_config executable not found" building psycopg2 from source in CI - the PostgreSQL client heade… "fatal error: Python.h"Fix "fatal error: Python.h: No such file or directory" in CI - the Python development headers (python3-dev) a… "metadata-generation-failed"Fix pip "error: metadata-generation-failed" in CI - the build backend failed generating metadata, often from… "No module named _ctypes"Fix "ModuleNotFoundError: No module named '_ctypes'" in CI - the Python interpreter was built without libffi,… "neither setup.py nor pyproject.toml"Fix pip "ERROR: ... neither 'setup.py' nor 'pyproject.toml' found" in CI - installing a directory or VCS sour… torch CUDA dependency conflictFix the pip resolver conflict when installing torch alongside CUDA-pinned packages in CI - mixing the PyTorch… Playwright: browsers not installedFix Playwright for Python "Executable doesn’t exist ... run playwright install" and missing host-dependency e… "cannot import name 'BaseSettings'"Fix pydantic "ImportError: cannot import name 'BaseSettings' from 'pydantic'" in CI - v2 moved BaseSettings t… "PydanticUserError"Fix pydantic "PydanticUserError" after upgrading to v2 in CI - v1 patterns like @validator, Config classes, o… PySpark "JAVA_HOME is not set"Fix PySpark "JAVA_HOME is not set and no java in PATH" in CI - Spark needs a JVM but the runner has no Java i… "Backend build_sdist failed"Fix the PEP 517 error where build reports the backend's build_sdist hook failed in CI. The sdist step could n… "Backend build_wheel failed"Fix the PEP 517 frontend error where build reports the build backend's build_wheel hook failed in CI. The rea… "module X has no attribute Y"Fix "AttributeError: module X has no attribute Y" in CI - the imported module loaded but the name you accesse… "python: can't open file"Fix "python: can't open file 'X': [Errno 2] No such file or directory" in CI - the script path is wrong relat… "partially initialized module (circular import)"Fix "ImportError: cannot import name X from partially initialized module Y (most likely due to a circular imp… "Cython ... CompileError"Fix "Cython.Compiler.Errors.CompileError" / "Cython is required" building a package in CI - a missing or too-… "gcc failed with exit status 1"Fix "error: command 'gcc' failed with exit status 1" building a C extension in CI - gcc ran but the compile i… "command 'gcc' failed"Fix "error: command 'gcc' failed" / "unable to execute gcc" when building Python C extensions in CI - install… "command 'swig' failed"Fix "error: command 'swig' failed: No such file or directory" building a Python C/C++ binding in CI - install… "Python.h: No such file"Fix "fatal error: Python.h: No such file or directory" building C extensions in CI - install the Python dev h… "unrecognized command line option"Fix "gcc: error: unrecognized command line option" building a Python extension in CI - a compiler flag baked… "cannot import name"Fix "ImportError: cannot import name X from Y" in CI - the module exists but the named attribute is missing,… "libffi.so.X: cannot open shared object file"Fix "ImportError: libffi.so.X: cannot open shared object file" in CI - a Python extension needs the system li… "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 (… "libSM.so.6: cannot open"Fix "ImportError: libSM.so.6 / libXext.so.6: cannot open shared object file" in CI - X11 client libraries a G… "libX.so: cannot open"Fix "ImportError: libGL.so.1: cannot open shared object file" in CI - a compiled Python package needs a syste… "numpy no wheel"Fix numpy failing to build from source in CI on a Python version with no wheel yet (e.g. 3.13) - pip falls ba… "ld: cannot find -lz"Fix "/usr/bin/ld: cannot find -lz" (or -lssl, -ljpeg) building a Python extension in CI - the linker cannot f… "MemoryError"Fix "MemoryError" during pytest in CI - a test (or fixture) allocated more memory than the runner has, often… "MemoryError"Fix "MemoryError" while loading a dataset in CI - the process needed more RAM than the runner has, from readi… "No module named '_tkinter'"Fix "ModuleNotFoundError: No module named '_tkinter'" / "ImportError ... Tk" in CI - the interpreter was buil… "No module named 'setuptools'"Fix "ModuleNotFoundError: No module named 'setuptools'" in CI - a build or script needs setuptools but the in… "ModuleNotFoundError: No module named"Fix "ModuleNotFoundError: No module named X" in CI - the import target is not installed in the active environ… "_ArrayMemoryError"Fix "numpy.core._exceptions._ArrayMemoryError: Unable to allocate ... for an array" in CI - an allocation lar… "numpy.core.multiarray failed to import"Fix "ImportError: numpy.core.multiarray failed to import" in CI - a C extension was built against a different… "python -m build" sdistFix "python -m build" failing while preparing sdist/metadata in CI - a setup.py that imports the package, a m… "maximum recursion depth exceeded"Fix "RecursionError: maximum recursion depth exceeded" in CI - a call chain went deeper than Python's limit,… "dictionary changed size during iteration"Fix "RuntimeError: dictionary changed size during iteration" in CI - code added or removed keys from a dict w… "Segmentation fault (core dumped)"Fix "Segmentation fault (core dumped)" from a Python C extension in CI - a native crash terminated the interp… "python setup.py egg_info" failedFix "Command python setup.py egg_info failed with error code 1" in CI - pip could not collect project metadat… "SSLCertVerificationError" (requests)Fix "ssl.SSLCertVerificationError: certificate verify failed" from requests in CI - the runner could not vali… "subprocess-exited-with-error" (build)Fix "error: subprocess-exited-with-error" from a PEP 517 build backend in CI - a metadata or wheel subprocess… "SyntaxError" (version drift)Fix a SyntaxError that only appears in CI - a newer (or different) Python on the runner rejects syntax your l… "takes N positional arguments but M were given"Fix "TypeError: f() takes 2 positional arguments but 3 were given" in CI - a call passes more arguments than… "UnicodeEncodeError: 'ascii' codec"Fix "UnicodeEncodeError: 'ascii' codec can't encode character" in CI - the runner locale defaults to ASCII, s… "numpy.dtype size changed"Fix "ValueError: numpy.dtype size changed, may indicate binary incompatibility" in CI - a Cython/C extension… "can't pickle" in multiprocessingFix "TypeError: cannot pickle X" / "PicklingError" in CI - multiprocessing must pickle the target and its arg… "numpy.dtype size changed" ABI errorFix numpy/pandas C-extension ABI errors in CI - "numpy.dtype size changed, may indicate binary incompatibilit… "Python.h" (wrong path)Fix "fatal error: Python.h: No such file or directory" in CI when python3-dev is installed but for the wrong… "an illegal memory access was encountered"Fix "RuntimeError: CUDA error: an illegal memory access was encountered" in CI - a kernel read or wrote out o… "device-side assert triggered"Fix "RuntimeError: CUDA error: device-side assert triggered" in CI - a GPU kernel hit an assertion, commonly… "CUDA out of memory"Fix PyTorch "torch.cuda.OutOfMemoryError: CUDA out of memory" in CI - the job asked for more GPU memory than… "CUDA out of memory"Fix PyTorch "RuntimeError: CUDA out of memory" in CI - the GPU ran out of VRAM for the allocation, from too l… "all tensors to be on the same device"Fix "RuntimeError: Expected all tensors to be on the same device" in CI - an op mixed CPU and CUDA tensors, o… "Ninja is required to load C++ extensions"Fix "RuntimeError: Ninja is required to load C++ extensions" in CI - a torch JIT/custom extension build needs… "Torch not compiled with CUDA enabled"Fix "AssertionError: Torch not compiled with CUDA enabled" in CI - the installed torch is a CPU-only build bu… "Torch not compiled with CUDA enabled"Fix PyTorch "AssertionError: Torch not compiled with CUDA enabled" in CI - code calls .cuda()/device=cuda but… "compiled with different CUDA versions"Fix "RuntimeError: Detected that PyTorch and torchvision were compiled with different CUDA versions" in CI -… "undefined symbol" (torch ABI)Fix torchvision/torchaudio "undefined symbol" ImportError in CI - the extension was compiled against a differ… "version `GLIBCXX_...' not found"Fix "ImportError: version `GLIBCXX_3.4.30' not found" in CI - the C++ standard library (libstdc++) on the run… pip pulls the CPU torch wheelFix pip pulling the CPU-only torch wheel in CI when you wanted CUDA - the default PyPI index has no CUDA whee… "could NOT find Python"Fix the scikit-build-core/CMake error "Could NOT find Python" in CI. CMake's find_package(Python) failed beca… "CMake not found"Fix scikit-build-core "Could not find CMake" / "ninja required" in CI - a CMake-backed Python extension build… "cannot import name ... from sklearn"Fix scikit-learn "ImportError: cannot import name X from sklearn.Y" in CI - the estimator or helper moved or… Selenium: driver/browser missingFix Selenium for Python "WebDriverException: ... executable needs to be in PATH" or browser-not-found in CI -… "Cython ... required ... .pyx"Fix builds that need Cython to compile .pyx sources in CI but cannot find it. Cython must be in build-system.… "unknown distribution option"Fix setuptools "error: unknown distribution option" in CI. A setup()/setup.cfg key is unrecognized, often bec… "Microsoft Visual C++ 14.0 ... required"Fix "error: Microsoft Visual C++ 14.0 or greater is required" when building a C extension on a Windows CI run… "Multiple top-level packages ... flat-layout"Fix the setuptools error "Multiple top-level packages discovered in a flat-layout" in CI. Auto-discovery foun… "package ... would be ignored"Fix the setuptools "Installing X as data is deprecated, X would be ignored" warning that produces an empty or… "package directory ... does not exist"Fix setuptools "error: package directory 'X' does not exist" in CI. A package was listed or mapped to a path… "SetuptoolsDeprecationWarning"Fix builds that fail on SetuptoolsDeprecationWarning in CI. Newer setuptools deprecates legacy setup.py invoc… "unable to detect version"Fix setuptools_scm "unable to detect version" / "no version found" in CI - a shallow checkout with no tags, o… "Unable to detect version"Fix setuptools-scm "Unable to detect version" / "no version found" in CI - a shallow clone with no tags, or b… "Can't load plugin: sqlalchemy.dialects:postgres"Fix SQLAlchemy "NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres" in CI - the URL uses the… "Could not load dynamic library 'libcudnn.so.8'"Fix TensorFlow "Could not load dynamic library 'libcudnn.so.8'" in CI - the cuDNN library is missing or its v… "could not load dynamic library libcudart.so"Fix TensorFlow "Could not load dynamic library libcudart.so" in CI - the GPU build cannot find the CUDA runti… "DNN library is not found"Fix TensorFlow "DNN library is not found" in CI - cuDNN is not available to TensorFlow, so GPU neural-network… "Failed to get convolution algorithm"Fix TensorFlow "Failed to get convolution algorithm. This is probably because cuDNN failed to initialize" in… "Illegal instruction (core dumped)"Fix TensorFlow "Illegal instruction (core dumped)" when importing in CI - the prebuilt wheel uses CPU instruc… TensorFlow protobuf mismatchFix the TensorFlow protobuf incompatibility in CI - a protobuf version outside TensorFlow's supported range r… tox 4 plugin/config errorFix tox plugin incompatibility and config errors after the tox 3-to-4 rewrite in CI - old plugins or deprecat… tox stale environmentFix tox running against a stale .tox environment in CI - deps changed but tox reused the cached env, causing… "Invalid distribution metadata"Fix twine check failing with invalid distribution metadata before upload in CI. The built artifact has a meta… "[Errno 98] Address already in use"Fix "OSError: [Errno 98] Address already in use" starting uvicorn/gunicorn in CI - a previous server still ho… "libgomp.so.1: cannot open shared object file"Fix XGBoost "XGBoostError: ... cannot open shared object file: libgomp.so.1" in CI - the XGBoost native libra… "libxgboost.so: cannot open shared object file"Fix XGBoost "OSError: libxgboost.so: cannot open shared object file" in CI - the XGBoost Python package canno…

pytest & tooling

Collection errors, imports, and exit codes.

Airflow "DAG could not be found"Fix Airflow "airflow.exceptions.AirflowException: DAG X could not be found" in CI - the scheduler or a test a… Airflow "Broken DAG ... ImportError"Fix Airflow "Broken DAG: [path] ImportError" in CI - a DAG file raised an ImportError during parsing, often f… Airflow "Cycle detected in DAG"Fix Airflow "airflow.exceptions.AirflowDagCycleException: Cycle detected in DAG" in CI - task dependencies fo… Airflow "DagBag import timeout"Fix Airflow "DagBag import timeout" / "AirflowTaskTimeout: DagBag import timeout" in CI - a DAG file took lon… Airflow DAG "ModuleNotFoundError"Fix Airflow "ModuleNotFoundError: No module named X" while parsing DAGs in CI - a DAG imports a helper or pac… "Can't locate revision identified by"Fix Alembic "Can't locate revision identified by '<hash>'" in CI - a migration's down_revision points at a re… "would reformat"Fix "black --check" failing CI with "would reformat <file>" / "Oh no! ... files would be reformatted" - code… black version driftFix black "would reformat" in CI after a version bump changed the stable style - an unpinned black upgraded a… "Cannot connect to redis://"Fix Celery "consumer: Cannot connect to redis://127.0.0.1:6379//: Error connecting to Redis" in CI - the Redi… "Cannot connect to amqp://"Fix Celery "consumer: Cannot connect to amqp://guest@127.0.0.1:5672//: Connection refused" in CI - the worker… "Received unregistered task of type"Fix Celery "Received unregistered task of type 'X'. The message has been ignored and discarded" in CI - the w… "WorkerLostError: Worker exited prematurely"Fix Celery "billiard.exceptions.WorkerLostError: Worker exited prematurely: signal 9 (SIGKILL)" in CI - a chi… "ruff: command not found"Fix "ruff: command not found" (or black/mypy) in CI - the linter is not installed in the environment, or its… "parallel-mode" no dataFix coverage.py "--parallel-mode" leaving per-process .coverage.* files uncombined in CI - report shows 0% or… "coverage combine" no dataFix coverage.py "No data to combine" / "No source for code" across parallel or matrix CI jobs - data files no… "No data to report"Fix coverage.py "No data to report" / "No data was collected" in CI - coverage measured the wrong source, ran… Dagster "DagsterInvalidDefinitionError"Fix Dagster "DagsterInvalidDefinitionError" and "Could not load location" in CI - the definitions module rais… "--defer requires a --state"Fix dbt "--defer requires a --state path" in CI - deferral to production needs a manifest to resolve unbuilt… dbt "depends on a node ... which was not found"Fix dbt "Compilation Error ... depends on a node named X which was not found" in CI - a ref() or source() poi… "ambiguous" duplicate model nameFix dbt "Compilation Error ... found two resources with the name" in CI - two models, seeds, or sources share… "found a cycle in the DAG"Fix dbt "Compilation Error: Found a cycle" in CI - two or more models ref() each other, creating a circular d… "macro ... not found"Fix dbt "Compilation Error: macro X not found" in CI - a model or config calls a macro that is not defined in… "'X' is undefined" (Jinja)Fix dbt "Compilation Error ... 'X' is undefined" in CI - a model references a Jinja variable or var() that is… dbt "could not connect to server"Fix dbt "Database Error ... could not connect to server" in CI - dbt reached the connection step but the ware… dbt "Database Error ... permission denied"Fix dbt "Database Error ... permission denied for schema/table" in CI - dbt connected and authenticated, but… "Database Error in model"Fix dbt "Database Error in model X" in CI - the compiled SQL ran against the warehouse and the database rejec… "Done. ... ERROR=N" build failedFix a dbt build that ends with failures and exit 1 in CI - one or more models or tests errored, so dbt return… dbt "could not match any" selectorFix dbt "Nothing to do" / "The selection criterion does not match any nodes" in CI - dbt parsed the project b… dbt "Could not find profile named"Fix dbt "Runtime Error ... Could not find profile named X" in CI - dbt could not locate the profile that dbt_… "relation ... does not exist"Fix dbt "Database Error ... relation X does not exist" in CI - a model or test queries a table or view that w… "seed ... could not be loaded"Fix dbt seed load failures in CI - a CSV seed could not be loaded because of a type inference or column misma… "depends on a node named ... which was not found"Fix dbt "Compilation Error: Model X depends on a node named Y which was not found" in CI - a ref() points at… "snapshot ... missing ... unique_key"Fix dbt snapshot "unique_key is a required property" in CI - a snapshot is missing its unique_key config, so… "No such file ... manifest.json"Fix dbt "No such file or directory ... manifest.json" with state:modified in CI - slim CI needs a previous ma… "Failure in test ... unique / not_null"Fix a dbt data test failure (unique, not_null) in CI - the model data violated a test assertion, so dbt exits… "Apps aren't loaded yet"Fix Django "django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet" in CI - code touched the ORM… "Invalid HTTP_HOST header"Fix Django "django.core.exceptions.DisallowedHost: Invalid HTTP_HOST header" in CI - the test or smoke reques… "test database ... already exists"Fix Django "Got an error creating the test database: database ... already exists" in CI - a prior run left th… "The SECRET_KEY setting must not be empty"Fix Django "django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must not be empty" in CI - se… "settings are not configured"Fix Django "ImproperlyConfigured: Requested setting X, but settings are not configured" in CI - DJANGO_SETTIN… "InconsistentMigrationHistory"Fix Django "django.db.migrations.exceptions.InconsistentMigrationHistory: Migration X is applied before its d… "InconsistentMigrationHistory"Fix Django "InconsistentMigrationHistory" in CI - a migration is recorded as applied before one of its depend… "Your models have changes ... not yet reflected"Fix Django "makemigrations --check --dry-run" failing in CI because model changes have no matching migration… "Ran 0 tests" vs pytest collectionFix a Django CI job where "manage.py test" runs 0 tests or pytest collects none - the runner and pytest use d… "could not connect to server"Fix Django "django.db.utils.OperationalError: could not connect to server" in CI - the test database host in… "relation ... does not exist"Fix Django "django.db.utils.ProgrammingError: relation app_thing does not exist" in CI - the schema was not m… "relation ... does not exist"Fix Django "django.db.utils.ProgrammingError: relation \"app_model\" does not exist" in CI - the test databas… "doesn't declare an explicit app_label"Fix Django "RuntimeError: Model class ... doesn't declare an explicit app_label and isn't in an application i… "You have N unapplied migration(s)"Fix Django "You have 3 unapplied migration(s). Your project may not work properly until you apply the migrati… "You cannot call this from an async context"Fix Django "SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_as… "No module named 'rest_framework'"Fix Django REST Framework "ModuleNotFoundError: No module named 'rest_framework'" in CI - djangorestframework… "greenlet_spawn has not been called"Fix async SQLAlchemy "MissingGreenlet: greenlet_spawn has not been called" in CI - lazy attribute access or a… "pydantic_core ... ValidationError"Fix "pydantic_core.ValidationError" raised in FastAPI tests in CI - test payloads or fixtures no longer match… "RequestValidationError" (422)Fix FastAPI tests failing with a 422 and pydantic "ValidationError" on the request body in CI - the test payl… "fastapi.exceptions.ResponseValidationError"Fix FastAPI "ResponseValidationError" in CI - the value an endpoint returned does not match its declared resp… "There is no current event loop"Fix "RuntimeError: There is no current event loop in thread" in CI - an async FastAPI test ran without pytest… "OperationalError ... connection refused"Fix FastAPI "sqlalchemy.exc.OperationalError ... connection refused" in CI - tests reach the database layer b… "Target database is not up to date"Fix Alembic "Target database is not up to date" and multiple-heads errors in CI - migrations were not applied… coverage misses async routesFix FastAPI async endpoints reporting no coverage in CI - coverage misses lines inside coroutines when concur… "InvalidRequestError: ... sync engine"Fix FastAPI async SQLAlchemy asyncpg errors in CI - the URL uses a sync driver with create_async_engine, or a… pytest-asyncio "asyncio_mode"Fix pytest-asyncio async tests being skipped or warned in CI - without asyncio_mode set, async def tests are… dependency_overrides not appliedFix FastAPI tests where `app.dependency_overrides` is ignored in CI - the override key does not match the exa… "Invalid args for response field"Fix FastAPI OpenAPI schema generation failures in CI - a route uses a type FastAPI cannot turn into a field,… Settings "Field required" in CIFix FastAPI pydantic-settings config failures in CI - the .env file is absent on the runner, so BaseSettings… "422 Unprocessable Entity"Fix FastAPI tests failing with an unexpected "422 Unprocessable Entity" in CI - the request body or params th… "testclient module requires the httpx package"Fix FastAPI "RuntimeError: The starlette.testclient module requires the httpx package to be installed" in CI… "RuntimeError: The starlette.testclient module requires httpx"Fix FastAPI TestClient failures in CI - "the starlette.testclient module requires the httpx package" means Te… "RuntimeError: Event loop is closed"Fix FastAPI async tests failing with "RuntimeError: Event loop is closed" in CI - an async resource is used o… "E999 SyntaxError"Fix flake8 "E999 SyntaxError" / "E999 IndentationError" failing CI - flake8 could not parse a file, usually b… "Working outside of application context"Fix Flask "RuntimeError: Working outside of application context" in tests on CI - code touched current_app, g… "Working outside of request context"Fix Flask "RuntimeError: Working outside of request context" in CI - a test touched request, session, or g wi… freezegun not frozenFix freezegun tests where time is not frozen in CI - a C-extension datetime, a non-patched time source, or th… Great Expectations "Checkpoint not found"Fix Great Expectations "CheckpointNotFoundError" and validation failures in CI - the named checkpoint or expe… "Can't load tokenizer for ..."Fix Hugging Face "OSError: Can't load tokenizer for X" in CI - transformers could not find the tokenizer file… "Couldn't connect to 'https://huggingface.co'"Fix Hugging Face "ConnectionError: Couldn't reach / connect to huggingface.co" in CI - the runner could not r… "is not a valid model identifier" / gated repoFix Hugging Face "OSError: X is not a valid model identifier" and 401 gated-repo errors in CI - the repo name… "requires you to execute ... with trust_remote_code"Fix Hugging Face datasets "The repository ... contains custom code which must be executed ... pass trust_remo… "DeadlineExceeded"Fix Hypothesis "DeadlineExceeded: Test took longer than ... ms" in CI - a slow shared runner trips the per-ex… "TocError" in _toc.ymlFix jupyter-book build failures from a malformed _toc.yml in CI - missing files, an invalid format key, or a… Build finished with warnings, treated as errorsFix jupyter-book "build finished with problems" in CI - building with -W or --warningiserror promotes Sphinx… "Shapes ... are incompatible"Fix Keras "ValueError: Shapes (a, b) and (c, d) are incompatible" in CI - the model output shape does not mat… "API request ... failed" to tracking serverFix MLflow tracking-server connection failures in CI - the client could not reach the URI in MLFLOW_TRACKING_… "RESOURCE_DOES_NOT_EXIST"Fix MLflow "RestException: RESOURCE_DOES_NOT_EXIST" in CI - the experiment, run, model, or registered model t… mypy stale cacheFix mypy "--strict" reporting phantom or inconsistent errors in CI from a stale .mypy_cache - a cache from a… "Cannot find implementation"Fix mypy "Cannot find implementation or library stub for module named X [import-not-found]" in CI - a missing… "Cannot find implementation or library stub"Fix mypy "error: Cannot find implementation or library stub for module named X [import-untyped]" in CI - inst… "Cannot find implementation or library stub"Fix mypy "Cannot find implementation or library stub for module" in CI - mypy cannot locate a module or its t… "Found N errors"Fix mypy "Found N errors in M files (checked X source files)" failing CI - real type errors, or missing libra… "module is installed, but missing library stubs"Fix mypy "Skipping analyzing X: module is installed, but missing library stubs or py.typed marker" in CI - th… mypy/pyright new errorsFix mypy or pyright suddenly failing CI - a type-checker upgrade, new bundled stubs, or a strictness flag cha… "DeadKernelError: Kernel died"Fix nbclient "nbclient.exceptions.DeadKernelError: Kernel died" in CI - the kernel process crashed mid-execut… "Kernel didn't respond"Fix nbclient "RuntimeError: Kernel didn't respond in N seconds" in CI - the kernel did not become ready withi… "Cell execution timed out"Fix jupyter nbconvert "TimeoutError: Cell execution timed out" in CI - a cell ran longer than the ExecutePrep… "CellExecutionError"Fix jupyter nbconvert "nbclient.exceptions.CellExecutionError" in CI - a cell raised an uncaught exception wh… "ModuleNotFoundError" during executeFix jupyter nbconvert --execute "ModuleNotFoundError: No module named X" in CI - the kernel that runs the not… "No such kernel named python3"Fix jupyter nbconvert "jupyter_client.kernelspec.NoSuchKernel: No such kernel named python3" in CI - the note… "No template sub-directory with name found"Fix jupyter nbconvert "No template sub-directory with name X found in the following paths" in CI - the reques… "Pandoc wasn't found"Fix jupyter nbconvert PDF export failures in CI - "Pandoc wasn't found" or "xelatex not found on PATH" becaus… nbval "Mismatch" output differsFix pytest --nbval failures in CI - nbval re-executes notebook cells and reports a "Mismatch" when fresh outp… nox session errorFix nox session failures in CI - "Python 3.11 not found; skipping" or a session command exiting non-zero. Ins… venv_backend='uv'Fix nox "venv_backend='uv'" or tox-uv errors in CI - uv is not installed, the backend name is unsupported by… pandas "MemoryError"Fix pandas "MemoryError" / "Unable to allocate" in CI - loading or operating on a DataFrame exceeded the runn… pandas "could not convert string to float"Fix pandas "ValueError: could not convert string to float" in CI - a column expected to be numeric contains a… "Could not find kernel"Fix papermill "jupyter_client.kernelspec.NoSuchKernel" / could not find kernel in CI - papermill could not st… "No such file or directory"Fix papermill "FileNotFoundError: No such file or directory" in CI - papermill cannot find the input notebook… "PapermillExecutionError"Fix papermill "papermill.exceptions.PapermillExecutionError" in CI - a parameterized notebook cell raised, an… No cell tagged "parameters"Fix papermill warning "Input notebook does not contain a cell with tag parameters" in CI - papermill injects… PySpark "Py4JJavaError"Fix PySpark "py4j.protocol.Py4JJavaError: An error occurred while calling ..." in CI - a JVM-side exception w… PySpark "Python worker failed to connect back"Fix PySpark "Python worker failed to connect back to the Java process" in CI - the executor could not start o… "--import-mode" import errorsFix test import failures after switching pytest "--import-mode" in CI - importlib mode does not add rootdir t… "-p no:cacheprovider"Fix pytest still creating .pytest_cache after "-p no:cacheprovider" in CI - another config re-enables it, or… "asyncio.TimeoutError" in a testFix "asyncio.TimeoutError" (TimeoutError) in an async test in CI - an awaited operation did not finish within… "cannot collect test class ... __init__ constructor"Fix pytest "cannot collect test class X because it has a __init__ constructor" in CI - pytest skips test clas… "collected 0 items / 1 error"Fix pytest "collected 0 items / 1 error" in CI - collection of a test module failed (usually an import error)… "collected 0 items"Fix pytest "collected 0 items" in CI - pytest ran but discovered no tests, usually because of naming, rootdir… test DB "could not connect"Fix tests failing to reach a database service in CI - "OperationalError: could not connect to server" / ECONN… "ConnectionError" to the test DBFix a pytest "ConnectionError" to a database or service in CI - tests could not reach a dependency because it… "DeprecationWarning" as errorFix pytest runs failing because filterwarnings=error (or -W error) turns a DeprecationWarning into a test fai… "DID NOT RAISE"Fix pytest "Failed: DID NOT RAISE <Exception>" in CI - code inside pytest.raises did not raise the expected e… "E ModuleNotFoundError"Fix the "E ModuleNotFoundError: No module named X" line in a pytest run - a test (or its imports) needs a pac… "ERROR at teardown"Fix pytest "ERROR at teardown of ..." - a fixture finalizer raised during cleanup. The test may pass but the… rootdir / path not foundFix pytest "ERROR: file or directory not found" and wrong-rootdir issues in CI - conftest not loaded, config… "unrecognized arguments"Fix pytest "error: unrecognized arguments: --cov" (or --asyncio-mode, -n) in CI - the option comes from a plu… "Failed: DID NOT RAISE"Fix pytest "Failed: DID NOT RAISE <Exception>" in CI - a pytest.raises block expected an exception that the c… "fixture 'db' not found"Fix pytest "fixture 'db' not found" in CI - the pytest-django plugin is not installed or not active, so its d… "fixture not found"Fix pytest "fixture 'X' not found" in CI - a fixture defined in the wrong place, a missing conftest.py, or a… "fixture 'X' not found"Fix pytest "fixture 'X' not found" in CI - a test requested a fixture pytest could not locate, usually a conf… "Fixtures are not meant to be called directly"Fix pytest "Fixture X called directly. Fixtures are not meant to be called directly" in CI - a test invoked a… "import file mismatch"Fix pytest "import file mismatch" in CI - two test files share a module name without packages, or stale __pyc… "import file mismatch" (basename)Fix pytest "import file mismatch ... unique basename" in CI - two test files (or conftests) share a name acro… "ImportError while importing test module"Fix pytest "ImportError while importing test module" in CI - a test file failed to import, often from a dupli… "loading conftest" errorFix pytest "ImportError while loading conftest '...conftest.py'" in CI - a broken import, missing dependency,… "ImportError while loading conftest"Fix a pytest "ImportError while loading conftest" caused by a conftest.py at the wrong directory level in CI… "INTERNALERROR IndexError"Fix pytest "INTERNALERROR> IndexError" in CI - a crash inside pytest or a plugin (not your test), often from… "INTERNALERROR>"Fix pytest "INTERNALERROR>" in CI - pytest or a plugin crashed during collection or reporting, not your test.… collection import errorFix pytest "ModuleNotFoundError" / "ImportError while importing test module" during collection in CI - rootdi… "no tests ran" (exit 5)Fix pytest "no tests ran in ..." with exit code 5 in CI - wrong directory, non-matching discovery patterns, o… "maximum recursion depth"Fix pytest "RecursionError: maximum recursion depth exceeded" in CI - runaway recursion in code under test, o… "ResourceWarning: unclosed"Fix pytest "ResourceWarning: unclosed file/socket" failing CI under warnings-as-errors - close handles with c… "ScopeMismatch"Fix pytest "ScopeMismatch: You tried to access the X scoped fixture Y with a Z scoped request object" in CI -… "Unknown pytest.mark"Fix pytest "Unknown pytest.mark.X" warnings that fail CI - register custom markers in config, or stop strict… "Coverage failure: total ... is less than fail-under"Fix coverage "fail-under" failures in CI - total coverage dropped below the configured minimum, so coverage e… "usage error" (exit 4)Fix pytest exit code 4 "usage error" in CI - an unrecognized option, a bad addopts entry, or a missing plugin… pytest "exit code 5"Fix pytest exit code 5 in CI - pytest collected no tests and returns 5, which fails the job even though no te… pytest exit codesUnderstand pytest exit codes 0–5 in CI - passed, failures, interrupted, internal error, usage error, and no-t… pytest PYTHONPATH importFix pytest collection failing to import your package because PYTHONPATH/src root isn’t on sys.path in CI - se… "Unknown pytest.mark" (strict-markers)Fix pytest "Unknown marker" under --strict-markers in CI - a custom marker is used but not declared, so stric… pytest collection ModuleNotFoundErrorFix a pytest ModuleNotFoundError during collection in CI - pytest cannot import your package while loading te… Test passes locally, fails in CIFix a pytest test that passes locally but fails in CI - usually test-ordering, environment, timezone, or unpi… "no current event loop"Fix pytest-asyncio "DeprecationWarning: There is no current event loop" / "RuntimeError: no running event loo… "RuntimeError: Event loop is closed"Fix pytest-asyncio "RuntimeError: Event loop is closed" in CI - an async test or teardown used a loop that wa… "cov-fail-under"Fix pytest-cov "Coverage failure: total of N is less than fail-under M" in CI - coverage dropped below the ga… "coverage ... less than fail-under"Fix "Coverage failure: total of N% is less than fail-under=M%" in CI - coverage dropped below the gate, or su… pytest-cov 0% coverageFix pytest-cov measuring nothing in CI - "--cov" set to the wrong path, an editable/installed package measure… "use the \"django_db\" mark"Fix pytest-django "Failed: Database access not allowed, use the django_db mark to enable it for this test" in… "Database queries are not allowed"Fix pytest-django "RuntimeError: Database queries to X are not allowed" in CI - a test hit the database witho… "no Django settings specified"Fix pytest-django "Error: pytest-django: no Django settings specified" in CI - neither DJANGO_SETTINGS_MODULE… "settings are not configured"Fix pytest-django "ImproperlyConfigured: Requested setting ..., but settings are not configured" in CI - set… order-dependent test failureFix tests that fail only under pytest-randomly in CI - random test order revealed shared state, leaked fixtur… pytest-randomly order-dependentFix tests that fail only under pytest-randomly in CI - shuffled order exposes shared state, leaked globals, o… "Timeout >Ns ... (timeout)"Fix pytest-timeout failures in CI - a test exceeded the configured timeout and was killed. Find the hang (net… "-n auto" zero workersFix pytest-xdist "-n auto" resolving to 0 workers in CI - a container reporting 1 CPU, or all collection happ… xdist "different tests collected"Fix pytest-xdist "Different tests were collected between workers" in CI - nondeterministic collection across… "Different tests were collected"Fix pytest-xdist "Different tests were collected between gw0 and gw1" in CI - workers built nondeterministic… "worker crashed"Fix pytest-xdist "node down: Not properly terminated" / "replacing crashed worker" in CI - a segfault, OOM ki… "worker ... crashed while running"Fix pytest-xdist "worker gw0 crashed" in CI - a parallel test worker died (often OOM or a native crash), abor… "Hypothesis ... Flaky"Fix Hypothesis "Flaky: Hypothesis ... produced unreliable results" in CI - a test that passes or fails incons… "not up to date"Fix "alembic.util.exc.CommandError: Target database is not up to date" in CI - alembic refused to autogenerat… "asyncio.run() cannot be called from a running event loop"Fix "RuntimeError: asyncio.run() cannot be called from a running event loop" in CI - nesting asyncio.run() in… "Celery broker connect"Fix "consumer: Cannot connect to amqp/redis broker" for a Celery worker in CI - the worker could not reach it… "There is no current event loop"Fix "DeprecationWarning: There is no current event loop" in CI - get_event_loop() with no running loop is dep… "factory not registered"Fix factory_boy errors where a DjangoModelFactory is not wired up in CI - the factory is unregistered with py… "freezegun ImportError"Fix "ModuleNotFoundError: No module named 'freezegun'" in CI - the test imports freeze_time but freezegun is… "hypothesis Flaky"Fix "hypothesis.errors.Flaky" and "DeadlineExceeded" failures in CI - a property test either produced inconsi… "list index out of range"Fix "IndexError: list index out of range" in CI - test code indexed past the end of a list, often because sha… "KeyError" config loadFix a "KeyError" raised while loading config in CI - code indexed a dict with a key that is present locally b… "matplotlib no display"Fix matplotlib failing for lack of a display in CI - a GUI backend cannot open on a headless runner, so plott… "moto not patching"Fix moto mocks that do not patch boto3 in CI - real AWS calls leak through because the client was created out… "OverflowError"Fix "OverflowError" in CI - a float computation exceeded the representable range, often math.exp or a power o… "pandas FutureWarning"Fix a pandas FutureWarning that fails CI - filterwarnings=error turns a deprecation warning from pandas into… "no data was collected"Fix "CoverageWarning: No data was collected" with pytest-cov in CI - coverage measured nothing, usually a wro… "pytest-randomly order"Fix a test that fails only under pytest-randomly in CI - randomized test order exposed a hidden ordering depe… "UnraisableExceptionWarning"Fix "pytest.PytestUnraisableExceptionWarning" in CI - an exception was raised in a __del__ or weakref callbac… "RecursionError"Fix "RecursionError: maximum recursion depth exceeded" while serializing objects in CI - a cyclic reference o… "redis ConnectionError"Fix "redis.exceptions.ConnectionError: Error connecting to Redis" in CI - the redis-py client could not reach… "ResourceWarning: unclosed"Fix "ResourceWarning: unclosed file/socket" that fails pytest in CI - a file or socket was garbage-collected… "responses no match"Fix "ConnectionError: Connection refused by Responses ... no match for URL" in CI - the responses library int… "IntegrityError"Fix "sqlalchemy.exc.IntegrityError: UNIQUE constraint failed" in tests in CI - a row violated a unique constr… "DetachedInstanceError"Fix "DetachedInstanceError: Instance is not bound to a Session" in CI - a SQLAlchemy object was accessed afte… "StopIteration"Fix a "StopIteration" that leaks out of a generator in CI - calling next() on an exhausted iterator inside a… "could not install deps"Fix "ERROR: could not install deps" in tox in CI - tox failed to install the dependencies for an environment,… "can't be used in 'await' expression"Fix "TypeError: object X can't be used in 'await' expression" in CI - you awaited a non-awaitable, such as a… "Ran 0 tests" (unittest)Fix "python -m unittest discover" collecting no tests or failing to import in CI - wrong start directory, non… "too many values to unpack"Fix "ValueError: too many values to unpack (expected 2)" in CI - a sequence had more elements than the target… "ZeroDivisionError"Fix "ZeroDivisionError: division by zero" in CI - a calculation divided by a denominator that was zero, often… "Chromium ... not found"Fix Quarto "Unable to locate an installed version of Chromium" in CI - rendering certain HTML-to-PDF / print… "quarto: command not found"Fix "quarto: command not found" in CI - the Quarto CLI is not installed on the runner because it is a separat… "jupyter kernel not found"Fix Quarto "ERROR: Unable to start the Jupyter kernel" / kernel not found in CI - rendering a .qmd that uses… quarto "pandoc" render errorFix "quarto render" pandoc failures in CI - pandoc exits non-zero during the document conversion stage, often… cassette not matchedFix responses/VCR.py "ConnectionError" / "no cassette" in CI - an unmatched request hits the network because… "invalid rule selector"Fix ruff "error: invalid rule selector" in CI - a rule code in the config was removed, renamed, or never exis… ruff / flake8 failuresFix ruff/flake8 non-zero exit failing CI - real lint violations, an unmatched version between local and CI, o… ruff new-rule failuresFix ruff failing CI after a version bump introduced or changed rules - an unpinned ruff upgraded and now flag… "InconsistentVersionWarning"Fix scikit-learn "InconsistentVersionWarning: Trying to unpickle estimator from version X when using version… "NotFittedError"Fix scikit-learn "NotFittedError: This estimator is not fitted yet" in CI - predict or transform was called b… "Input contains NaN"Fix scikit-learn "ValueError: Input contains NaN" in CI - an estimator that does not accept missing values re… Spark "cannot resolve column"Fix Spark "AnalysisException: cannot resolve 'X' given input columns" in CI - a query references a column nam… Spark "Container killed by YARN"Fix Spark "Container killed by YARN for exceeding memory limits" in CI - an executor used more physical memor… Spark "OutOfMemoryError: Java heap space"Fix Spark "java.lang.OutOfMemoryError: Java heap space" in CI - the driver or an executor exhausted its JVM h… "DetachedInstanceError"Fix SQLAlchemy "DetachedInstanceError: Instance is not bound to a Session" in CI - a test touched a lazy-load… "OperationalError ... Connection refused"Fix SQLAlchemy "sqlalchemy.exc.OperationalError ... could not connect ... Connection refused" in CI - the eng… "QueuePool limit of size ... overflow ..."Fix SQLAlchemy "TimeoutError: QueuePool limit of size N overflow M reached, connection timed out" in CI - tes… "allowlist_externals"Fix tox "command not allowed, use allowlist_externals to allow it" in CI - tox 4 blocks external commands not… tox "environment failed"Fix tox "ERROR: py312: failed" / "InvocationError" in CI - a tox environment's commands or setup returned non… "InvocationError"Fix tox "ERROR: InvocationError for command ... (exited with code N)" in CI - a command inside a tox env fail… "InterpreterNotFound"Fix tox "InterpreterNotFound: python3.11" in CI - a tox env targets a Python version the runner does not have… "InterpreterNotFound"Fix tox "InterpreterNotFound" / "could not find python" in CI - a tox env (py311, py312) targets a Python tha… tox passenv / setenvFix tox tests failing in CI because environment variables are not passed into the env - tox isolates the envi… treon "FAILED" notebookFix treon failures in CI - treon executes each notebook end to end and marks it FAILED when any cell raises d… "api_key not configured" / network errorFix Weights & Biases "wandb: ERROR api_key not configured" and network errors in CI - wandb.init has no WANDB… "permission denied" to entityFix Weights & Biases "wandb: ERROR ... permission denied" in CI - the API key authenticated but is not allowe…
Explore other topics