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

Remove 1 warning - DeprecationWarning: pkg_resources is deprecated as an API #143

Open
bobleesj opened this issue Oct 25, 2024 · 4 comments

Comments

@bobleesj
Copy link
Contributor

bobleesj commented Oct 25, 2024

Problem

===================================================== warnings summary ======================================================
../../../miniconda3/envs/diffpy_utils_env/lib/python3.13/site-packages/diffpy.utils-3.0.0-py3.7.egg/diffpy/utils/version.py:29
  /Users/macbook/miniconda3/envs/diffpy_utils_env/lib/python3.13/site-packages/diffpy.utils-3.0.0-py3.7.egg/diffpy/utils/version.py:29: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    from pkg_resources import resource_filename

Proposed solution

See https://setuptools.pypa.io/en/latest/pkg_resources.html as instructed

@bobleesj
Copy link
Contributor Author

Similar to #144, this is coming from diffpy.utils

@sbillinge
Copy link
Contributor

Odd, that should have been fixed by cookiecutter I think? Ok o fix manually but nice to understand why it want caught in the cut....

@bobleesj
Copy link
Contributor Author

@sbillinge somehow my local mac installed an older version of diffpy.utils with python 3.13

I think installation issues will be removed once we release diffpy.utils supporting 3.13

@bobleesj
Copy link
Contributor Author

I will close this issue once we have a brand new diffpy.utils

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

No branches or pull requests

2 participants