urdfpy icon indicating copy to clipboard operation
urdfpy copied to clipboard

networkx is out of date

Open walchko opened this issue 4 years ago • 3 comments

Can you update to the current library?

ERROR: urdfpy 0.0.18 has requirement networkx==2.2, but you'll have networkx 2.4 which is incompatible.

walchko avatar Nov 18 '19 23:11 walchko

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

sdahdah avatar Jan 21 '22 20:01 sdahdah

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 avatar Mar 24 '23 11:03 yorickdewid

@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

ZdenekM avatar Mar 24 '23 11:03 ZdenekM