Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
6562 มุมมอง
Getting this error and service keeps stopping:

odoo.service - Odoo
Loaded: loaded (/etc/systemd/system/odoo.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2022-11-09 17:32:44 +06; 1min 7s ago
Process: 127332 ExecStart=/opt/odoo/odoo-venv/bin/python3 /opt/odoo/odoo/odoo-bin -c /etc/odoo.>
Main PID: 127332 (code=exited, status=1/FAILURE)
CPU: 21min 8.252s
But when I try installing them in the venv it says already satisfied

(odoo-venv) test@test:/opt/odoo$ pip3 install PyPDF2
Requirement already satisfied: PyPDF2 in ./odoo-venv/lib/python3.10/site-packages (1.26.0)


อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

You have to install the right version as per stated in the file

requirements.txt

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Try checking the version of PyPDF 2 in the requirements.txt file and install the specified version. When you doesn't mention the version, the latest version will be installed and may not always be compatible with the version of odoo you want to run.

Regards

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

If you use a python venv (as I think):

The problem is a session that is bad terminated, ODOO restart the service but not use VENV context so python3 doesn't find correct dependencies

See the correct mode to launch if venv is used:

https://github.com/odoo/odoo/issues/33479#issuecomment-1207347677

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Better virtual environment to install requirements, it is safest and easiest 

Then after, you try restarting the IDE and run,

Cheers!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
ก.พ. 24
2345
2
มี.ค. 15
4449
1
มี.ค. 15
4987
0
เม.ย. 23
2274
0
ก.พ. 20
32