You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the pmapper pip module or the locally installed build, the collections module fails to import. This is because the following two functions: Mapping, MutableMapping are now located in collections.abc. I have created a pull request to solve this issue.
To reproduce the issue currently have a system with python3.10 or higher.
pip3 install principalmapper
pmapper
Traceback (most recent call last):
File "/usr/local/bin/pmapper", line 5, in <module>
from principalmapper.__main__ import main
File "/usr/local/lib/python3.11/site-packages/principalmapper/__main__.py", line 24, in <module>
from principalmapper.analysis import cli as analysis_cli
File "/usr/local/lib/python3.11/site-packages/principalmapper/analysis/cli.py", line 20, in <module>
from principalmapper.analysis import find_risks
File "/usr/local/lib/python3.11/site-packages/principalmapper/analysis/find_risks.py", line 37, in <module>
from principalmapper.querying import query_interface
File "/usr/local/lib/python3.11/site-packages/principalmapper/querying/query_interface.py", line 26, in <module>
from principalmapper.querying.local_policy_simulation import *
File "/usr/local/lib/python3.11/site-packages/principalmapper/querying/local_policy_simulation.py", line 32, in <module>
from principalmapper.util.case_insensitive_dict import CaseInsensitiveDict
File "/usr/local/lib/python3.11/site-packages/principalmapper/util/case_insensitive_dict.py", line 34, in <module>
from collections import Mapping, MutableMapping, OrderedDict
ImportError: cannot import name 'Mapping' from 'collections' (/usr/local/Cellar/[email protected]/3.11.6/Frameworks/Python.framework/Versions/3.11/lib/python3.11/collections/__init__.py)
When running the pmapper pip module or the locally installed build, the collections module fails to import. This is because the following two functions:
Mapping, MutableMapping
are now located incollections.abc
. I have created a pull request to solve this issue.To reproduce the issue currently have a system with python3.10 or higher.
pip3 install principalmapper
pmapper
The following PR solves the issue: #139
The text was updated successfully, but these errors were encountered: