{"record":{"id":"75dcb5d09fd4ebc3","repo":"ScrapeGraphAI/Scrapegraph-ai","slug":"burr-package-is-not-installed-pleas","errorCode":null,"errorMessage":"burr package is not installed.\n              Please install it with 'pip install scrapegraphai[burr]'","messagePattern":"burr package is not installed\\.\n              Please install it with 'pip install scrapegraphai\\[burr\\]'","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"scrapegraphai/integrations/burr_bridge.py","lineNumber":27,"sourceCode":"from typing import Any, Dict, List, Tuple\n\nfrom ..utils.logging import get_logger\n\nlogger = get_logger(__name__)\n\ntry:\n    from burr import tracking\n    from burr.core import (\n        Action,\n        Application,\n        ApplicationBuilder,\n        ApplicationContext,\n        State,\n        default,\n    )\n    from burr.lifecycle import PostRunStepHook, PreRunStepHook\nexcept ImportError:\n    raise ImportError(\n        \"\"\"burr package is not installed.\n                      Please install it with 'pip install scrapegraphai[burr]'\"\"\"\n    )\n\n\nclass PrintLnHook(PostRunStepHook, PreRunStepHook):\n    \"\"\"\n    Hook to print the action name before and after it is executed.\n    \"\"\"\n\n    def pre_run_step(self, *, state: \"State\", action: \"Action\", **future_kwargs: Any):\n        logger.debug(\"Starting action: %s\", action.name)\n\n    def post_run_step(self, *, state: \"State\", action: \"Action\", **future_kwargs: Any):\n        logger.debug(\"Finishing action: %s\", action.name)\n\n\nclass BurrNodeBridge(Action):","sourceCodeStart":9,"sourceCodeEnd":45,"githubUrl":"https://github.com/ScrapeGraphAI/Scrapegraph-ai/blob/532dfffbf6ee823a6c9cf8cfedc24a93bf026780/scrapegraphai/integrations/burr_bridge.py#L9-L45","documentation":"Module-level ImportError in scrapegraphai/integrations/burr_bridge.py: the burr dependency (used for the Burr telemetry/tracing bridge) is not installed, so even importing the module fails. The install command includes the [burr] extra.","triggerScenarios":"from scrapegraphai.integrations.burr_bridge import ... (or any code path that imports it, e.g. burr-related examples) in an environment without burr installed. The error occurs at import time, not at call time.","commonSituations":"Running Burr examples from the repo with only the base install; fresh environments; CI jobs that install scrapegraphai without extras.","solutions":["pip install 'scrapegraphai[burr]' to get the extra.","Or install burr directly: pip install burr.","If you don't need Burr tracing, remove the import / avoid the example that uses the bridge."],"exampleFix":"# before\nfrom scrapegraphai.integrations.burr_bridge import ...  # ImportError\n\n# after\n# shell: pip install 'scrapegraphai[burr]'\nfrom scrapegraphai.integrations.burr_bridge import ...","handlingStrategy":"validation","validationCode":"import importlib.util\nif importlib.util.find_spec('burr') is None:\n    raise SystemExit(\"Install the extra: pip install 'scrapegraphai[burr]'\")","typeGuard":"def burr_available() -> bool:\n    import importlib.util\n    return importlib.util.find_spec('burr') is not None","tryCatchPattern":"try:\n    from scrapegraphai.integrations.burr_bridge import ...\nexcept ImportError as e:\n    if 'burr' in str(e):\n        raise SystemExit(\"pip install 'scrapegraphai[burr]'\") from e\n    raise","preventionTips":["Declare the [burr] extra in requirements when using the bridge.","Gate the import behind importlib.util.find_spec.","Keep examples' dependency extras documented for CI."],"tags":["missing-dependency","burr","import-error","integrations"],"backgroundTag":"optional-dependency-not-installed","analyzedSha":"532dfffbf6ee823a6c9cf8cfedc24a93bf026780","analyzedAt":"2026-08-28T15:19:38.821Z","schemaVersion":2},"datasetVersion":"2026-08-28T16:17:29.566Z"}