{
  "id": "python/setuptools-install-requires-parse-error",
  "signature": "error in foo setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at \"'bar >=1.0'\"",
  "signature_zh": "foo setup 命令错误：'install_requires' 必须是包含有效项目/版本需求说明符的字符串或字符串列表；无效需求，解析错误位于 \"'bar >=1.0'\"",
  "regex": "error\\ in\\ foo\\ setup\\ command:\\ 'install_requires'\\ must\\ be\\ a\\ string\\ or\\ list\\ of\\ strings\\ containing\\ valid\\ project/version\\ requirement\\ specifiers;\\ Invalid\\ requirement,\\ parse\\ error\\ at\\ \"'bar\\ >=1\\.0'\"",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "install_requires contains an invalid specifier string with stray characters or malformed version operators.",
  "root_cause_type": "generic",
  "root_cause_zh": "install_requires 包含带有杂散字符或格式错误的版本操作符的无效说明符字符串。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Older setuptools is stricter; the syntax error remains.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Breaks runtime dependencies for users.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "Use valid PEP 440 specifiers: `install_requires=['bar>=1.0']` (no spaces around operators inside quotes).",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Run `python -c \"from packaging.requirements import Requirement; Requirement('bar>=1.0')\"` to test each string.",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-08-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}