The latest merge to xacro -- here adds a call to re.sub which attempts to sanitize the input file path render inside an XML file. Unfortunately, because load_xacro provides a pathlib.Path the re.sub call crashes.
I think this could be fixed by changing the call to
file = xacro.process_file(str(file_path), mappings=mappings)
Unclear to me whether this explicit conversion to string should happen in this module or in xacro. I'm curious to get the maintainers`s opinions.
Happy to submit a pull request if this is the direction you all think this should go.