Skip to content

[Bug]: ModuleNotFoundError: No module named 'enterprise' When Using litellm==1.48.1 in Google Colab #614

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Wajid160 opened this issue Apr 27, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@Wajid160
Copy link

Bug Description
Running a Python script in Google Colab using litellm==1.48.1 throws ModuleNotFoundError: No module named 'enterprise' when importing LitellmModel from agents.extensions.models.litellm_model. The same script worked fine the previous night, suggesting a recent environment or dependency change.

Additional Context

  • The error originates from litellm/responses/litellm_completion_transformation/transformation.py, attempting to import from enterprise.enterprise_hooks.session_handler.
  • Similar issue reported in #5909 — likely related to a missing or premium enterprise module.
  • Colab’s runtime may have reset, causing package mismatches.

Possible Causes

  • Missing Enterprise Module: enterprise might be a separate (undocumented) package like litellm-proxy-enterprise.
  • New Dependency: litellm==1.48.1 may have introduced this dependency unexpectedly.
  • Colab Reset: Temporary Colab environment reset could have lost critical packages.
  • Undocumented Feature: enterprise might belong to a premium feature and should be handled optionally.

Suggested Fix

  • Clarify if enterprise is required for standard usage or is a separate installation.
  • If optional, update litellm to handle missing imports gracefully (e.g., try-except block).
  • Recommend a stable, verified litellm version or pin dependencies to avoid such issues.
  • Provide clear installation guidance for any enterprise-related modules.

Workarounds Attempted

  • Reinstalled litellm==1.48.1 and agents; error persists.
  • Tried !pip install litellm-proxy-enterprise; package not found on PyPI.
  • Downgrading to litellm==1.40.14 (which might avoid the dependency) was considered but not yet tested.
@Wajid160 Wajid160 added the bug Something isn't working label Apr 27, 2025
@Mrkhan9914626
Copy link

same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants