# error: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.

- **ID:** `python/setuptools-extra-requires-invalid`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The extras_require dictionary in setup.py contains invalid requirement specifiers or non-string values.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   extras_require={'dev': ['pytest>=6.0', 'flake8']}
   ```
2. **** (92% success)
   ```
   [project.optional-dependencies]\ndev = ['pytest>=6.0', 'flake8']
   ```

## Dead Ends

- **** — Loses optional dependency functionality; not a proper fix if extras are needed. (80% fail)
- **** — setuptools will not proceed with invalid metadata; build fails. (90% fail)
