Skip to content

[Bug] ragflow-cli PyPI package missing http_client.py and other required files #13456

@babanetworx

Description

@babanetworx

Description

The ragflow-cli package on PyPI (version 0.24.0) is missing critical Python modules that are required for the CLI to function.

Steps to reproduce

  1. Install ragflow-cli from PyPI: pip install ragflow-cli==0.24.0
  2. Try to run the CLI: ragflow-cli -h 127.0.0.1 -p 9381
  3. Observe the import errors

Expected behavior

The CLI should work after installing from PyPI.

Actual behavior

The CLI fails with import errors because the following files are missing from the PyPI package:

  • http_client.py
  • ragflow_client.py
  • user.py

These files exist in the GitHub repository at admin/client/ but were not included in the PyPI distribution.

Files in PyPI package (ragflow_cli-0.24.0-py3-none-any.whl):

  • parser.py
  • ragflow_cli.py
  • ragflow_cli-0.24.0.dist-info/

Files in GitHub repository (admin/client/):

  • parser.py
  • ragflow_cli.py
  • http_client.py # MISSING from PyPI
  • ragflow_client.py # MISSING from PyPI
  • user.py # MISSING from PyPI

Workaround

Run from source code:

git clone https://github.com/infiniflow/ragflow.git
cd ragflow
pip install -r admin/client/requirements.txt
python admin/client/ragflow_cli.py -h 127.0.0.1 -p 9381

Suggested fix

Update the PyPI packaging/publishing process to include all files from admin/client/ directory in the distribution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working, pull request that fix bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions