{
  "id": "python/packaging-invalid-version-string",
  "signature": "packaging.version.InvalidVersion: Invalid version: '1.0.0-rc1+build.123'",
  "signature_zh": "packaging.version.InvalidVersion：无效版本：'1.0.0-rc1+build.123'",
  "regex": "packaging\\.version\\.InvalidVersion:\\ Invalid\\ version:\\ '1\\.0\\.0\\-rc1\\+build\\.123'",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The version string does not conform to PEP 440; local version labels must start with a digit after the '+'.",
  "root_cause_type": "generic",
  "root_cause_zh": "版本字符串不符合 PEP 440；本地版本标签在 '+' 后必须以数字开头。",
  "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": "Removing build metadata may lose important build information; parsing may still fail if other parts are invalid.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The version is still invalid per PEP 440; older libraries may not raise error but will parse incorrectly.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "version = '1.0.0rc1+build123'  # local label 'build123' starts with digit",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.0,
      "how": "from packaging.version import Version; v = Version('1.0.0rc1+build123')  # will raise error; fix the string first",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}