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

DeprecationWarning from importlib.resources on Python 3.11 #192

Closed
adamchainz opened this issue May 11, 2022 · 2 comments · Fixed by #199
Closed

DeprecationWarning from importlib.resources on Python 3.11 #192

adamchainz opened this issue May 11, 2022 · 2 comments · Fixed by #199

Comments

@adamchainz
Copy link
Contributor

$ python3.11 -W all -c 'import certifi ; certifi.where()'
/.../python3.11/site-packages/certifi/core.py:36: DeprecationWarning: path is deprecated. Use files() instead. Refer to https://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
  _CACERT_CTX = get_path("certifi", "cacert.pem")
adamchainz added a commit to adamchainz/python-certifi that referenced this issue May 11, 2022
adamchainz added a commit to adamchainz/python-certifi that referenced this issue May 11, 2022
adamchainz added a commit to adamchainz/python-certifi that referenced this issue May 11, 2022
adamchainz added a commit to adamchainz/python-certifi that referenced this issue May 11, 2022
adamchainz added a commit to adamchainz/python-certifi that referenced this issue May 19, 2022
adamchainz added a commit to adamchainz/python-certifi that referenced this issue May 19, 2022
adamchainz added a commit to adamchainz/python-certifi that referenced this issue Jun 11, 2022
adamchainz added a commit to adamchainz/python-certifi that referenced this issue Jun 11, 2022
hugovk pushed a commit to hugovk/python-certifi that referenced this issue Jul 15, 2022
@alex alex closed this as completed in #199 Jul 15, 2022
alex pushed a commit that referenced this issue Jul 15, 2022
* Fix deprecation warning on Python 3.11

Fixes #192.

* Retain support for Python 3.6

Co-authored-by: Adam Turner <[email protected]>

* Bump actions versions

* Use same 'where' for 3.6 and 3.7-3.10

Co-authored-by: Adam Johnson <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
@Sagar-009
Copy link

plz give me solution....DeprecationWarning: path is deprecated. Use files() instead. Refer to ht
tps://importlib-resources.readthedocs.io/en/latest/using.html#migrating-from-legacy for migration advice.
_CACERT_CTX = get_path("certifi", "cacert.pem")

@hugovk
Copy link
Contributor

hugovk commented Jul 28, 2022

@Sagar-009 Please wait for a new release, in the meantime you can ignore it (for example and example).

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants