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
Getting lots of deprecation warnings in Python 3.11 due to the deprecation of pkg_resources. Please modify code to use importlib_resources instead.
DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
from pkg_resources import resource_filename
possible gotcha: May need to use, e.g., str(importlib.resources.files('sedkit')/ 'data/sources.txt') in some cases for a quick fix, since I see this path is sometimes treated and manipulated as a string. importlib_resources.files returns a PosixPath object while resource_filename used to return a string
Getting lots of deprecation warnings in Python 3.11 due to the deprecation of
pkg_resources
. Please modify code to useimportlib_resources
instead.For example:
becomes
The text was updated successfully, but these errors were encountered: