mmatl / urdfpy

Python parser for URDFs
http://urdfpy.readthedocs.io/
MIT License
246 stars 98 forks source link

networkx is out of date #4

Open walchko opened 4 years ago

walchko commented 4 years ago

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.
sdahdah commented 2 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

yorickdewid commented 1 year ago

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)

ZdenekM commented 1 year ago

@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