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

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

## Root Cause

The package data file is missing from the source tree or not specified in setup.py.

## Version Compatibility

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

## Workarounds

1. **Create the missing file or adjust setup.py** (90% success)
   ```
   Ensure file exists and add include_package_data=True and package_data={'': ['data/*.yaml']} in setup()
   ```
2. **Use setuptools_scm to auto-include** (70% success)
   ```
   pip install setuptools_scm and configure accordingly
   ```

## Dead Ends

- **Adding the file to the wrong directory** — Path mismatch. (50% fail)
- **Using MANIFEST.in incorrectly** — May not include data files in wheel. (40% fail)
