Closed
Description
Describe the bug
During installation, there is a dependency conflict between Starlette versions required by core dependencies and server features. While the software functions correctly, pip displays version incompatibility warnings.
Reproduce
- Run
pip install open-interpreter
- Run
pip install "starlette>=0.40.0,<0.42.0"
to resolve FastAPI dependency - Observe that this creates a new conflict with core Starlette requirement
- Any attempt to resolve one conflict creates another, forming a circular dependency issue
Expected behavior
A clean installation without dependency conflicts, where both core functionality and server features can coexist without version warnings.
Screenshots
Current pyproject.toml configuration:
# Required dependencies
starlette = "^0.37.2"
# Optional [server] dependencies
fastapi = { version = "^0.111.0", optional = true }
Error message during installation:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
fastapi 0.115.3 requires starlette<0.42.0,>=0.40.0, but you have starlette 0.37.2 which is incompatible.
Open Interpreter version
0.4.3
Python version
3.11
Operating System name and version
Windows 11
Additional context
Suggested solution to modify pyproject.toml:
# Option 1: Relax version constraint
starlette = ">=0.37.2,<0.42.0"
# Option 2: Split into base and server configurations
starlette = { version = "^0.37.2", optional = true }
starlette = { version = ">=0.40.0,<0.42.0", optional = true }
Environment:
- Python 3.11
- open-interpreter 0.4.3
- Installation via pip
Metadata
Metadata
Assignees
Labels
No labels
Activity
Fix version ranges