# error: package data file 'mypackage/data/config.yaml' not found

- **ID:** `python/setuptools-package-data-missing`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The package_data configuration references a file that does not exist in the source tree.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.8 | active | — | — |
| 3.9 | active | — | — |
| 3.10 | active | — | — |
| 3.11 | active | — | — |
| 3.12 | active | — | — |

## Workarounds

1. **Ensure the file exists at the specified path** (90% success)
   ```
   mkdir -p mypackage/data && touch mypackage/data/config.yaml
   ```
2. **Correct the package_data glob pattern** (85% success)
   ```
   In setup.cfg: 'include = mypackage/data/*.yaml' and ensure files are present.
   ```

## Dead Ends

- **Creating an empty file with the same name** — The file may need specific content; an empty file may cause runtime errors. (70% fail)
- **Removing the package_data entry** — This may break functionality that depends on the file. (60% fail)
