server-backend icon indicating copy to clipboard operation
server-backend copied to clipboard

[16.0] base_external_dbsource_mssql requirements break odoo core compatibily

Open flotho opened this issue 2 years ago • 10 comments

Module

base_external_dbsource_mssql

sqlalchemy in requirements file

Describe the bug

the requirement cause incompatibilty issues with greenlet

/home/odoo_16/.local/lib/python3.9/site-packages (from -r /home/odoo_16/additionnal_repositories/OCA-server-backend/requirements.txt (line 3)) (2.0.15)\nRequirement already satisfied: typing-extensions>=4.2.0 in /home/odoo_16/.local/lib/python3.9/site-packages (from sqlalchemy->-r /home/odoo_16/additionnal_repositories/OCA-server-backend/requirements.txt (line 3)) (4.5.0)\nCollecting greenlet!=0.4.17 (from sqlalchemy->-r /home/odoo_16/additionnal_repositories/OCA-server-backend/requirements.txt (line 3))\n  **Downloading greenlet-2.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl** (610 kB)\n

when greenlet 2.0.2 is installed we have issues like this : https://github.com/gevent/gevent/issues/1685

if I desinstall sqlalchemy and force the installation of the odoo requirements everything works fine

To Reproduce

install requirement on a v16 with python 3.9

Expected behavior

no issue while running Odoo

Additional context

rocky linux 9

flotho avatar Jun 12 '23 11:06 flotho

ping @anddago78

flotho avatar Jun 12 '23 11:06 flotho

hum... looks like it happens for python <= 3.9

flotho avatar Jun 13 '23 07:06 flotho

Hi @flotho , Any news for this bug?

BT-aleonard avatar Jun 30 '23 06:06 BT-aleonard

yes, I confirm that the requirements has to be adapted regarding the python version

flotho avatar Jun 30 '23 16:06 flotho

this combination of releases works great on v16 :

  • sqlalchemy==1.3.24
  • greenlet==0.4.17 ; python_version > '3.7' and python_version <= '3.9'
  • greenlet==1.1.2 ; python_version > '3.9' and python_version <= '3.10' # (Jammy)

flotho avatar Jun 30 '23 16:06 flotho

Thank you very much, did you make a PR to fix this?

BT-aleonard avatar Jul 03 '23 06:07 BT-aleonard

not at all because I'm not sure how to declare such pattern in manifest files. And if I'm correct requirements are generated by the manifest. If you lead me on this I can do the PR with pleasure.

flotho avatar Jul 03 '23 12:07 flotho

You can create a PR to create a requirements file in the repo.

BT-aleonard avatar Jul 07 '23 07:07 BT-aleonard

You can create a PR to create a requirements file in the repo.

Hi @BT-aleonard , I disagree with your proposal. Requirements.txt are generated by the dependencies put in the manifest files. And I' m not sure of the pattern . But anyway I can make a PR to modify manifests ;-)

flotho avatar Jul 10 '23 11:07 flotho

hi @BT-aleonard , finally it was easy, feel free to review the PR Regards

flotho avatar Dec 18 '23 21:12 flotho

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

github-actions[bot] avatar Jun 16 '24 12:06 github-actions[bot]