{
  "id": "python/setuptools-manifest-in-missing-files",
  "signature": "warning: no previously-included files matching '*.pyc' found under directory '*'\nwarning: no files found matching '*.json' under directory 'data'",
  "signature_zh": "警告：在目录 '*' 下未找到匹配 '*.pyc' 的先前排除文件\n警告：在目录 'data' 下未找到匹配 '*.json' 的文件",
  "regex": "warning:\\ no\\ previously\\-included\\ files\\ matching\\ '\\*\\.pyc'\\ found\\ under\\ directory\\ '\\*'\\\nwarning:\\ no\\ files\\ found\\ matching\\ '\\*\\.json'\\ under\\ directory\\ 'data'",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "MANIFEST.in references files or globs that do not exist in the source tree, so the sdist silently omits data files the package needs at runtime.",
  "root_cause_type": "generic",
  "root_cause_zh": "MANIFEST.in 引用了源码树中不存在的文件或通配符，导致 sdist 静默遗漏包运行时需要的数据文件。",
  "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": "",
      "why_fails": "The resulting sdist lacks data files, causing runtime FileNotFoundError for users.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "If the paths are wrong, additional globs produce more warnings without including files.",
      "fail_rate": 0.65,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Verify paths exist relative to the project root and correct MANIFEST.in, e.g. `recursive-include src/pkg/data *.json`. Rebuild with `python -m build`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Prefer `[tool.setuptools.package-data]` in pyproject.toml to declare data files instead of relying on MANIFEST.in.",
      "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.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-10-11",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}