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

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

    <bug>
          <bug_id>40707</bug_id>
          
          <creation_ts>2021-08-11 17:06:39 +0300</creation_ts>
          <short_desc>Не хватает зависимости на python3-module-importlib-metadata</short_desc>
          <delta_ts>2021-08-11 18:31:30 +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>python3-module-signedjson</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="Vitaly Lipatov">lav</assigned_to>
          <cc>lav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>201430</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2021-08-11 17:06:39 +0300</bug_when>
    <thetext>Запуск matrix-synapse.service падает с ошибкой:

авг 11 17:01:14 amakeenk-sisyphus-work9 systemd[1]: Started Synapse Matrix homeserver.
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]: Traceback (most recent call last):
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:   File &quot;/usr/lib64/python3.9/runpy.py&quot;, line 197, in _run_module_as_main
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:     return _run_code(code, main_globals, None,
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:   File &quot;/usr/lib64/python3.9/runpy.py&quot;, line 87, in _run_code
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:     exec(code, run_globals)
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:   File &quot;/usr/lib/python3/site-packages/synapse/app/homeserver.py&quot;, line 28, in &lt;module&gt;
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:     from synapse import events
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:   File &quot;/usr/lib/python3/site-packages/synapse/events/__init__.py&quot;, line 24, in &lt;module&gt;
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:     from synapse.types import JsonDict, RoomStreamToken
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:   File &quot;/usr/lib/python3/site-packages/synapse/types.py&quot;, line 33, in &lt;module&gt;
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:     from signedjson.key import decode_verify_key_bytes
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:   File &quot;/usr/lib/python3/site-packages/signedjson/__init__.py&quot;, line 15, in &lt;module&gt;
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]:     from importlib_metadata import version, PackageNotFoundError
авг 11 17:01:17 amakeenk-sisyphus-work9 python3[4718]: ModuleNotFoundError: No module named &apos;importlib_metadata&apos;
авг 11 17:01:17 amakeenk-sisyphus-work9 systemd[1]: matrix-synapse.service: Main process exited, code=exited, status=1/FAILURE
авг 11 17:01:17 amakeenk-sisyphus-work9 systemd[1]: matrix-synapse.service: Failed with result &apos;exit-code&apos;.

Решается установкой пакета python3-module-importlib-metadata.

Версия matrix-synapse: 1.40.0-alt1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201431</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2021-08-11 17:14:36 +0300</bug_when>
    <thetext>Ошибка в пакете signedjson:

&lt;13&gt;Aug 11 14:13:40 rpmi: python3-module-signedjson-1.1.1-alt1 sisyphus+265075.20.4.1 1611351743 installed

Вы в командной оболочке hasher
 $ /usr/bin/hsh-shell /tmp/.private/lav/hasher-SS-64-test --mountpoints=/proc,/dev/shm --wait-lock --shell
[builder@localhost .in]$ python3
Python 3.9.6 (default, Jun 29 2021, 10:42:27) 
[GCC 10.2.1 20210313 (ALT Sisyphus 10.2.1-alt3)] on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import signedjson
Traceback (most recent call last):
  File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;
  File &quot;/usr/lib/python3/site-packages/signedjson/__init__.py&quot;, line 15, in &lt;module&gt;
    from importlib_metadata import version, PackageNotFoundError
ModuleNotFoundError: No module named &apos;importlib_metadata&apos;
&gt;&gt;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201432</commentid>
    <comment_count>2</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2021-08-11 17:23:14 +0300</bug_when>
    <thetext>Хм...
В спеке
# As of Python 3.8, this functionality has been added to the Python standard library.
#py3_use importlib-metadata

...
 $ rpm -q --changelog python3-module-importlib-metadata
* Вт июл 20 2021 Stanislav Levin &lt;slev@altlinux.org&gt; 4.6.1-alt1
- 1.5.0 -&gt; 4.6.1 (restored for features from Python 3.10).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>201438</commentid>
    <comment_count>3</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2021-08-11 18:31:30 +0300</bug_when>
    <thetext>python3-module-signedjson-1.1.1-alt2 -&gt; sisyphus:

 Wed Aug 11 2021 Vitaly Lipatov &lt;lav@altlinux.ru&gt; 1.1.1-alt2
 - restore importlib-metadata dependency (ALT bug 40707)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>