Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on extract_corpora when terms are pulled from another project #598

Open
bhartmoore opened this issue Nov 18, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@bhartmoore
Copy link
Collaborator

The project LEDU8 has a seemingly unusual setting for key terms, but one that is apparently allowed by Paratext. It causes extract_corpora.py to inappropriately search for a file that doesn't exist, and then error. It's likely not possible to extract terms in this case, but it would be good to check for this situation and give a warning rather than to fail looking for the inappropriately constructed filename OtherProject-metadata.txt. This is low-priority because (1) it's an infrequent occurrence and (2) the project text still extracts correctly; we just don't get the terms.

Settings file terms configuration:
<BiblicalTermsListSetting>OtherProject:LEDU8:Hughes(Id)BiblicalTerms.xml</BiblicalTermsListSetting>

Error thrown by extract_corpora.py:
OSError: unable to access bucket: 'silnlp' key: 'MT/terms/OtherProject-metadata.txt' version: None error: An error occurred (NoSuchKey) when calling the GetObject operation: The specified key does not exist.

@bhartmoore bhartmoore added the enhancement New feature or request label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant