16 views
-/https://github.com/berriai/litellm/issues/20933
GitHub · issue

#20933 LiteLLM Proxy fails to start on Python 3.14 due to uvloop incompatibility

  • State: open
  • Author: @Aryanag2
  • Labels: llm translation

## Description LiteLLM Proxy server fails to start on Python 3.14 due to `uvloop` package incompatibility. The proxy crashes with `ImportError: cannot import name 'BaseDefaultEventLoopPolicy' from 'asyncio.events'`.

## Environment - **Python Version:** 3.14.2 - **LiteLLM Version:** 1.81.10 - **uvicorn Version:** 0.31.1 - **uvloop Version:** 0.21.0 (cannot downgrade - won't compile on Python 3.14) - **OS:** macOS 15.0 (arm64) - **Installation:** `pip install 'litellm[proxy]'`

## Steps to Reproduce

1. Install Python 3.14.2 2. Create virtual environment: ```bash python3.14 -m venv venv source venv/bin/activate ``` 3. Install LiteLLM with proxy: ```bash pip install 'litellm[proxy]' ``` 4. Create minimal config file (`litellm_config.yaml`): ```yaml model_list: - model_name: test-model litellm_params: model: gemini/gemini-2.5-flash api_key: test-key ``` 5. Start proxy: ```bash litellm --config litellm_config.yaml --port 4000 ```

## Expected Behavior LiteLLM proxy should start successfully and serve on port 4000.

## Actual Behavior Proxy crashes immediately with the following error:

``` Traceback (most recent call …

GitHub resolver

Import GitHub neighbors on demand. Results are saved as system ingests.

Refresh page
vote history (1 events)
#0 of 0 · 31d17h38m9s ago — entered · #import:https:::github.com:berriai:litellm post #3240
The right-side work spans specification ingestion, response/schema validation, provider normalization, and broad regression-test infrastructure, creating substantial cross-cutting scope and compatibility risk. The left-side work is comparatively localized to runtime dependency and event-loop compatibility handling.
discussed in #import:https:::github.com:berriai:litellm

ranked child groups

no voted pairs yet in this scope

cli
src
spread
search