Bug 53271 - Обновить glances до актуальной версии
Summary: Обновить glances до актуальной версии
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: glances (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: kuznetsovam@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-02 10:03 MSK by Alexander Makeenkov
Modified: 2025-03-11 19:54 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Makeenkov 2025-03-02 10:03:34 MSK
Версия в репозитории: 3.4.0.5
Актуальная версия на данный момент: 4.3.0.8

Прошу обновить.
Comment 1 Alexander Makeenkov 2025-03-02 11:34:40 MSK
Так же нужно будет добавить в зависимости:
python3-module-fastapi
python3-module-uvicorn
python3-module-jinja2

Иначе, собранная по текущему spec файлу новая версия не работает в web режиме:

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

# glances -w
Uvicorn import error. Glances cannot start in web server mode.

# glances -w
Traceback (most recent call last):
  File "/usr/bin/glances", line 9, in <module>
    sys.exit(main())
             ^^^^^^
  File "/usr/lib/python3/site-packages/glances/__init__.py", line 173, in main
    start(config=core.get_config(), args=core.get_args())
  File "/usr/lib/python3/site-packages/glances/__init__.py", line 102, in start
    mode = GlancesMode(config=config, args=args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/glances/webserver.py", line 35, in __init__
    self.web = GlancesRestfulApi(config=config, args=args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/glances/outputs/glances_restful_api.py", line 141, in __init__
    self._templates = Jinja2Templates(directory=self.TEMPLATE_PATH)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/site-packages/starlette/templating.py", line 96, in __init__
    assert jinja2 is not None, "jinja2 must be installed to use Jinja2Templates"
           ^^^^^^^^^^^^^^^^^^
AssertionError: jinja2 must be installed to use Jinja2Templates

Для старой версии нужен был только python3-module-bottle
Comment 2 Repository Robot 2025-03-11 19:54:09 MSK
glances-4.3.0.8-alt1 -> sisyphus:

 Tue Jan 21 2025 Alexander Kuznetsov <kuznetsovam@altlinux> 4.3.0.8-alt1
 - New version 4.3.0.8 (closes: #53271).
 - Add subpackage with webserver requirements and systemd unit.
 - Add patch to fix default config dir path.