{"record":{"id":"b7eb9d74f21def50","repo":"HKUDS/DeepTutor","slug":"manim-rendering-requires-optional-dependencies-in","errorCode":null,"errorMessage":"Manim rendering requires optional dependencies. Install with `pip install 'deeptutor[math-animator]'` or `pip install -r requirements/math-animator.txt`.","messagePattern":"Manim rendering requires optional dependencies\\. Install with `pip install 'deeptutor\\[math-animator\\]'` or `pip install -r requirements/math-animator\\.txt`\\.","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"deeptutor/agents/visualize/capability.py","lineNumber":298,"sourceCode":"        *,\n        context: UnifiedContext,\n        stream: StreamBus,\n        render_type: str,\n        visualize_config: VisualizeRequestConfig,\n        history_context: str,\n        usage: UsageTracker | None = None,\n        i18n: StatusI18n | None = None,\n    ) -> None:\n        \"\"\"\n        Manim sub-pipeline. Mirrors ``MathAnimatorCapability.run`` but emits\n        the final result with ``render_type`` as the discriminator so the\n        unified frontend dispatcher can route to ``MathAnimatorViewer``.\n        \"\"\"\n        import importlib.util\n        import time\n\n        if importlib.util.find_spec(\"manim\") is None:\n            raise RuntimeError(\n                \"Manim rendering requires optional dependencies. \"\n                \"Install with `pip install 'deeptutor[math-animator]'` \"\n                \"or `pip install -r requirements/math-animator.txt`.\"\n            )\n\n        from deeptutor.agents.math_animator.pipeline import MathAnimatorPipeline\n        from deeptutor.agents.math_animator.request_config import MathAnimatorRequestConfig\n        from deeptutor.core.trace import build_trace_metadata, new_call_id\n        from deeptutor.services.llm.config import get_llm_config\n\n        if i18n is None:\n            i18n = StatusI18n(self.name, context.language, module=\"visualize\")\n        output_mode = \"image\" if render_type == \"manim_image\" else \"video\"\n        request_config = MathAnimatorRequestConfig(\n            output_mode=output_mode,  # type: ignore[arg-type]\n            quality=visualize_config.quality,\n            style_hint=visualize_config.style_hint,\n        )","sourceCodeStart":280,"sourceCodeEnd":316,"githubUrl":"https://github.com/HKUDS/DeepTutor/blob/3e82f130422a813cdd73c10b21a44e9325f5821a/deeptutor/agents/visualize/capability.py#L280-L316","documentation":"Error \"Manim rendering requires optional dependencies. Install with `pip install 'deeptutor[math-animator]'` or `pip install -r requirements/math-animator.txt`.\" thrown in HKUDS/DeepTutor.","triggerScenarios":"Thrown at deeptutor/agents/visualize/capability.py:298 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3e82f130422a813cdd73c10b21a44e9325f5821a","analyzedAt":"2026-08-27T06:57:25.364Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}