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

BUG: Replace deprecated load_module #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JoostJM
Copy link

@JoostJM JoostJM commented Jan 28, 2025

Fixes:

Fixes #202 by replacing the load_module() function with exec_module(). This follows the solution proposed on StackOverflow.

In importlib's `SourceFileLoader`, the `load_module` function has been deprecated since python 3.6 and scheduled to be removed.
Following the suggestions from https://stackoverflow.com/questions/19009932/import-arbitrary-python-source-file-python-3-3, replace this function with the `exec_module` function.
JoostJM added a commit to JoostJM/pyradiomics that referenced this pull request Jan 28, 2025
- Update the matrices baseline numpy arrays to newer version. Values are unchanged, matrices were simply loaded and saved again using `arr = numpy.load(<path>); numpy.save(<path>, arr);`.
- Ignore specific deprecation warning related to a deprecated function being used in PyKwalify. See also Grokzen/pykwalify#202 and Grokzen/pykwalify#203.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PyKwalify uses deprecated load_module function in core._load_extensions()
1 participant