Skip to content

Odoo 11+ incompatible with new Python Versions (3.8+) due to requirements.txt #41313

@Armitxes

Description

@Armitxes

Impacted versions: All new Python 3.5+ Versions (11, 12, 13, etc.)

Steps to reproduce: Install python 3.8.0 or higher

Current behavior:

python -m pip install -r /opt/odoo/12.0/base/odoo/community/requirements.txt
...
psycopg/psycopgmodule.c: In function ‘psyco_is_main_interp’:
psycopg/psycopgmodule.c:689:18: error: dereferencing pointer to incomplete type ‘PyInterpreterState’ {aka ‘struct _is’}
     while (interp->next)

Expected behavior: No issues at all, as all python versions >=3.5 are supported according to docs

Solution:
The issue is solved by psycopg2 (see psycopg/psycopg2#854 or psycopg/psycopg2@c929f20), but in odoos requirements.txt we have:

psycopg2==2.7.3.1; sys_platform != 'win32'
psycopg2==2.8.3; sys_platform == 'win32'

These versions are simply too old and need to be upgraded to atleast 2.8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    Confirmedthe bug was confirmed by testersPackagingAnything related to packaged Odoo installations (docker, .exe, .deb, etc)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions