{
  "id": "python/setuptools-entry-point-error",
  "signature": "error: Error in setup.cfg: entry_points must be a dictionary, not a list",
  "signature_zh": "错误：setup.cfg 中的错误：entry_points 必须是字典，而不是列表",
  "regex": "error:\\ Error\\ in\\ setup\\.cfg:\\ entry_points\\ must\\ be\\ a\\ dictionary,\\ not\\ a\\ list",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The entry_points configuration in setup.cfg is incorrectly formatted as a list instead of a dictionary.",
  "root_cause_type": "generic",
  "root_cause_zh": "setup.cfg 中的 entry_points 配置格式错误，应为字典而非列表。",
  "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": "Converting to a list of strings",
      "why_fails": "setuptools expects a dict with console_scripts keys.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Omitting entry_points entirely",
      "why_fails": "This removes the feature but may break expected CLI commands.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Format entry_points as a dictionary in setup.cfg",
      "success_rate": 0.95,
      "how": "[options.entry_points]\nconsole_scripts =\n    mycommand = mypackage.module:function",
      "condition": "",
      "sources": []
    },
    {
      "action": "Define entry_points in setup.py as a dict",
      "success_rate": 0.9,
      "how": "entry_points={'console_scripts': ['mycommand=mypackage.module:function']}",
      "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-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}