redhat-cop / redhat-cop/openshift_virtualization_migration
Precommit hook expects Python 3.13 but setup_env.sh does not specify Python version to use
Nobody has claimed this yet.
- Dominant language
- YAML
- Stars
- 9
- Forks
- 12
- Avg merge
- 3d 59m
- Merged PRs (30d)
- 20
Description
Summary: setup_env and pre-commit install do not specify the version of python but pre-commit run requires a specific version of Python
Python 3.14 is install on the system
Ran ./scripts/setup_env.sh which created a Python 3.14 virtual environment
Ran source .venv/bin/activate
Ran pre-commit install
Running pre-commit run --all-files return the error below. I needed to install python 3.13 on the system before pre-commit would work properly.
An unexpected error has occurred: CalledProcessError: command: ('openshift_virtualization_migration/.venv/bin/python3', '-mvirtualenv', '.cache/pre-commit/repo1in_57tr/py_env-python3.13', '-p', 'python3.13')
return code: 1
stdout:
RuntimeError: failed to find interpreter for Builtin discover of python_spec='python3.13'
stderr: (none)
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 with scripts/setup_env.sh and the pre-commit setup used by pre-commit install and pre-commit run --all-files. Check how the Python version is selected, then verify that a fresh environment can run all pre-commit checks without requiring an unmentioned interpreter installation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, shell
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100