Debian 10에 Odoo 17을 설치하려고 합니다. 하지만 그것은 나에게 invalid syntax
.
File "/usr/lib/python3/dist-packages/odoo/tools/sql.py", line 65
def __new__(cls, code: (str | SQL) = "", /, *args, **kwargs):
^
SyntaxError: invalid syntax
File "/usr/lib/python3/dist-packages/odoo/tools/translate.py", line 1153
res_id: ImdInfo((tmp := module_xml_name.split('.', 1))[1], model_name, res_id, tmp[0])
^
SyntaxError: invalid syntax
dpkg: error processing package odoo (--configure):
installed odoo package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
odoo
E: Sub-process /usr/bin/dpkg returned an error code (1)
Python3.10을 설치하고 업데이트 대안을 수행했습니다.
$ sudo update-alternatives --config python3
There is only one alternative in link group python3 (providing /usr/bin/python3): /usr/local/bin/python3.10
Nothing to configure.
$ sudo update-alternatives --config python
There is only one alternative in link group python (providing /usr/bin/python): /usr/local/bin/python3.10
Nothing to configure.
$ python -V
Python 3.10.0
$ python3 -V
Python 3.10.0
무엇이 문제일까요?