<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>53271</bug_id>
          
          <creation_ts>2025-03-02 10:03:34 +0300</creation_ts>
          <short_desc>Обновить glances до актуальной версии</short_desc>
          <delta_ts>2025-03-11 19:54:09 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>glances</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="kuznetsovam@altlinux.org">kuznetsovam</assigned_to>
          <cc>egori</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>260156</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-03-02 10:03:34 +0300</bug_when>
    <thetext>Версия в репозитории: 3.4.0.5
Актуальная версия на данный момент: 4.3.0.8

Прошу обновить.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260157</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2025-03-02 11:34:40 +0300</bug_when>
    <thetext>Так же нужно будет добавить в зависимости:
python3-module-fastapi
python3-module-uvicorn
python3-module-jinja2

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

# glances -w
FastAPI import error: No module named &apos;fastapi&apos;
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 &quot;/usr/bin/glances&quot;, line 9, in &lt;module&gt;
    sys.exit(main())
             ^^^^^^
  File &quot;/usr/lib/python3/site-packages/glances/__init__.py&quot;, line 173, in main
    start(config=core.get_config(), args=core.get_args())
  File &quot;/usr/lib/python3/site-packages/glances/__init__.py&quot;, line 102, in start
    mode = GlancesMode(config=config, args=args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3/site-packages/glances/webserver.py&quot;, line 35, in __init__
    self.web = GlancesRestfulApi(config=config, args=args)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3/site-packages/glances/outputs/glances_restful_api.py&quot;, line 141, in __init__
    self._templates = Jinja2Templates(directory=self.TEMPLATE_PATH)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/usr/lib/python3/site-packages/starlette/templating.py&quot;, line 96, in __init__
    assert jinja2 is not None, &quot;jinja2 must be installed to use Jinja2Templates&quot;
           ^^^^^^^^^^^^^^^^^^
AssertionError: jinja2 must be installed to use Jinja2Templates

Для старой версии нужен был только python3-module-bottle</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>260861</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2025-03-11 19:54:09 +0300</bug_when>
    <thetext>glances-4.3.0.8-alt1 -&gt; sisyphus:

 Tue Jan 21 2025 Alexander Kuznetsov &lt;kuznetsovam@altlinux&gt; 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>