{
  "id": "python/sqlalchemy-no-engine-found",
  "signature": "sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgresql",
  "signature_zh": "sqlalchemy.exc.NoSuchModuleError：无法加载插件：sqlalchemy.dialects:postgresql",
  "regex": "sqlalchemy\\.exc\\.NoSuchModuleError:\\ Can't\\ load\\ plugin:\\ sqlalchemy\\.dialects:postgresql",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Missing or misconfigured database driver (e.g., psycopg2 not installed).",
  "root_cause_type": "generic",
  "root_cause_zh": "缺少或配置错误的数据库驱动程序（例如，未安装 psycopg2）。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Installing wrong package like 'postgresql' instead of 'psycopg2-binary'.",
      "why_fails": "SQLAlchemy requires specific driver packages; generic packages don't work.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Setting incorrect dialect string like 'postgres' instead of 'postgresql'.",
      "why_fails": "Dialect names are case-sensitive and must match exactly.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install the correct driver.",
      "success_rate": 0.95,
      "how": "pip install psycopg2-binary",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use correct connection string format.",
      "success_rate": 0.9,
      "how": "engine = create_engine('postgresql://user:pass@localhost/dbname')",
      "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": "2024-04-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}