Open walchko opened 4 years ago
I am also having issues with NetworkX 2.2 on Python 3.9 and Python 3.10. I force-updated to NetworkX 2.6.3 and it's working fine so far
Not sure it this is related, but networkx throws an error: ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
@yorickdewid These are my workarounds for Python 3.10.
import collections
import fractions
import math
fractions.gcd = math.gcd # type: ignore
from collections.abc import Iterable, Mapping, Set # noqa:E402
collections.Mapping = Mapping # type: ignore
collections.Set = Set # type: ignore
collections.Iterable = Iterable # type: ignore
from urdfpy import URDF # noqa
Can you update to the current library?