# ERROR: setuptools.errors.PackageNotFoundError: The 'data_files' pattern 'config/*.ini' did not match any files

- **ID:** `python/setuptools-extra-files-not-found`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The specified glob pattern in setup.cfg or setup.py does not find any files in the package.

## Version Compatibility

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

## Workarounds

1. **Correct the path to the actual files** (95% success)
   ```
   Ensure the config directory exists and contains .ini files. Example: mkdir config; touch config/settings.ini
   ```
2. **Use package_data instead of data_files** (90% success)
   ```
   In setup.cfg: [options.package_data]
* = config/*.ini
   ```

## Dead Ends

- **Changing the pattern to '*.ini' without a directory** — May match unintended files; also doesn't solve the path issue. (60% fail)
- **Removing the data_files configuration entirely** — Necessary files will be missing from the distribution. (80% fail)
