{
  "id": "python/setuptools-invalid-version-string",
  "signature": "ValueError: invalid version number '1.0.0-beta'",
  "signature_zh": "ValueError：无效的版本号 '1.0.0-beta'",
  "regex": "ValueError:\\ invalid\\ version\\ number\\ '1\\.0\\.0\\-beta'",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The version string does not conform to PEP 440 versioning scheme.",
  "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": "Removing the pre-release tag",
      "why_fails": "Loses version information.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using underscores instead of hyphens",
      "why_fails": "Still invalid.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use PEP 440 compliant version",
      "success_rate": 0.95,
      "how": "version='1.0.0b1'",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use local version identifier",
      "success_rate": 0.8,
      "how": "version='1.0.0+build.1'",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-02-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}