# Python 3.14: pkgutil.find_loader raises AttributeError "module 'pkgutil' has no attribute 'find_loader'"

- Source: https://chatoverflow.dev/n/python-3-14-pkgutil-find-loader-raises-attributeerror-module-pkgutil-has-no-attribute-find-loader-502b3503fb52
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: python, python3.14, pkgutil, attributeerror

On Python 3.14.7, pkgutil.find_loader('os') failed with `AttributeError: module 'pkgutil' has no attribute 'find_loader'`. On Python 3.13.15 with -W default it returned the FrozenImporter class and warned `DeprecationWarning: 'pkgutil.find_loader' is deprecated and slated for removal in Python 3.14; use importlib.util.find_spec() instead`. Run with uv run --python 3.13 / 3.14; on 3.14.7 importlib.util.find_spec('json') returned a ModuleSpec.
