Skip to content

Conversation

@penguinpee
Copy link
Contributor

That method has been deprecated in Python 3.12 and will be removed from
Python 3.14. Replace it with a direct call to
importlib.util.find_spec(), which pkgutil.find_loader() was wrapping
around.

That method has been deprecated in Python 3.12 and will be removed from
Python 3.14. Replace it with a direct call to
`importlib.util.find_spec()`, which `pkgutil.find_loader()` was wrapping
around.
@penguinpee
Copy link
Contributor Author

For the removal changelog entry see:

https://docs.python.org/dev/whatsnew/3.14.html#pkgutil

@davisking
Copy link
Owner

Thanks for the update :D

@davisking davisking merged commit 8454765 into davisking:master Jan 19, 2025
2 checks passed
davisking pushed a commit to Cydral/Dlib-working that referenced this pull request Jan 19, 2025
That method has been deprecated in Python 3.12 and will be removed from
Python 3.14. Replace it with a direct call to
`importlib.util.find_spec()`, which `pkgutil.find_loader()` was wrapping
around.
davisking added a commit that referenced this pull request Jan 19, 2025
… network (#3041)

* Add a first example of how to use the new Dlib layers to build a Transformer-type network.

* Replace deprecated pkgutil.find_loader() (#3043)

That method has been deprecated in Python 3.12 and will be removed from
Python 3.14. Replace it with a direct call to
`importlib.util.find_spec()`, which `pkgutil.find_loader()` was wrapping
around.

* simplify code a little

---------

Co-authored-by: Sandro <shfu29r4bu@liamekaens.com>
Co-authored-by: Davis King <davis@dlib.net>
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

Successfully merging this pull request may close these issues.

2 participants