kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

🚫 Setup Error: pre-commit==3.8.0 Not Found During pip install -r requirements/dev.txt

Open NihalShinde4933 opened this issue 6 months ago β€’ 8 comments

❌ 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

Image Image

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

  1. Clone the repository
  2. Create and activate a virtual environment
  3. Run: pip install -r requirements/dev.txt

Context

  1. Kolibri version: (not applicable yet, setup failed)
  2. Operating system: Windows 11
  3. Python version: 3.8.7
  4. Pip version: 20.0.3
  5. Browser: Not applicable

NihalShinde4933 avatar Jun 05 '25 17:06 NihalShinde4933

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! 😊

NihalShinde4933 avatar Jun 05 '25 17:06 NihalShinde4933

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.

bjester avatar Jun 05 '25 19:06 bjester

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.

NihalShinde4933 avatar Jun 06 '25 06:06 NihalShinde4933

I've assigned you @NihalShinde4933

MisRob avatar Jun 06 '25 06:06 MisRob

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!

NihalShinde4933 avatar Jun 06 '25 08:06 NihalShinde4933

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! 😊

NihalShinde4933 avatar Jun 06 '25 17:06 NihalShinde4933

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! 😊

NihalShinde4933 avatar Jun 07 '25 09:06 NihalShinde4933

Than you @NihalShinde4933, we will review

MisRob avatar Jun 09 '25 10:06 MisRob