{
  "id": "python/sqlalchemy-connection-string-missing-driver",
  "signature": "sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgresql.psycopg3",
  "signature_zh": "sqlalchemy.exc.NoSuchModuleError: 无法加载插件：sqlalchemy.dialects:postgresql.psycopg3",
  "regex": "sqlalchemy\\.exc\\.NoSuchModuleError:\\ Can't\\ load\\ plugin:\\ sqlalchemy\\.dialects:postgresql\\.psycopg3",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The specified database driver is not installed or not recognized by SQLAlchemy.",
  "root_cause_type": "generic",
  "root_cause_zh": "指定的数据库驱动程序未安装或未被 SQLAlchemy 识别。",
  "versions": [
    {
      "version": "1.4.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "2.0.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Defaults to psycopg2; if that's not installed, it fails.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Missing dependency.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Install the correct driver: pip install psycopg2-binary or pip install psycopg (for v3)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Use the correct dialect string: 'postgresql+psycopg2://user:pass@host/db'",
      "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-03-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}