{
  "id": "python/setuptools-entry-points-format",
  "signature": "error: 'entry_points' must be a dictionary",
  "signature_zh": "错误：'entry_points'必须是一个字典",
  "regex": "error:\\ 'entry_points'\\ must\\ be\\ a\\ dictionary",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The 'entry_points' argument in setup() was provided as a list or string instead of a dict.",
  "root_cause_type": "generic",
  "root_cause_zh": "setup()中的'entry_points'参数被提供为列表或字符串，而不是字典。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Passing a list of strings",
      "why_fails": "Setuptools expects nested dict structure; list causes parsing error.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Omitting entry_points",
      "why_fails": "Console scripts or plugins will not be registered.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use correct dict format with group keys",
      "success_rate": 0.95,
      "how": "setup(\n    entry_points={\n        'console_scripts': ['mycommand=mymodule:main'],\n        'myplugin': ['myplugin=mymodule:plugin']\n    }\n)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use setup.cfg for entry points",
      "success_rate": 0.9,
      "how": "# setup.cfg\n[options.entry_points]\nconsole_scripts =\n    mycommand = mymodule:main",
      "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-06-08",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}