Skip to content
This repository was archived by the owner on Mar 7, 2020. It is now read-only.
This repository was archived by the owner on Mar 7, 2020. It is now read-only.

[sample_flask.py] ImportError: Cannot import name from 'werkzeug' #21

@glarcina

Description

@glarcina

image

This occurred on Python 3.6 and 3.7.

Looks like flask_oauthlib has been deprecated and has changed to authlib so no point reporting this issue on that repo.

However, I resolved this error by including the specific modules in \Python3x\Lib\site-packages\flask_oauthlib\client.py:

from werkzeug.urls import url_quote, url_decode, url_encode
from werkzeug.http import parse_options_header
from werkzeug.utils import cached_property

This was the only roadblock I experienced using this example - hope it helps someone.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions