python-jose
python-jose copied to clipboard
Import Mapping Error
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
yeah i appreciate to fix cause it's make problems in odoo server.
This appears to have been fixed in https://github.com/mpdavis/python-jose/pull/316 - just needs to be included in a release.