{
  "id": "python/setuptools-extra-files-not-found",
  "signature": "ERROR: setuptools.errors.PackageNotFoundError: The 'data_files' pattern 'config/*.ini' did not match any files",
  "signature_zh": "错误：setuptools.errors.PackageNotFoundError：'data_files' 模式 'config/*.ini' 未匹配任何文件",
  "regex": "ERROR:\\ setuptools\\.errors\\.PackageNotFoundError:\\ The\\ 'data_files'\\ pattern\\ 'config/\\*\\.ini'\\ did\\ not\\ match\\ any\\ files",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The specified glob pattern in setup.cfg or setup.py does not find any files in the package.",
  "root_cause_type": "generic",
  "root_cause_zh": "setup.cfg 或 setup.py 中指定的 glob 模式在包中未找到任何文件。",
  "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": "Changing the pattern to '*.ini' without a directory",
      "why_fails": "May match unintended files; also doesn't solve the path issue.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing the data_files configuration entirely",
      "why_fails": "Necessary files will be missing from the distribution.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Correct the path to the actual files",
      "success_rate": 0.95,
      "how": "Ensure the config directory exists and contains .ini files. Example: mkdir config; touch config/settings.ini",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use package_data instead of data_files",
      "success_rate": 0.9,
      "how": "In setup.cfg: [options.package_data]\n* = config/*.ini",
      "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-01-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}