{
  "id": "python/typeerror-object-not-callable",
  "signature": "TypeError: 'module' object is not callable",
  "signature_zh": "类型错误：'module' 对象不可调用",
  "regex": "TypeError:\\ 'module'\\ object\\ is\\ not\\ callable",
  "domain": "python",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "A module is imported and then used as a function, e.g., import os; os() instead of os.getcwd().",
  "root_cause_type": "generic",
  "root_cause_zh": "导入模块后将其用作函数，例如 import os; os() 而不是 os.getcwd()。",
  "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"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Renaming the import",
      "why_fails": "Renaming does not fix the fundamental misuse of calling a module.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using from module import *",
      "why_fails": "Wildcard imports can cause name clashes but do not resolve callable issue.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Call the correct function from the module",
      "success_rate": 0.95,
      "how": "import os; os.getcwd()",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use from module import specific function",
      "success_rate": 0.9,
      "how": "from os import getcwd; getcwd()",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-14",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}