{
  "id": "python/packaging-version-parsing-failure",
  "signature": "ERROR: Invalid version: '1.0.0-beta' - Must start with a number",
  "signature_zh": "错误：无效版本：'1.0.0-beta' - 必须以数字开头",
  "regex": "ERROR:\\ Invalid\\ version:\\ '1\\.0\\.0\\-beta'\\ \\-\\ Must\\ start\\ with\\ a\\ number",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The version string does not conform to PEP 440, e.g., using non-numeric prerelease tags.",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Adding a leading 'v' like 'v1.0.0-beta'",
      "why_fails": "PEP 440 requires versions to start with a digit, not a letter.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using underscores instead of dashes",
      "why_fails": "Underscores are not valid separators in PEP 440 versions.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use a valid PEP 440 version string",
      "success_rate": 0.95,
      "how": "Change to '1.0.0b1' or '1.0.0-beta.1' (but '1.0.0b1' is preferred).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use packaging.version.Version with a corrected string",
      "success_rate": 0.95,
      "how": "Run: from packaging.version import Version; v = Version('1.0.0b1')",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}