Odoo 18:
Traceback (most recent call last):
File "/home/bodedra/odoo18/demo/src/odoo/./odoo-bin", line 5, in <module>
import odoo
File "/home/bodedra/odoo18/demo/src/odoo/odoo/__init__.py", line 49, in <module>
_monkeypatches.patch_all()
File "/home/bodedra/odoo18/demo/src/odoo/odoo/_monkeypatches/__init__.py", line 28, in patch_all
from .lxml import patch_lxml
File "/home/bodedra/odoo18/demo/src/odoo/odoo/_monkeypatches/lxml.py", line 6, in <module>
from odoo.tools import parse_version
File "/home/bodedra/odoo18/demo/src/odoo/odoo/tools/__init__.py", line 10, in <module>
from . import template_inheritance
File "/home/bodedra/odoo18/demo/src/odoo/odoo/tools/template_inheritance.py", line 9, in <module>
from odoo.tools.translate import LazyTranslate
File "/home/bodedra/odoo18/demo/src/odoo/odoo/tools/translate.py", line 35, in <module>
from psycopg2.extras import Json
ModuleNotFoundError: No module named 'psycopg2'
Resolved with
pip3.12 install psycopg2-binary