You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
DeprecationWarning: pkg_resources is deprecated as an API in utils/module.py #7559
The following warning has appeared in our pytest output:
===============================warningssummary===============================python/envs/venv_sct/lib/python3.9/site-packages/monai/utils/module.py:396/home/runner/work/spinalcordtoolbox/spinalcordtoolbox/python/envs/venv_sct/lib/python3.9/site-packages/monai/utils/module.py:396:"""DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html pkg = __import__(module) # top level module"""
MONAI version: 1.3.0
Skimming the MONAI source code, it seems like MONAI made this an optional import in #2482:
Activity
`setup.cfg`: Update `pkg_resources` exclusion to mention `monai`
rukundob451 commentedon Jul 15, 2024
@joshuacwnewton is this issue still available?
joshuacwnewton commentedon Jul 18, 2024
Yes, I think so, given that there have been no changes to the MONAI codebase to remove the usage of
pkg_resources. :)ken-ni commentedon Jul 19, 2024
I'm with CodeDay Labs 2024, my team is currently working on this.
Replaced package "pkg_resources" with "packaging" (Project-MONAI#7953)
Replaced package "pkg_resources" with "packaging" (Project-MONAI#7953)