{"record":{"id":"e770ef21c2b9a7b6","repo":"OpenBB-finance/OpenBB","slug":"error-loading-extension-name-91m-e-0m-e770ef","errorCode":null,"errorMessage":"Error loading extension: {name}\n\u001b[91m{e}\u001b[0m","messagePattern":"Error loading extension: (.+?)\n\u001b\\[91m(.+?)\u001b\\[0m","errorType":"exception","errorClass":"LoadingError","httpStatus":null,"severity":"warning","filePath":"openbb_platform/core/openbb_core/provider/registry.py","lineNumber":50,"sourceCode":"\n\nclass RegistryLoader:\n    \"\"\"Load providers from entry points.\"\"\"\n\n    @staticmethod\n    @lru_cache\n    def from_extensions() -> Registry:\n        \"\"\"Load providers from entry points.\"\"\"\n        registry = Registry()\n\n        for name, entry in ExtensionLoader().provider_objects.items():  # type: ignore[attr-defined]\n            try:\n                registry.include_provider(provider=entry)\n            except Exception as e:\n                msg = f\"Error loading extension: {name}\\n\"\n                if Env().DEBUG_MODE:\n                    traceback.print_exception(type(e), e, e.__traceback__)\n                    raise LoadingError(msg + f\"\\033[91m{e}\\033[0m\") from e\n                warnings.warn(\n                    message=msg,\n                    category=OpenBBWarning,\n                )\n        return registry\n","sourceCodeStart":32,"sourceCodeEnd":56,"githubUrl":"https://github.com/OpenBB-finance/OpenBB/blob/3e071fcc2cd9f891cac6040ae60296dba76dab46/openbb_platform/core/openbb_core/provider/registry.py#L32-L56","documentation":"Thrown during OpenBB provider-registry construction (RegistryLoader.from_extensions, cached at first import/use). While iterating all installed provider packages discovered via entry points, one provider object failed to be included in the registry. Only in DEBUG_MODE does it raise LoadingError with the traceback; otherwise it is emitted as an OpenBBWarning and the provider is silently skipped, so commands routed to that provider later fail with 'provider not found'.","triggerScenarios":"Installing a broken or incompatible provider package (e.g. openbb-yfinance built against an older openbb_core API), a provider package whose module raises on import/entry-point load, or mixed versions after a partial 'pip install -U openbb' that upgrades core but not the provider extensions. Enable DEBUG_MODE=1 to get the LoadingError plus full traceback instead of the warning.","commonSituations":"Version mismatch between openbb_core and provider extensions after upgrade; a custom in-house provider whose entry point 'openbb_core_extension' or 'openbb_provider_extension' is misdeclared; corrupt virtualenv after upgrading the platform in place.","solutions":["Reinstall the failing extension in lockstep with core: pip install -U --force-reinstall openbb openbb-yfinance (or the named extension from the message)","Set DEBUG_MODE=1 (env var) and re-run to get the full traceback and the true underlying exception","Verify the extension is compatible with your installed openbb-core version: pip show openbb-core openbb-<provider> and check the provider's release notes","If the extension is unneeded, uninstall it: pip uninstall openbb-<provider>","For custom providers, check the entry-point group/registration in pyproject.toml and that Provider instantiation does not raise"],"exampleFix":"# before: mixed versions cause the warning on every import\npip install -U openbb  # upgrades core only; providers left behind\n\n# after: reinstall the whole platform so all extensions match core\npip install -U --force-reinstall openbb","handlingStrategy":"try-catch","validationCode":"import importlib.metadata as md\nimport openbb_core\ncore_version = md.version(\"openbb-core\")\nfor dist in md.distributions():\n    name = (dist.metadata[\"Name\"] or \"\").lower()\n    if name.startswith(\"openbb-\") and name != \"openbb-core\":\n        print(name, dist.version)","typeGuard":null,"tryCatchPattern":"import warnings\nfrom openbb_core.provider.registry import LoadingError\nfrom openbb_core.app.model.abstract.warning import OpenBBWarning\n\nwith warnings.catch_warnings(record=True) as caught:\n    warnings.simplefilter(\"always\")\n    from openbb import obb  # triggers registry build\nfor w in caught:\n    if issubclass(w.category, OpenBBWarning) and \"Error loading extension\" in str(w.message):\n        print(f\"degraded provider: {w.message}\")\n# if you need the hard failure, run with DEBUG_MODE=1 and catch LoadingError at startup","preventionTips":["Upgrade the whole openbb metapackage, never openbb-core alone, so provider extensions stay version-locked","Keep DEBUG_MODE=1 in dev/staging environments to surface the real traceback of broken extensions","Pin exact versions of all openbb-* packages in requirements.txt to avoid partial upgrades","After any pip upgrade, run a smoke test that lists obb.coverage.providers and assert your required providers loaded"],"tags":["extensions","entry-points","startup","version-mismatch"],"backgroundTag":null,"analyzedSha":"3e071fcc2cd9f891cac6040ae60296dba76dab46","analyzedAt":"2026-08-14T23:40:48.960Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}