{
  "id": "python/setuptools-python-requires-invalid",
  "signature": "ValueError: python_requires must be a string containing a valid version specifier, not '>=3.6, <4.0'",
  "signature_zh": "ValueError: python_requires 必须是包含有效版本说明符的字符串，而不是 '>=3.6, <4.0'",
  "regex": "ValueError:\\ python_requires\\ must\\ be\\ a\\ string\\ containing\\ a\\ valid\\ version\\ specifier,\\ not\\ '>=3\\.6,\\ <4\\.0'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The python_requires value has a syntax error, such as an extra space or invalid operator.",
  "root_cause_type": "generic",
  "root_cause_zh": "python_requires 值存在语法错误，例如多余空格或无效运算符。",
  "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": "Using a list of specifiers",
      "why_fails": "setuptools expects a single string, not a list.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing the space after the comma",
      "why_fails": "The error is about the format; a single string with commas is acceptable.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Correct the python_requires string to PEP 440 format",
      "success_rate": 0.95,
      "how": "python_requires = '>=3.6,<4.0' (no spaces around comma)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a single specifier if possible",
      "success_rate": 0.9,
      "how": "python_requires = '>=3.6'",
      "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-12-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}