-
Notifications
You must be signed in to change notification settings - Fork 8
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
Transformation function raises FileNotFoundError
regarding data YAML file
#1310
Comments
FileNotFoundError
regarding data YAML file
Thanks @eecavanna @brynnz22 would be it be OK for me to change the assignee to you? |
The underlying issue is still present in Python docs about |
apologies for closing |
For future reference: I found this code in the nmdc-schema/nmdc_schema/nmdc_data.py Line 28 in 387ed3b
Docs: https://docs.python.org/3/library/pkgutil.html#pkgutil.get_data |
Summary
While running a transformation function named
fix_award_dois
from within a Python notebook thatimport
s the containing Python class from thenmdc-schema
Python package on PyPI, Python raised aFileNotFoundError
exception because it couldn't find a file at the path specified.Screenshot
Related snippets
Invocation of
load_yaml_file
function:nmdc-schema/nmdc_schema/migration_recursion.py
Lines 332 to 333 in 918056b
Definition of
load_yaml_file
function:nmdc-schema/nmdc_schema/migration_recursion.py
Lines 90 to 94 in 918056b
Proposal
Reference the file in a way that works regardless of where the function is being invoked.
Suggestion (untested):
Docs:
The text was updated successfully, but these errors were encountered: