Knowledge-Graph-Hub / kg-covid-19

An instance of KG Hub to produce a knowledge graph for COVID-19 response.
https://github.com/Knowledge-Graph-Hub/kg-covid-19/wiki
BSD 3-Clause "New" or "Revised" License
78 stars 26 forks source link

Builds fail due to dependency conflict #444

Closed caufieldjh closed 2 years ago

caufieldjh commented 2 years ago

Describe the bug

Upstream changes of some sort are leading to dependency issues:

INFO: pip is looking at multiple versions of click to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of docutils to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of rdflib to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of kgx to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of ensmallen-graph to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of kg-covid-19 to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install kg-covid-19, kg-covid-19==1.0.0 and kgx because these package versions have conflicting dependencies.

The conflict is caused by:
    kg-covid-19 1.0.0 depends on click
    kgx 1.5.1 depends on Click~=7.0
    linkml 1.0.0 depends on click~=7.0
    black 22.1.0 depends on click>=8.0.0

I encountered a similar issue in KG-IDG (https://github.com/Knowledge-Graph-Hub/kg-idg/commit/9107ede2b3d65339b50a10ea1d38b6ce6031de2f) and fixed it by pinning black to 'black==20.8b1' - will see if that helps here.

Version

1a5d0e88f66dffd68450c48c7916621153cff7b0