Knowledge-Graph-Hub/kg-covid-19

Transform fails due to ImportError

Closed this issue · 0 comments

Describe the bug

The most recent (Jul 1) build encounters this error:

22:01:53  + python3.8 run.py transform
22:01:57  /var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/ensmallen/__init__.py:22: UserWarning: Ensmallen is compiled for the Intel Haswell architecture (2013).On the current machine, the flags '['avx2', 'bmi2', 'popcnt']' are required but '{'avx2', 'bmi2'}' are not available.
22:01:57  The library will use a slower but more compatible version (Intel Core2 2006).
22:01:57    warnings.warn(
22:01:57  Traceback (most recent call last):
22:01:57    File "run.py", line 7, in <module>
22:01:57      from kg_covid_19.make_holdouts import make_holdouts
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/kg_covid_19/make_holdouts.py", line 11, in <module>
22:01:57      from ensmallen import Graph
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/ensmallen/__init__.py", line 68, in <module>
22:01:57      from . import datasets
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/ensmallen/datasets/__init__.py", line 2, in <module>
22:01:57      from . import (kghub, kgobo, linqs, monarchinitiative, networkrepository,
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/ensmallen/datasets/kghub.py", line 3, in <module>
22:01:57      from .graph_retrieval import RetrievedGraph
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/ensmallen/datasets/graph_retrieval.py", line 6, in <module>
22:01:57      from bioregistry import normalize_curie, curie_from_iri
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/bioregistry/__init__.py", line 5, in <module>
22:01:57      from .collection_api import get_collection, get_context  # noqa:F401
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/bioregistry/collection_api.py", line 7, in <module>
22:01:57      from .resource_manager import manager
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/bioregistry/resource_manager.py", line 40, in <module>
22:01:57      from .schema import (
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/bioregistry/schema/__init__.py", line 5, in <module>
22:01:57      from .struct import (  # noqa:F401
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/bioregistry/schema/struct.py", line 35, in <module>
22:01:57      from bioregistry.utils import curie_to_str, deduplicate, removeprefix, removesuffix
22:01:57    File "/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/bioregistry/utils.py", line 25, in <module>
22:01:57      from pydantic.json import ENCODERS_BY_TYPE
22:01:57  ImportError: cannot import name 'ENCODERS_BY_TYPE' from 'pydantic.json' (/var/lib/jenkins/workspace/dge-graph-hub_kg-covid-19_master/gitrepo/venv/lib/python3.8/site-packages/pydantic/json.py)

This build installed bioregistry-0.6.108 but bioregistry latest is 0.9.64, so that's quite possibly the issue here.