Skip to Content
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8377 Представления

Hi everyone, I installed version 17 but I'm having problems starting the service.

I already checked and I have Python 3.10 installed.


Feb 05 15:15:46 Odoo- systemd[1]: Started Odoo17.

Feb 05 15:15:46 Odoo- odoo-bin[1112]: Traceback (most recent call last):

Feb 05 15:15:46 Odoo- odoo-bin[1112]:   File "/opt/odoo17/odoo-bin", line 5, in

Feb 05 15:15:46 Odoo- odoo-bin[1112]:     import odoo

Feb 05 15:15:46 Odoo- odoo-bin[1112]:   File "/opt/odoo17/odoo/__init__.py", line 19, in

Feb 05 15:15:46 Odoo-a odoo-bin[1112]:     assert sys.version_info > (3, 10), "Outdated python version detected, Odoo requires Python >= 3.10 to run."

Feb 05 15:15:46 Odoo- odoo-bin[1112]: AssertionError: Outdated python version detected, Odoo requires Python >= 3.10 to run.

Feb 05 15:15:46 Odoo- systemd[1]: odoo17.service: Main process exited, code=exited, status=1/FAILURE

Feb 05 15:15:46 Odoo- systemd[1]: odoo17.service: Failed with result 'exit-code'.


@Odoo:~$ python3.10 --version

Python 3.10.13



Аватар
Отменить
Автор Лучший ответ

Thank you for the answer, I solve it with the commands below; 

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2
sudo update-alternatives --config python3
But I had other problems when I tried to start Odoo 17, despite having already installed the packages.
● odoo17.service - Odoo17
     Loaded: loaded (/etc/systemd/system/odoo17.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Mon 2024-02-05 19:56:32 UTC; 2s ago
       Docs:
    Process: 21515 ExecStart=/opt/odoo17/odoo-bin -c /etc/odoo17.conf (code=exited, status=1/FAILURE)
   Main PID: 21515 (code=exited, status=1/FAILURE)

Feb 05 19:56:32 ODOO systemd[1]: Started Odoo17.
Feb 05 19:56:32 ODOO odoo-bin[21515]: Traceback (most recent call last):
Feb 05 19:56:32 ODOO odoo-bin[21515]:   File "/opt/odoo17/odoo-bin", line 5, in
Feb 05 19:56:32 ODOO odoo-bin[21515]:     import odoo
Feb 05 19:56:32 ODOO odoo-bin[21515]:   File "/opt/odoo17/odoo/__init__.py", line 75, in
Feb 05 19:56:32 ODOO odoo-bin[21515]:     import PyPDF2
Feb 05 19:56:32 ODOO odoo-bin[21515]: ModuleNotFoundError: No module named 'PyPDF2'
Feb 05 19:56:32 ODOO systemd[1]: odoo17.service: Main process exited, code=exited, status=1/FAILURE
Feb 05 19:56:32 ODOO systemd[1]: odoo17.service: Failed with result 'exit-code'



Аватар
Отменить
Лучший ответ

Hi,

The Issues likely from your Virtual Environment likely using Python 3.8 instead of Python3.10.Here's how to solve this:
1) Verify PyCharm's Python Interpreter:
Go to File > Settings > Project: [Your Project Name] > Project Interpreter.
Check the currently selected interpreter. If it's Python 3.8

2) Switch  Python Interpreter in PyCharm:Since you installed Python 3.10Click the gear icon next to the current interpreter.
Select "Add Interpreter...".
Choose "System Interpreter" and browse to the path of your Python 3.10 installation. Click "OK".

3)Restart PyCharm and Retry Odoo:Close and reopen PyCharm to ensure the new interpreter is loaded.

Hope this helps

Аватар
Отменить

while installing odoo17 on aws server via putty
same issue faced in ubuntu server aws please look into it....

ubuntu@ip-172-26-11-98:/$ sudo systemctl status odoo17.service
● odoo17.service - Odoo17
Loaded: loaded (/etc/systemd/system/odoo17.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-04-15 16:32:25 IST; 12min ago
Docs: http://www.odoo.com
Process: 1214994 ExecStart=/opt/odoo17/odoo-bin -c /etc/odoo17.conf (code=exited, status=1/FAILURE)
Main PID: 1214994 (code=exited, status=1/FAILURE)

Apr 15 16:32:25 ip-172-26-11-98 systemd[1]: Started Odoo17.
Apr 15 16:32:25 ip-172-26-11-98 odoo-bin[1214994]: Traceback (most recent call last):
Apr 15 16:32:25 ip-172-26-11-98 odoo-bin[1214994]: File "/opt/odoo17/odoo-bin", line 5, in <module>
Apr 15 16:32:25 ip-172-26-11-98 odoo-bin[1214994]: import odoo
Apr 15 16:32:25 ip-172-26-11-98 odoo-bin[1214994]: File "/opt/odoo17/odoo/__init__.py", line 19, in <module>
Apr 15 16:32:25 ip-172-26-11-98 odoo-bin[1214994]: assert sys.version_info > (3, 10), "Outdated python version detected, Odoo requires Python >= 3.10 to run."
Apr 15 16:32:25 ip-172-26-11-98 odoo-bin[1214994]: AssertionError: Outdated python version detected, Odoo requires Python >= 3.10 to run.
Apr 15 16:32:25 ip-172-26-11-98 systemd[1]: odoo17.service: Main process exited, code=exited, status=1/FAILURE
Apr 15 16:32:25 ip-172-26-11-98 systemd[1]: odoo17.service: Failed with result 'exit-code'.
ubuntu@ip-172-26-11-98:/$

Related Posts Ответы Просмотры Активность
1
апр. 24
4117
4
мая 25
900
2
мая 25
3838
1
мар. 25
447
4
мар. 25
3081