You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There exists a version conflict in the dependencies of GPL. GPL requires easy-elasticsearch>=0.0.7 (0.0.7 is the latest version of easy-elasticsearch). easy-elasticsearch requires elasticsearch==7.12.1 but beir, which GPL depends on at any version, requires elasticsearch==7.9.1. Thus, a dependency solver (like poetry) will install beir==0.0.4 when installing gpl since beir==0.0.4 does not depend on elasticsearch at all. However, GPL is not compatible with beir==0.0.4. So, the latest versions of GPL and BEIR are not compatible.
However, running pip install gpl will work because easy-elasticsearch==0.0.7 presumably works with elasticsearch==7.9.1. Installing with pip will warn that easy-elasticsearch 0.0.7 requires elasticsearch==7.12.1, but you have elasticsearch 7.9.1 which is incompatible, but training still works correctly.
The easiest solution is to change easy-elasticsearch or beir's dependencies to allow elasticsearch between 7.9.1 and 7.12.1. I don't think anything can be done in gpl's setup.py file because it has two dependencies that each are pinning a different version of elasticsearch. A minimum version of beir could be set in gpl's setup.py to prevent an incompatible version from being installed via a package manager with a dependency solver.
The text was updated successfully, but these errors were encountered:
HHousen
changed the title
Version conflict due to easy-elasticsearch and elasticsearch
Version conflict due to easy-elasticsearch and latest beirJun 14, 2022
There exists a version conflict in the dependencies of GPL. GPL requires
easy-elasticsearch>=0.0.7
(0.0.7
is the latest version ofeasy-elasticsearch
).easy-elasticsearch
requireselasticsearch==7.12.1
but beir, which GPL depends on at any version, requireselasticsearch==7.9.1
. Thus, a dependency solver (like poetry) will installbeir==0.0.4
when installinggpl
sincebeir==0.0.4
does not depend onelasticsearch
at all. However, GPL is not compatible withbeir==0.0.4
. So, the latest versions of GPL and BEIR are not compatible.However, running
pip install gpl
will work becauseeasy-elasticsearch==0.0.7
presumably works withelasticsearch==7.9.1
. Installing with pip will warn thateasy-elasticsearch 0.0.7 requires elasticsearch==7.12.1, but you have elasticsearch 7.9.1 which is incompatible
, but training still works correctly.The easiest solution is to change
easy-elasticsearch
orbeir
's dependencies to allowelasticsearch
between7.9.1
and7.12.1
. I don't think anything can be done ingpl
's setup.py file because it has two dependencies that each are pinning a different version ofelasticsearch
. A minimum version ofbeir
could be set ingpl
's setup.py to prevent an incompatible version from being installed via a package manager with a dependency solver.The text was updated successfully, but these errors were encountered: