Summary: | Не разворачивается odoo | ||||||
---|---|---|---|---|---|---|---|
Product: | Sisyphus | Reporter: | Kostevich Arseniy <kostevichae> | ||||
Component: | odoo | Assignee: | Andrey Cherepanov <cas> | ||||
Status: | NEW --- | QA Contact: | qa-sisyphus | ||||
Severity: | normal | ||||||
Priority: | P5 | CC: | amakeenk, cas | ||||
Version: | unstable | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Attachments: |
|
На данный момент ошибка выглядит так: systemd[1]: Started odoo.service - Odoo Open Source ERP and CRM. odoo[54745]: /usr/lib/python3/site-packages/odoo/tools/appdirs.py:77: SyntaxWarning: invalid escape sequence '\*' odoo[54745]: """Return full path to the user-shared data dir for this application. odoo[54745]: /usr/lib/python3/site-packages/odoo/tools/appdirs.py:188: SyntaxWarning: invalid escape sequence '\*' odoo[54745]: """Return full path to the user-shared data dir for this application. odoo[54745]: /usr/lib/python3/site-packages/odoo/tools/mail.py:390: SyntaxWarning: invalid escape sequence '\s' odoo[54745]: html = re.sub('<br\s*/?>', '\n', html) odoo[54745]: Traceback (most recent call last): odoo[54745]: File "/usr/bin/odoo", line 5, in <module> odoo[54745]: import odoo odoo[54745]: File "/usr/lib/python3/site-packages/odoo/__init__.py", line 113, in <module> odoo[54745]: from . import modules odoo[54745]: File "/usr/lib/python3/site-packages/odoo/modules/__init__.py", line 8, in <module> odoo[54745]: from . import db, graph, loading, migration, module, registry, neutralize odoo[54745]: File "/usr/lib/python3/site-packages/odoo/modules/graph.py", line 10, in <module> odoo[54745]: import odoo.tools as tools odoo[54745]: File "/usr/lib/python3/site-packages/odoo/tools/__init__.py", line 16, in <module> odoo[54745]: from .mail import * odoo[54745]: File "/usr/lib/python3/site-packages/odoo/tools/mail.py", line 18, in <module> odoo[54745]: from lxml.html import clean odoo[54745]: File "/usr/lib64/python3/site-packages/lxml/html/clean.py", line 18, in <module> odoo[54745]: raise ImportError( odoo[54745]: ImportError: lxml.html.clean module is now a separate project lxml_html_clean. odoo[54745]: Install lxml[html_clean] or lxml_html_clean directly. systemd[1]: odoo.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: odoo.service: Failed with result 'exit-code'. odoo-16.0-alt2.20231013 python3-module-lxml-5.3.0-alt1 |
Created attachment 15657 [details] Полный log Версии пакетов: odoo-16.0-alt2.20231013 python3-module-werkzeug-3.0.1-alt2 Платформы(Обновлены до Sisyphus): server-10.1-x86-64 Шаги для воспроизведения: 1)# apt-get install -y postgresql12-server odoo 2)# /etc/init.d/postgresql initdb 3)# systemctl enable --now postgresql 4)# su - postgres -s /bin/sh -c 'createuser --no-superuser --createdb --createrole --encrypted --pwprompt odoo' 5)# su - postgres -s /bin/sh -c 'createdb -O odoo odoo' 6)# echo "db_name = postgresql" >> /etc/odoo/odoo.conf 7)# systemctl enable --now odoo && sleep 5; systemctl status odoo Ожидаемый результат: Сервис запущен успешно, ошибок нет Фактический результат: Сервис не запущен, в логах ошибка: Traceback (most recent call last): File "/usr/bin/odoo", line 5, in <module> import odoo File "/usr/lib/python3/site-packages/odoo/__init__.py", line 117, in <module> from . import service File "/usr/lib/python3/site-packages/odoo/service/__init__.py", line 5, in <module> from . import model File "/usr/lib/python3/site-packages/odoo/service/model.py", line 13, in <module> from odoo.http import request File "/usr/lib/python3/site-packages/odoo/http.py", line 148, in <module> from werkzeug.urls import URL, url_parse, url_encode, url_quote ImportError: cannot import name 'URL' from 'werkzeug.urls' (/usr/lib/python3/site-packages/werkzeug/urls.py) Дополнительная информация: В версии python3-module-werkzeug-3.0.1-alt2 в файле /usr/lib/python3/site-packages/werkzeug/urls.py действительно отсутствуют классы/функции, которые пытается импортировать odoo. Возможно здесь проблема именно в python3-module-werkzeug(Затрудняюсь сказать). С версией python3-module-werkzeug-2.0.3-alt1 данная ошибка не воспроизводится.