Skip to content

onboard_project fails during the extract step if the project's Biblical Terms refer to another project that isn't available on the shared drive #1082

Description

@mmartin9684-sil

If a project uses the 'OtherProject' option for their Biblical Terms list, and the "other project" is not available on the shared drive, the extract step fails.

The TDKT project's Settings.xml file has this value for the Biblical Terms list:

<BiblicalTermsListSetting>OtherProject:TDKT:Hughes(Id)BiblicalTerms.xml</BiblicalTermsListSetting>

The onboard_project script errors during the extract step with this stack trace:

...
2026-05-29 11:28:29,398 - silnlp.common.extract_corpora - INFO - The number of completed verses is 10828 (out of the expected 41899).
Traceback (most recent call last):
  File "C:\Users\Michael Martin\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\Michael Martin\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\Michael Martin\PycharmProjects\silnlp\silnlp\common\onboard_project.py", line 862, in <module>
    main()
  File "C:\Users\Michael Martin\PycharmProjects\silnlp\silnlp\common\onboard_project.py", line 858, in main
    onboarding_request.process_onboarding_request()
  File "C:\Users\Michael Martin\PycharmProjects\silnlp\silnlp\common\onboard_project.py", line 415, in process_onboarding_request
    self.onboard_project(project)
  File "C:\Users\Michael Martin\PycharmProjects\silnlp\silnlp\common\onboard_project.py", line 526, in onboard_project
    onboarding_project.extract_corpora_wrapper(self.config.get("extract_corpora", {}))
  File "C:\Users\Michael Martin\PycharmProjects\silnlp\silnlp\common\onboard_project.py", line 62, in extract_corpora_wrapper
    extract_path = extract_corpora(
  File "C:\Users\Michael Martin\PycharmProjects\silnlp\silnlp\common\extract_corpora.py", line 113, in extract_corpora
    terms_count = extract_term_renderings(
  File "C:\Users\Michael Martin\PycharmProjects\silnlp\silnlp\common\paratext.py", line 294, in extract_term_renderings
    terms_metadata_path.open("r", encoding="utf-8", newline="\n") as terms_metadata_file,
  File "C:\Users\Michael Martin\AppData\Local\Programs\Python\Python310\lib\pathlib.py", line 1119, in open
    return self._accessor.open(self, mode, buffering, encoding, errors,
FileNotFoundError: [Errno 2] No such file or directory: 'M:\\MT\\terms\\OtherProject-metadata.txt'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingonboardingServal onboardingpipeline 2: extractIssue related to extracting parallel corpora

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions