-
Notifications
You must be signed in to change notification settings - Fork 21
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
Replace pkg_resources with importlib_metadata #51
base: master
Are you sure you want to change the base?
Conversation
Use importlib metadata
I'll have a look at this tomorrow, thanks :D |
I'm getting an error that might be fixed by this PR:
have you guys seen that before? and do you know if there's a workaround? |
Hi @sstrong99 , sorry for replying late on this. The problem you are having is not caused by NCLS, but by a bug in python: https://bugs.python.org/issue44061 . I think making a fresh and new python environment might solve your problem. I think this PR might also solve the problem (but somewhat as a side effect). |
Same issues for python 3.12. |
Hello, Thanks for the great library. I am wondering if this PR will be merged in the near future? Thanks. |
Hi,
first of all, thanks for this great library. I just ran into this warning all the time about pkg_resources being deprecated when in favour of importlib.metadata.
In this pull request I replaces pas_resources with importlib_metadata: https://docs.python.org/3/library/importlib.metadata.html , this is a back port for Importlib.metadata which is only in the standard library since python 3.8. By explicitly using importlib_metadata, older versions of python 3 are also still supported by NCLS. An alternative would be for NCLS to stop supporting python versions older than 3.8 and use the importlib.metadata from the standard library.