indigo-dc / flaat

FLAsk with Access Tokens - FLAAT
MIT License
11 stars 6 forks source link

AttributeError: module 'jwt' has no attribute 'PyJWKClient' #62

Closed marcvs closed 2 years ago

marcvs commented 2 years ago

The jwt module has moved the PyJWKClient internally. This triggers the AttributeError

marcvs commented 2 years ago

This is actually due to an incompatibility of python-jwt vs PyJWT, both of which install similar files into the python/site-packages/jwt folder.

marcvs commented 2 years ago

What a mess! installing python-jwt via pip install python-jwt works fine, since they renamed the package Installing the old version of python-jwt via pip install jwt will create a mess.

The way to fix this is:

pip uninstall jwt
pip uninstall pyjwt
pip install pyjwt
marcvs commented 2 years ago

Closing this, as there's no way to express conflicts in requirements.txt (WHY!!)