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

Hello,
I have error:  "ModuleNotFoundError: No module named 'lxml'."  when trying to run server.

already tried  downgrade lxml and python installed lxml.html.clean again, but nothing helps, still have same error can you please help me?

아바타
취소
베스트 답변

You probably have more than one Python installation, and it somehow takes the one where lxml is not installed. You can test it using a virtual environment, if it works then you need to verify the paths.

아바타
취소
베스트 답변

Hi,

You need to install Python's header files to compile lxml. try this

apt-get install python-dev libxml2 libxml2-dev libxslt-dev

and then

sudo apt-get install python3-lxml



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

thank you for your response.

I already did, right now I have lxml 4.9.2 and python 3.11.2. 

I tried on 5.2 and 3.12 but still same error.

아바타
취소
베스트 답변

Hello, 

You can try this one. 

Comment on the following dependency in the requirement.txt file 

#gevent==21.8.0 ; python_version == '3.10' # (Jammy)

#gevent==22.10.2; python_version > '3.10'

After adding this

gevent

After run 

pip3 install -r odoo/requirements.txt

Thanks.


아바타
취소
관련 게시물 답글 화면 활동
1
7월 25
4683
1
10월 24
2405
0
12월 23
2047
0
4월 21
2815
1
6월 20
4563