Skip to content

fix: uv venv error "a virtual environment already exist"#33

Merged
kishaningithub merged 1 commit intokishaningithub:mainfrom
konkerama:main
May 8, 2026
Merged

fix: uv venv error "a virtual environment already exist"#33
kishaningithub merged 1 commit intokishaningithub:mainfrom
konkerama:main

Conversation

@konkerama
Copy link
Copy Markdown
Contributor

Hello, the recent change of updating the version of uv broke our pipelines with the following error:

Installing uv.. installation_directory=/opt/actions-runner/_work/_actions/kishaningithub/setup-python-amazon-linux/v1/.setup-python-amazon-linux/uv
downloading uv 0.11.11 aarch64-unknown-linux-gnu
installing to /opt/actions-runner/_work/_actions/kishaningithub/setup-python-amazon-linux/v1/.setup-python-amazon-linux/uv
  uv
  uvx
everything's installed!
Run desired_python_version=$(${GITHUB_ACTION_PATH}/find-desired-python-version.sh "3.13" ".python-version")
desired_python_version=3.13
Run desired_python_version="3.13"
installation_directory=/home/ec2-user/.setup-python-amazon-linux/.python-versions/3.13
Run installation_directory="/home/ec2-user/.setup-python-amazon-linux/.python-versions/3.13"
Using CPython 3.13.13
Creating virtual environment at: /home/ec2-user/.setup-python-amazon-linux/.python-versions/3.13
error: Failed to create virtual environment
  Caused by: A virtual environment already exists at `/home/ec2-user/.setup-python-amazon-linux/.python-versions/3.13`. Use `--clear` to replace it

This pr fixes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants