See also mmatl/urdfpy#23 and some 'fork'
This fork still has some issue using np.float (which has been removed, and should be replaced by float. Here is a newer fork that applies the fixes: https://github.com/erwincoumans/urdfpy and it can be installed (or put in a requirements.txt file) using:
pip install git+https://github.com/erwincoumans/urdfpy