{
  "id": "python/pytest-missing-plugin-dependency",
  "signature": "PluginValidationError: plugin 'pytest-html' not found",
  "signature_zh": "插件验证错误：未找到插件 'pytest-html'",
  "regex": "PluginValidationError:\\ plugin\\ 'pytest\\-html'\\ not\\ found",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "A pytest plugin specified in conftest.py or command line is not installed in the current Python environment.",
  "root_cause_type": "generic",
  "root_cause_zh": "在 conftest.py 或命令行中指定的 pytest 插件未在当前 Python 环境中安装。",
  "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"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Manually copying plugin files to the project directory",
      "why_fails": "Plugins must be installed via pip to be properly registered with pytest.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "Removing the plugin reference from conftest.py without installing",
      "why_fails": "If the plugin is required for test functionality, tests may fail or behave incorrectly.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install the missing plugin using pip.",
      "success_rate": 0.95,
      "how": "pip install pytest-html",
      "condition": "",
      "sources": []
    },
    {
      "action": "Add the plugin to requirements.txt and run pip install -r requirements.txt.",
      "success_rate": 0.9,
      "how": "echo 'pytest-html' >> requirements.txt && pip install -r requirements.txt",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}