Skip to content

Add dependency guards with helpful errors#174

Merged
cploujoux merged 1 commit into
mainfrom
mendral/add-dependency-guards
Jun 18, 2026
Merged

Add dependency guards with helpful errors#174
cploujoux merged 1 commit into
mainfrom
mendral/add-dependency-guards

Conversation

@mendral-app

@mendral-app mendral-app Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Wrap imports in blaxel/livekit/__init__.py and blaxel/openai/__init__.py with try/except ImportError guards that raise clear, actionable error messages directing users to install the correct extras (pip install blaxel[livekit] or pip install blaxel[openai])
  • Eliminates cryptic ModuleNotFoundError tracebacks seen in production (7 occurrences in Sentry on SDK v0.2.58)

Resolves: https://app.mendral.com/insights/01KVE3CYVAKAE1SS36AY2ZPS38


Note

Created by Mendral. Tag @mendral-app with feedback or questions.

Wrap imports in blaxel/livekit/__init__.py and blaxel/openai/__init__.py
with try/except ImportError guards that raise actionable error messages
telling users to install the correct extras (pip install blaxel[livekit]
or pip install blaxel[openai]).

This eliminates cryptic ModuleNotFoundError tracebacks when users import
these modules without the required optional dependencies installed.
@mendral-app mendral-app Bot requested a review from a team June 18, 2026 19:31
@mendral-app mendral-app Bot marked this pull request as ready for review June 18, 2026 19:40
@cploujoux cploujoux merged commit 13bdae5 into main Jun 18, 2026
14 of 17 checks passed
@cploujoux cploujoux deleted the mendral/add-dependency-guards branch June 18, 2026 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant