{
  "id": "python/setuptools-package-data-missing",
  "signature": "error: package data file 'mypackage/data/config.yaml' not found",
  "signature_zh": "错误：包数据文件 'mypackage/data/config.yaml' 未找到",
  "regex": "error:\\ package\\ data\\ file\\ 'mypackage/data/config\\.yaml'\\ not\\ found",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The package_data configuration references a file that does not exist in the source tree.",
  "root_cause_type": "generic",
  "root_cause_zh": "package_data 配置引用了源树中不存在的文件。",
  "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": "Creating an empty file with the same name",
      "why_fails": "The file may need specific content; an empty file may cause runtime errors.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing the package_data entry",
      "why_fails": "This may break functionality that depends on the file.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Ensure the file exists at the specified path",
      "success_rate": 0.9,
      "how": "mkdir -p mypackage/data && touch mypackage/data/config.yaml",
      "condition": "",
      "sources": []
    },
    {
      "action": "Correct the package_data glob pattern",
      "success_rate": 0.85,
      "how": "In setup.cfg: 'include = mypackage/data/*.yaml' and ensure files are present.",
      "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-10-12",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}