PMapper icon indicating copy to clipboard operation
PMapper copied to clipboard

Python 3.10 fails to run

Open JonZeolla opened this issue 2 years ago • 1 comments

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.

JonZeolla avatar Jan 17 '23 22:01 JonZeolla

This is fixed in https://github.com/nccgroup/PMapper/pull/122

JonZeolla avatar Jan 17 '23 22:01 JonZeolla