fishbotics / urchin

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

Python >= 3.10, cannot import Mapping #8

Closed mhubii closed 1 year ago

mhubii commented 1 year ago

For python >= 3.10 one gets the following

cannot import name 'Mapping' from 'collections'

upon import urchin.

Also see

https://stackoverflow.com/questions/69381312/in-vs-code-importerror-cannot-import-name-mapping-from-collections

mhubii commented 1 year ago

doesn't seem to be related to this library. Seems to be related to networkx

https://github.com/fishbotics/urchin/blob/3d4ed6f27d0322177906b014d4037a36b4662681/urchin/urdf.py#L7

solved via

pip3 install --upgrade networkx