Cinnamon / kotaemon

An open-source RAG-based tool for chatting with your documents.
https://cinnamon.github.io/kotaemon/
Apache License 2.0
17.49k stars 1.35k forks source link

[BUG] Gradio Version Conflict in Development Environment Setup #485

Closed Lee-Ju-Yeong closed 1 week ago

Lee-Ju-Yeong commented 1 week ago

Description

During the development environment setup, there is a version conflict between kotaemon and gradio packages. While the application runs without apparent issues, pip reports a dependency conflict warning.

Reproduction steps

Create and activate conda environment:
conda create -n kotaemon python=3.10
conda activate kotaemon

Install development packages:
pip install -e "libs/kotaemon[all]"
pip install -e "libs/ktem"

Screenshots

![DESCRIPTION](LINK.png)

Logs

Attempting uninstall: gradio
  Found existing installation: gradio 3.50.2
  Uninstalling gradio-3.50.2:
    Successfully uninstalled gradio-3.50.2
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
kotaemon 0.7.8 requires gradio<4.0,>=3.50.2, but you have gradio 4.44.1 which is incompatible.

Browsers

Chrome

OS

Windows

Additional information

Additional information Current installed gradio version: 4.44.1 Required gradio version by kotaemon: >=3.50.2, <4.0 Despite the version conflict, the application (app.py) appears to run normally This might need attention in future releases to ensure compatibility

taprosoft commented 1 week ago

It is weird since the current version pinning for Gradio is defined here: https://github.com/Cinnamon/kotaemon/blob/5b828c213c1d997fcd0e7ef40cd2b207fe2797c1/libs/kotaemon/pyproject.toml#L31 Your still looks valid and should work just fine.

Lee-Ju-Yeong commented 1 week ago

thank you so much for kind answer.