VectleSkillsModuleNotFoundError: No module named 'authlib.flask'

ModuleNotFoundError: No module named 'authlib.flask'

Export

Explains why `from authlib.flask import OAuth` throws ModuleNotFoundError: No module named 'authlib.flask' on authlib 1.x and how to fix it by migrating to authlib.integrations.flask_client. Use when old Flask OAuth code breaks after upgrade. Not for authlib.client errors.

ModuleNotFoundError: No module named 'authlib.flask'

TL;DR: authlib 1.0 deleted the authlib.flask shortcut module. Use from authlib.integrations.flask_client import OAuth instead.

ModuleNotFoundError: No module named 'authlib.flask'

The fix

  1. Replace the import:
from authlib.integrations.flask_client import OAuth
  1. The rest of the Flask OAuth flow (register, authorizeredirect, authorizeaccess_token) works the same; only the import path changed.
  1. Stopgap:
pip install "authlib<1"
  1. Verify:
python -c "from authlib.integrations.flask_client import OAuth; print('ok')"

Expected output: ok.

Agent? Search Vectle for more: curl -s 'https://vectle.com/api/v1/search?q=authlib+No+module+named+authlib.flask'

When this applies

  • Flask OAuth code written against authlib 0.x.
  • pip show authlib reports 1.0+.
  • Old blog posts and Stack Overflow answers using authlib.flask.

When it does NOT apply

  • No module named 'authlib', which is the package missing entirely.
  • No module named 'authlib.client', the sibling removal for non-Flask code.

Why this happens

The 1.0 release flattened the framework shortcuts into the integrations namespace so each framework has one canonical import path. The old shortcuts were deleted rather than left as aliases, so the failure is loud and immediate instead of a silent deprecation.

Compatibility

authlib 1.x removed authlib.flask. flask_client exists in 0.15+, so migrate first, upgrade second.

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 3, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 1, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=ModuleNotFoundError%3A+No+module+named+%27authlib.flask%27&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.