{
  "id": "python/setuptools-extras-require-parse-error",
  "signature": "distutils.errors.DistutilsOptionError: error in 'extras_require' option: 'foo' must be a string or list of strings containing valid project/version requirement specifiers; Invalid specifier: '>=1.0, <2.0, !=1.5'",
  "signature_zh": "distutils.errors.DistutilsOptionError: 'extras_require' 选项错误：'foo' 必须是包含有效项目/版本要求说明符的字符串或字符串列表；无效说明符：'>=1.0, <2.0, !=1.5'",
  "regex": "distutils\\.errors\\.DistutilsOptionError:\\ error\\ in\\ 'extras_require'\\ option:\\ 'foo'\\ must\\ be\\ a\\ string\\ or\\ list\\ of\\ strings\\ containing\\ valid\\ project/version\\ requirement\\ specifiers;\\ Invalid\\ specifier:\\ '>=1\\.0,\\ <2\\.0,\\ !=1\\.5'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "An extras_require entry uses a specifier set the installed packaging/setuptools cannot parse, often due to stray whitespace, a trailing comma, or a duplicate/conflicting operator.",
  "root_cause_type": "generic",
  "root_cause_zh": "extras_require 条目使用了已安装的 packaging/setuptools 无法解析的说明符集合，常由于多余空格、尾随逗号或重复/冲突的运算符。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.9",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Whitespace is not the issue; the specifier set itself is malformed.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Shifts the same parse error to a different field.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Simplify the specifier to a valid PEP 440 set, e.g. `'>=1.0,<2.0,!=1.5'` (no spaces, no trailing comma).",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Validate with `python -c \"from packaging.specifiers import SpecifierSet; SpecifierSet('>=1.0,<2.0')\"`.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-07-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}