Skip to content

Python 3.10 fails to run #130

Open
Open
@JonZeolla

Description

@JonZeolla

Describe the bug
I believe this was supposed to be fixed in #107 per #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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions