Skip to content

ImportError: cannot import name 'MutableSequence' from 'collections' #264

@Tokarzewski

Description

@Tokarzewski

In Python 3.11.3 I receive the following error
....
File "C:\GitHub\geomeppy\venv\Lib\site-packages\geomeppy\geom\polygons.py", line 2, in
from collections import MutableSequence
ImportError: cannot import name 'MutableSequence' from 'collections' (C:\Users\thinkpad\AppData\Local\Programs\Python\Python311\Lib\collections_init_.py)

In polygons.py, the line
from collections import MutableSequence
had to be changed to
from collections**.abc** import MutableSequence

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions