nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.86k stars 1.53k forks source link

Missing Dependencies for Web Mode When Installing Glances with Homebrew #3016

Closed gromdimon closed 3 hours ago

gromdimon commented 4 hours ago

Describe the bug The problem occurs when installing Glances through Homebrew on macOS: essential dependencies required for running Glances in web server mode (glances -w) are not installed automatically. When trying to start web mode, an import error appears because FastAPI, Uvicorn, and Jinja2 are missing. This requires manual installation of these dependencies in the specific Python environment Glances uses, which should ideally be handled during installation.

To Reproduce

  1. Install Glances via Homebrew:

    brew install glances
  2. Try starting Glances in web server mode:

    glances -w
  3. You will encounter an error similar to:

    FastAPI import error: No module named 'fastapi'
    Glances cannot start in web server mode.

Expected behavior Glances should automatically install the necessary dependencies for web mode (fastapi, uvicorn, jinja2) when using brew install glances so that glances -w runs without error after installation.

Environement (please complete the following information)

nicolargo commented 3 hours ago

Hi @gromdimon

i close this issue because it is duplicated as https://github.com/nicolargo/glances/discussions/3012

gromdimon commented 2 hours ago

@nicolargo, thank you for the quick response! Apologies for opening the duplicate issues (I didn’t check the closed tickets, as the bug didn’t seem to be fixed).

nicolargo commented 1 hour ago

No problem. Hope thé bug will be fixed by the package manager.