# CacheError: Cache file '/tmp/pytest-of-user/pytest-123/.pytest_cache/v/cache/nodeids' not found

- **ID:** `python/pytest-cache-miss-error`
- **Domain:** python
- **Category:** system_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The pytest cache directory is missing or corrupted, often due to manual deletion or concurrent test runs.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.9 | active | — | — |
| 3.10 | active | — | — |

## Workarounds

1. **Clear the cache directory and let pytest recreate it.** (95% success)
   ```
   rm -rf .pytest_cache; pytest --cache-clear
   ```
2. **Disable caching with --cache-clear flag each run.** (90% success)
   ```
   pytest --cache-clear
   ```

## Dead Ends

- **Creating an empty cache file manually** — The cache file format is specific; an empty file may cause parsing errors. (80% fail)
- **Ignoring the error and continuing** — Pytest may fail to run or report incorrect results without cache. (60% fail)
