Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
11405 Lượt xem


I am runnig  Odoo 14 on Ubuntu Server, it is throwing the mentioned error in the backend server logs. Some sites suggested to install the missing packages/library html2text.

I have installed that too by running 


pip3 install html2text


and verified it by 


pip3 show html2text


which shows location of site-packages of python Location: 


/home/dell/.local/lib/python3.8/site-packages.


However, the system is still throwing this mentioned error in the logs 


ModuleNotFoundError: No module named 'html2text' - - -.
Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I figured it out myself. The problem was with default python package path installation. Since Odoo was looking for python packages at this location /usr/lib/python/dist-packages and the package html2text was installed in /home/dell/.local/lib/python3.8/site-packages

I had to install the html2text package in /usr/lib/python/dist-packages by running

sudo pip3 install --target=/usr/lib/python3/dist-packages html2text
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

Can you check and ensure the below scenarios, eestarted the odoo service after installing the package ? which python version you are using to run odoo instance ? May be you are using different python version(venv) to run odoo instance.


Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks Raphy[The Great] for the response, the issue was not related to python package instead it was related to packages installation path

Bài viết liên quan Trả lời Lượt xem Hoạt động
5
thg 10 24
32514
1
thg 7 23
7175
2
thg 10 21
3213
0
thg 8 21
1962
0
thg 7 21
3847