{
  "id": "python/setuptools-invalid-version-specifier",
  "signature": "packaging.requirements.InvalidRequirement: Expected end or semicolon (after version specifier)\n    foo >= 1.0 < 2.0\n        ~~~~^",
  "signature_zh": "packaging.requirements.InvalidRequirement：预期结束或分号（在版本说明符之后）\n    foo >= 1.0 < 2.0\n        ~~~~^",
  "regex": "packaging\\.requirements\\.InvalidRequirement:\\ Expected\\ end\\ or\\ semicolon\\ \\(after\\ version\\ specifier\\)\\\n\\ \\ \\ \\ foo\\ >=\\ 1\\.0\\ <\\ 2\\.0\\\n\\ \\ \\ \\ \\ \\ \\ \\ \\~\\~\\~\\~\\^",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A version constraint combines two operators without a comma, e.g. '>= 1.0 < 2.0'. PEP 440 requires a comma between specifiers.",
  "root_cause_type": "generic",
  "root_cause_zh": "版本约束组合了两个运算符而未使用逗号，例如 '>= 1.0 < 2.0'。PEP 440 要求说明符之间使用逗号。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Quoting does not change the grammar the parser enforces.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Older packaging also rejects the same malformed specifier.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.99,
      "how": "# bad\nfoo >= 1.0 < 2.0\n# good\nfoo>=1.0,<2.0",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "# equivalent to >=1.0,<2.0 for a 1.x series\nfoo~=1.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.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-23",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}