getDevPythonVersion() hardcodes minor: 0, breaks local dev with uv >= 0.10.11
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 16.3k
- Forks
- 3.8k
- Avg merge
- 2m
- Merged PRs (30d)
- 1
Description
Bug
vercel dev fails for Python serverless functions when uv >= 0.10.11 is installed.
Root cause
getDevPythonVersion() in packages/python/src/index.ts hardcodes minor: 0:
function getDevPythonVersion() {
return {
major: 3,
minor: 0, // ← always passes --python 3.0 to uv
...
};
}
This causes vercel dev to call uv venv --python 3.0, which uv 0.10.11 rejects:
error: Invalid version request: Python <3.7 is not supported but 3.0 was requested.
Older uv versions accepted 3.0 as "any Python 3", but uv 0.10.11 treats it as a literal version.
Steps to reproduce
1. Install uv >= 0.10.11
2. Run vercel dev on a project with Python serverless functions
3. Any API call to a Python function returns HTTP 500
Expected behavior
Dev server builds Python functions successfully.
Suggested fix
Use the actual system Python version in getDevPythonVersion(), or omit the --python flag in dev mode
since pythonPath: "python3" already resolves the correct binary.
Environment
- Vercel CLI: 51.5.1
- uv: 0.10.11
- OS: macOS
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in packages/python/src/index.ts at getDevPythonVersion(), then reproduce with uv >= 0.10.11 using vercel dev on a project with Python serverless functions. Verify that development builds succeed and Python function API calls no longer return HTTP 500.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100