{
  "id": "python/setuptools-version-string-invalid",
  "signature": "error: Invalid version string: '1.0.0-beta'",
  "signature_zh": "错误：无效的版本字符串：'1.0.0-beta'",
  "regex": "error:\\ Invalid\\ version\\ string:\\ '1\\.0\\.0\\-beta'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Setuptools uses PEP 440 versioning; '1.0.0-beta' is not compliant; should be '1.0.0b1'.",
  "root_cause_type": "generic",
  "root_cause_zh": "Setuptools使用PEP 440版本规范；'1.0.0-beta'不符合规范；应为'1.0.0b1'。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using '1.0.0-beta1'",
      "why_fails": "Still not PEP 440 compliant; hyphen not allowed for pre-releases.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing pre-release label entirely",
      "why_fails": "Loses version semantics; may cause confusion.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use PEP 440 compliant version",
      "success_rate": 0.95,
      "how": "version='1.0.0b1'",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use setuptools_scm for automatic versioning",
      "success_rate": 0.9,
      "how": "pip install setuptools_scm\n# setup.py\nsetup(use_scm_version=True)",
      "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-09-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}