{
  "id": "python/setuptools-entry-point-invalid",
  "signature": "ERROR: setuptools.errors.InvalidConfigError: Entry point 'console_scripts' has invalid format: 'mycommand = mymodule:main:extra'",
  "signature_zh": "错误：setuptools.errors.InvalidConfigError：入口点 'console_scripts' 格式无效：'mycommand = mymodule:main:extra'",
  "regex": "ERROR:\\ setuptools\\.errors\\.InvalidConfigError:\\ Entry\\ point\\ 'console_scripts'\\ has\\ invalid\\ format:\\ 'mycommand\\ =\\ mymodule:main:extra'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Entry point syntax has too many colons; expected format is 'name = module:function'.",
  "root_cause_type": "generic",
  "root_cause_zh": "入口点语法冒号过多；预期格式为 'name = module:function'。",
  "versions": [
    {
      "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Adding more colons to match a pattern",
      "why_fails": "Increases syntax error.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a dot instead of colon",
      "why_fails": "Dot is not a valid separator for entry points.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Correct the entry point format",
      "success_rate": 0.95,
      "how": "Change to 'mycommand = mymodule:main' (only one colon).",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use a function that returns the callable",
      "success_rate": 0.85,
      "how": "Define a function in mymodule that returns main, then use 'mycommand = mymodule:get_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-05-19",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}