{
  "id": "python/setuptools-entry-points-malformed",
  "signature": "ValueError: EntryPoint.parse - invalid entry point in entry-points generated file: 'console_scripts = foo'",
  "signature_zh": "ValueError：EntryPoint.parse - 入口点生成文件中的入口点无效：'console_scripts = foo'",
  "regex": "ValueError:\\ EntryPoint\\.parse\\ \\-\\ invalid\\ entry\\ point\\ in\\ entry\\-points\\ generated\\ file:\\ 'console_scripts\\ =\\ foo'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A pyproject.toml or setup.cfg declares an entry point without the required 'module:callable' format, e.g. 'foo = mypkg' instead of 'foo = mypkg.cli:main'.",
  "root_cause_type": "generic",
  "root_cause_zh": "pyproject.toml 或 setup.cfg 声明的入口点缺少必需的 'module:callable' 格式，例如 'foo = mypkg' 而非 'foo = mypkg.cli:main'。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "An empty callable is still invalid; the parser requires a non-empty name after the colon.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Breaks the CLI the project intends to expose and downstream scripts that call it.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.97,
      "how": "[project.scripts]\nfoo = \"mypkg.cli:main\"\n# or for a module entry\nfoo = \"mypkg.cli:__main__\"",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "python - <<'PY'\nfrom importlib.metadata import EntryPoint\nEntryPoint(name='foo', value='mypkg.cli:main', group='console_scripts')\nprint('ok')\nPY",
      "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": "2024-07-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}