{
  "id": "python/pytest-html-report-missing",
  "signature": "ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]\npytest: error: unrecognized arguments: --html=report.html",
  "signature_zh": "错误: 用法: pytest [选项] [文件或目录] [文件或目录] [...]\npytest: 错误: 无法识别的参数: --html=report.html",
  "regex": "ERROR:\\ usage:\\ pytest\\ \\[options\\]\\ \\[file_or_dir\\]\\ \\[file_or_dir\\]\\ \\[\\.\\.\\.\\]\\\npytest:\\ error:\\ unrecognized\\ arguments:\\ \\-\\-html=report\\.html",
  "domain": "python",
  "category": "install_error",
  "subcategory": null,
  "root_cause": "The pytest-html plugin is not installed, so the --html option is not recognized.",
  "root_cause_type": "generic",
  "root_cause_zh": "pytest-html 插件未安装，因此无法识别 --html 选项。",
  "versions": [
    {
      "version": "3.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "This generates a different format and doesn't provide HTML reports.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This loses the HTML report functionality.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.98,
      "how": "Run: pip install pytest-html",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Add 'pytest-html' to requirements.txt and reinstall dependencies.",
      "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.95,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}