-
Notifications
You must be signed in to change notification settings - Fork 28.8k
Closed
Labels
Confirmedthe bug was confirmed by testersthe bug was confirmed by testersPackagingAnything related to packaged Odoo installations (docker, .exe, .deb, etc)Anything related to packaged Odoo installations (docker, .exe, .deb, etc)
Description
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
Labels
Confirmedthe bug was confirmed by testersthe bug was confirmed by testersPackagingAnything related to packaged Odoo installations (docker, .exe, .deb, etc)Anything related to packaged Odoo installations (docker, .exe, .deb, etc)