Skip to content

ModuleNotFoundError: No module named 'enterprise' #10353 #613

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
Naveed101633 opened this issue Apr 27, 2025 · 2 comments
Open

ModuleNotFoundError: No module named 'enterprise' #10353 #613

Naveed101633 opened this issue Apr 27, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@Naveed101633
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 BerriAI/litellm#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.

@Naveed101633 Naveed101633 added the bug Something isn't working label Apr 27, 2025
@wcvb13
Copy link

wcvb13 commented Apr 27, 2025

Image
same error in 1.67.4

@Uzair-DeVops
Copy link

facing same error
ModuleNotFoundError: No module named 'enterprise'

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

3 participants