The actual minimal python that runs Odoo 19 is 3.10.12 #14790
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Odoo 19 requires minimal of python 3.10.12 because it uses a variable named _WHATWG_C0_CONTROL_OR_SPACE that was introduced in version 3.10.12. Please check release notes, more specifically Pull request gh-102153. Running Odoo 19 on python 3.10.4 which is the base not updated version of python on Ubuntu 22.04 gives the following error:
from urllib.parse import WHATWGC0_CONTROL_OR_SPACE ImportError: cannot import name '_WHATWG_C0_CONTROL_OR_SPACE' from 'urllib.parse' (/usr/lib/python3.10/urllib/parse.py)