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
何が問題なのでしょうか?