Knowledge-Graph-Hub / kg-phenio

A Graph for experiments doing ML on ontologies.
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

Transforms fail due to missing `koza.cli_runner` #145

Closed caufieldjh closed 1 month ago

caufieldjh commented 1 month ago

Most recent build fails with:

08:42:19  + python3.9 run.py transform
08:42:22  Traceback (most recent call last):
08:42:22    File "/var/lib/jenkins/workspace/ledge-graph-hub_kg-phenio_master/gitrepo/run.py", line 5, in <module>
08:42:22      from kg_phenio import download as kg_download
08:42:22    File "/var/lib/jenkins/workspace/ledge-graph-hub_kg-phenio_master/gitrepo/kg_phenio/__init__.py", line 3, in <module>
08:42:22      from .transform import transform
08:42:22    File "/var/lib/jenkins/workspace/ledge-graph-hub_kg-phenio_master/gitrepo/kg_phenio/transform.py", line 5, in <module>
08:42:22      from kg_phenio.transform_utils.phenio.phenio_transform import PhenioTransform
08:42:22    File "/var/lib/jenkins/workspace/ledge-graph-hub_kg-phenio_master/gitrepo/kg_phenio/transform_utils/phenio/__init__.py", line 2, in <module>
08:42:22      from .phenio_transform import PhenioTransform
08:42:22    File "/var/lib/jenkins/workspace/ledge-graph-hub_kg-phenio_master/gitrepo/kg_phenio/transform_utils/phenio/phenio_transform.py", line 9, in <module>
08:42:22      from koza.cli_runner import transform_source
08:42:22  ModuleNotFoundError: No module named 'koza.cli_runner'

This can also be called as from koza.cli_runner import get_koza_app...but koza.cli_runner should exist. Did it get installed? Yes, pip says it installed koza-0.6.0. Aha! The module got renamed: https://github.com/monarch-initiative/koza/commit/e2fb994971d707c82e6d3161cd7d983da1acadcd So now it needs to be from koza.cli_utils import transform_source