{
  "id": "python/setuptools-package-data-not-included",
  "signature": "error: package data file 'data/config.yaml' not found",
  "signature_zh": "错误：包数据文件 'data/config.yaml' 未找到",
  "regex": "error:\\ package\\ data\\ file\\ 'data/config\\.yaml'\\ not\\ found",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The package data file is missing from the source tree or not specified in setup.py.",
  "root_cause_type": "generic",
  "root_cause_zh": "包数据文件在源代码树中缺失，或未在 setup.py 中指定。",
  "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 the file to the wrong directory",
      "why_fails": "Path mismatch.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using MANIFEST.in incorrectly",
      "why_fails": "May not include data files in wheel.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create the missing file or adjust setup.py",
      "success_rate": 0.9,
      "how": "Ensure file exists and add include_package_data=True and package_data={'': ['data/*.yaml']} in setup()",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use setuptools_scm to auto-include",
      "success_rate": 0.7,
      "how": "pip install setuptools_scm and configure accordingly",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-11-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}