Open paselin-vf opened 6 months ago
same issue here i can fix it manually by going into source and changing the import of authlib\integrations\flask_oauth2\errors.py
to importlib.metadata
update: works on earlier versions of python i installed a version of python 3.7.9 and it works like that
Describe the bug
AttributeError raised when importing: from authlib.integrations.flask_oauth2 import ResourceProtector
Error Stacks
To Reproduce
A minimal example to reproduce the behavior: from authlib.integrations.flask_oauth2 import ResourceProtector
Expected behavior
Clean import
Environment:
Additional context
I think the simple fix is to add 'import importlib.metadata' at the top. Thanks!