PMapper
PMapper copied to clipboard
Python 3.10 fails to run
Describe the bug
I believe this was supposed to be fixed in https://github.com/nccgroup/PMapper/pull/107 per https://github.com/nccgroup/PMapper/issues/106 but the issue still exists. When you attempt to run various commands, such as pmapper graph create it will raise an ImportError: cannot import name 'Mapping' from 'collections'.
I'm running Python 3.10.6 on MacOS Ventura 13.1. Changing principalmapper/util/case_insensitive_dict.py from
from collections import Mapping, MutableMapping, OrderedDict
to
from collections.abc import Mapping, MutableMapping
from collections import OrderedDict
Fixes it for me
To Reproduce
pip install principalmapper and then run pmapper graph create using python 3.10
Expected behavior
I expect it does not raise an ImportError.
This is fixed in https://github.com/nccgroup/PMapper/pull/122