π« Setup Error: pre-commit==3.8.0 Not Found During pip install -r requirements/dev.txt
β This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Observed behavior
Attempting to set up the local development environment using the instructions provided in the documentation, I ran the following command: pip install -r requirements/dev.txt
However, it resulted in the following error:
ERROR: Could not find a version that satisfies the requirement pre-commit==3.8.0 ERROR: No matching distribution found for pre-commit==3.8.0
It appears that pre-commit==3.8.0 is not available on PyPI for my Python environment.
Errors and logs
ERROR: Could not find a version that satisfies the requirement pre-commit==3.8.0 (from versions: 0.2.0, ..., 3.5.0) ERROR: No matching distribution found for pre-commit==3.8.0
Expected behavior
The development dependencies should install successfully using the command: ``pip install -r requirements/dev.txt`
User-facing consequences
New contributors may be blocked during the setup process due to this dependency resolution error, preventing them from running the project locally.
Steps to reproduce
- Clone the repository
- Create and activate a virtual environment
- Run:
pip install -r requirements/dev.txt
Context
- Kolibri version: (not applicable yet, setup failed)
- Operating system: Windows 11
- Python version: 3.8.7
- Pip version: 20.0.3
- Browser: Not applicable
Hi π Iβm currently setting up the development environment and encountered this issue. Iβd like to investigate and work on resolving it. Kindly assign this issue to me. Thank you! π
This is a documentation issue-- pre-commit requires python 3.9+. Kolibri's getting started development documentation uses python 3.9 for the environment setup but does not specify the requirement here. If you'd like to open a PR, you can update documentation.
Additionally, I see you're setting up Kolibri directly on Windows. This is not supported for development. We recommend WSL.
Thank you for the clarification @bjester ! I'd like to take up this documentation issue and open a PR to add the Python 3.9+ requirement. Also noted regarding the Windows setup β Iβll switch to WSL for future development. Assigning this to myself now.
I've assigned you @NihalShinde4933
Hi, Iβve opened a pull request addressing this issue,
β PR link:https://github.com/learningequality/kolibri/pull/13461
The update includes a note in the docs about using Python 3.9+ and the recommendation to use WSL for Windows users. Please let me know if any changes are needed!
Hi! π Iβve opened a new pull request that addresses this issue and incorporates the changes as suggested earlier:
π PR Link: https://github.com/learningequality/kolibri/pull/13463
The update includes:
-
A clarification in the docs that
Python 3.9+is required (Kolibri doesn't support 3.12+). -
A note for Windows users to use WSL for development instead of native Windows.
Please let me know if anything else needs to be adjusted. Happy to improve it further! π
Hi there! Just wanted to kindly follow up on my pull request (#13463) regarding the Python version clarification and Windows development notes. Please let me know if thereβs any feedback or further changes needed. Iβm happy to make improvements. Thanks again for your time and consideration! π
Than you @NihalShinde4933, we will review