Skip to content

Imports overlooked in librarypy refactor

This will probably come up in other methods too, as we test them for the changes in de8b2683 and similar commits.

$ cm-job-run ${JOBS_DIR}/job.yaml --interactive
[...snip...]
Traceback (most recent call last):
  File "/srv/lisis-prod/data/ale-shared/projects/cortextlib-test/test/lib/terms-extraction.git/terms_extractor.py", line 2978, in <module>
    import corpus_terms_indexer
  File "../corpus_terms_indexer/corpus_terms_indexer.py", line 12, in <module>
    from path import *
ImportError: No module named path

This is happening at https://gitlab.com/cortext/cortext-methods/corpus-terms-indexer/-/blob/main/corpus_terms_indexer.py?ref_type=heads#L14 because path there is actually a submodule of pylibrary/librarypy.

Edited by Ale Abdo