콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

I have installed Odoo 17 Community Edition in Ubuntu 24.04 and Python 3.12.  It works perfectly and without issues.  However, once a month, it fails and a restart solves it.  Every time it fails it gives the error below.

Has anyone seen this before?  Any recommendations on how to avoid this problem?


Sep 19 20:28:10 hris odoo[406005]:     from .mail import *
Sep 19 20:28:10 hris odoo[406005]:   File "/opt/odoo/server-code/odoo/tools/clean.py", line 18, in 
Sep 19 20:28:10 hris odoo[406005]:     raise ImportError(
Sep 19 20:28:10 hris odoo[406005]: ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Sep 19 20:28:10 hris odoo[406005]: Install lxml[html_clean] or lxml_html_clean directly.
Sep 19 20:28:10 hris systemd[1]: odoo17.service: Main process exited, code=exited, status=1/FAILURE
Sep 19 20:28:10 hris systemd[1]: odoo17.service: Failed with result 'exit-code'.
Sep 19 20:28:10 hris systemd[1]: odoo17.service: Consumed 50.664s CPU time, 99.2M memory peak, 0B memory swap peak.
아바타
취소
베스트 답변

Hi, 

Try: pip install lxml_html_clean


아바타
취소
작성자 베스트 답변

Hello,

I have version 5.2.1 installed.  Looking at the requirements.txt, this is indicated there:

# cat requirements.txt | grep lxml
lxml==4.8.0 ; python_version <= '3.10'
lxml==4.9.3 ; python_version > '3.10' and python_version < '3.12' # min 4.9.2, pinning 4.9.3 because of missing wheels for darwin in 4.9.3
lxml==5.2.1; python_version >= '3.12' # (Noble - removed html clean)
lxml-html-clean; python_version >= '3.12' # (Noble - removed from lxml, unpinned for futur security patches)



아바타
취소
베스트 답변

Hi,

Verify that the package version is correct or not:

lxml==4.8.0 ; python_version <= '3.10'

lxml==4.9.2 ; python_version > '3.10'

OR

Switch to python 3.10 version.


Hope it helps

아바타
취소
작성자

Hello,

I have version 5.2.1 installed.  Looking at the requirements.txt, this is indicated there:

# cat requirements.txt | grep lxml
lxml==4.8.0 ; python_version <= '3.10'
lxml==4.9.3 ; python_version > '3.10' and python_version < '3.12' # min 4.9.2, pinning 4.9.3 because of missing wheels for darwin in 4.9.3
lxml==5.2.1; python_version >= '3.12' # (Noble - removed html clean)
lxml-html-clean; python_version >= '3.12' # (Noble - removed from lxml, unpinned for futur security patches)

관련 게시물 답글 화면 활동
3
7월 25
764
3
7월 25
846
3
6월 25
4051
5
5월 25
4710
2
5월 25
1603