{
  "id": "python/setuptools-version-scheme-error",
  "signature": "ERROR: setuptools.errors.VersionError: Version '1.0.0' is invalid: expected '.' or end of string after '1'",
  "signature_zh": "错误：setuptools.errors.VersionError：版本 '1.0.0' 无效：期望在 '1' 后出现 '.' 或字符串结尾",
  "regex": "ERROR:\\ setuptools\\.errors\\.VersionError:\\ Version\\ '1\\.0\\.0'\\ is\\ invalid:\\ expected\\ '\\.'\\ or\\ end\\ of\\ string\\ after\\ '1'",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The version string contains invalid characters or format that setuptools cannot parse, e.g., using commas or spaces.",
  "root_cause_type": "generic",
  "root_cause_zh": "版本字符串包含 setuptools 无法解析的无效字符或格式，例如使用逗号或空格。",
  "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 trailing 'v' to the version",
      "why_fails": "Versions must start with a digit.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a version like '1,0,0' with commas",
      "why_fails": "Commas are not valid separators.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use a valid PEP 440 version string",
      "success_rate": 0.95,
      "how": "Change to '1.0.0' (ensure only dots and digits).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use setuptools_scm to auto-generate versions from git tags",
      "success_rate": 0.9,
      "how": "Install setuptools_scm and configure in setup.cfg: [tool:setuptools_scm]",
      "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": "2025-08-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}