python-jose icon indicating copy to clipboard operation
python-jose copied to clipboard

Import Mapping Error

Open sazhyk opened this issue 2 years ago • 2 comments

Hi. Please change 6-th line in jwt.py form from collections import Mapping to

try:
    from collections.abc import Mapping
except ImportError:
    from collections import Mapping

And change 6-th line in jws.py from from collections import Mapping, Iterable to

try:
    from collections.abc import Mapping, Iterable
except ImportError:
    from collections import Mapping, Iterable

sazhyk avatar Dec 13 '22 13:12 sazhyk

yeah i appreciate to fix cause it's make problems in odoo server.

RaoufJabriSAMSA-IT avatar Mar 17 '23 15:03 RaoufJabriSAMSA-IT

This appears to have been fixed in https://github.com/mpdavis/python-jose/pull/316 - just needs to be included in a release.

jclerman avatar Sep 29 '23 23:09 jclerman