{
  "id": "python/setuptools-setup-py-not-found",
  "signature": "error: setup.py must be in the same directory as the setup.cfg",
  "signature_zh": "错误：setup.py必须与setup.cfg在同一目录中",
  "regex": "error:\\ setup\\.py\\ must\\ be\\ in\\ the\\ same\\ directory\\ as\\ the\\ setup\\.cfg",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Setuptools expects setup.py to exist alongside setup.cfg when using setup.cfg for configuration.",
  "root_cause_type": "generic",
  "root_cause_zh": "当使用setup.cfg进行配置时，setuptools期望setup.py与setup.cfg位于同一目录。",
  "versions": [
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Removing setup.cfg",
      "why_fails": "Loses all configuration; may break build.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Creating empty setup.py in parent directory",
      "why_fails": "Must be in same directory; parent not checked.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Create a minimal setup.py in the same directory",
      "success_rate": 0.95,
      "how": "touch setup.py\n# Content:\nfrom setuptools import setup\nsetup()",
      "condition": "",
      "sources": []
    },
    {
      "action": "Move setup.cfg to the same directory as setup.py",
      "success_rate": 0.9,
      "how": "mv /path/to/setup.cfg .",
      "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": "2026-01-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}