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

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

    <bug>
          <bug_id>45090</bug_id>
          
          <creation_ts>2023-02-01 11:35:35 +0300</creation_ts>
          <short_desc>Не запускается из-за нового Python3 и Werkzeug</short_desc>
          <delta_ts>2023-10-24 17:37:36 +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>odoo</component>
          <version>unstable</version>
          <rep_platform>all</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="Anton Zhukharev">ancieg</reporter>
          <assigned_to name="Andrey Cherepanov">cas</assigned_to>
          <cc>cas</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>220997</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Zhukharev">ancieg</who>
    <bug_when>2023-02-01 11:35:35 +0300</bug_when>
    <thetext>Системы из образов (обновлены до Sisyphus 01.02.2023):

* 7db339f5e6e0cd2fbe67f4cb5df0f76e  alt-education-10.1-x86_64.iso (XFCE/KDE)
* c1e5326723ffacff16761beda9293f14  alt-kworkstation-10.1-install-x86_64.iso
* 3cc064c3410e8763c2b7bbd8d0af4936  alt-server-10.0-x86_64.iso
* d7fa044eba27efb20479cbeb04058c0b  alt-workstation-10.0-x86_64.iso

========================================
Пакет:

* odoo-14.0-alt3.20210112
* python3-3.10.8-alt1.1

========================================
Шаги воспроизведения:

1. Выполнить шаги 1-4 воспроизведения ошибки #42245

========================================
Фактический результат:

* Сервис odoo не запускается со следующей ошибкой (journalctl -xeu odoo.service):
--------------------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/usr/bin/odoo&quot;, line 5, in &lt;module&gt;
    import odoo
  File &quot;/usr/lib/python3/site-packages/odoo/__init__.py&quot;, line 115, in &lt;module&gt;
    from . import osv
  File &quot;/usr/lib/python3/site-packages/odoo/osv/__init__.py&quot;, line 4, in &lt;module&gt;
    from . import osv
  File &quot;/usr/lib/python3/site-packages/odoo/osv/osv.py&quot;, line 5, in &lt;module&gt;
    from ..models import Model, TransientModel, AbstractModel
  File &quot;/usr/lib/python3/site-packages/odoo/models.py&quot;, line 6355, in &lt;module&gt;
    collections.Set.register(BaseModel)
AttributeError: module &apos;collections&apos; has no attribute &apos;Set&apos;
--------------------------------------------------------------------------------

========================================
Ожидаемый результат:

* Сервис odoo запускается.

========================================
Дополнительные исследования:

* Не воспроизводится в P10. Версия пакетов:
  * odoo-14.0-alt3.20210112
  * python3-3.9.6-alt1   

* Что &quot;говорит&quot; интерпретатор Python 3.9.6 (в P10):
--------------------------------------------------------------------------------
$ python3 &lt;&lt;&lt; &quot;from collections import Set, Sequence&quot;
&lt;stdin&gt;:1: DeprecationWarning: Using or importing the ABCs from &apos;collections&apos; instead of from &apos;collections.abc&apos; is deprecated since Python 3.3, and in 3.10 it will stop working
--------------------------------------------------------------------------------

* Обход ошибки из фактического результата:

  # grep -lRE &apos;collections.(Set|Sequence)&apos; /usr/lib/python3/site-packages/odoo \
    | xargs sed -Ei &apos;/collections.(Set|Sequence)/ s/collections/collections.abc/&apos;

* После выполнения команды для обхода ошибки из фактического результата и попытке подключиться к серверу odoo он возвращает ошибку Internal Server Error, а в логе odoo (/var/log/odoo/odoo-server.log) есть критические ошибки:
--------------------------------------------------------------------------------
2023-02-01 08:17:05,892 6585 CRITICAL postgresql odoo.modules.module: Couldn&apos;t load module base 
2023-02-01 08:17:05,892 6585 CRITICAL postgresql odoo.modules.module: module &apos;werkzeug.routing&apos; has no attribute &apos;NumberConverter&apos; 
2023-02-01 08:17:05,897 6585 ERROR postgresql odoo.sql_db: bad query: UPDATE ir_module_module SET state=&apos;installed&apos; WHERE state IN (&apos;to remove&apos;, &apos;to upgrade&apos;)
ERROR: ОШИБКА:  отношение &quot;ir_module_module&quot; не существует
СТРОКА 1: UPDATE ir_module_module SET state=&apos;installed&apos; WHERE state IN...
--------------------------------------------------------------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>221010</commentid>
    <comment_count>1</comment_count>
    <who name="Danil Shein">dshein</who>
    <bug_when>2023-02-01 14:14:36 +0300</bug_when>
    <thetext>Сопровождающий данного пакета cas@</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>235494</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-10-24 17:37:36 +0300</bug_when>
    <thetext>odoo-16.0-alt1.20231013 -&gt; sisyphus:

 Tue Oct 24 2023 Andrey Cherepanov &lt;cas@altlinux&gt; 16.0-alt1.20231013
 - New version (ALT #45090).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>