Command 'rosrun tf view_frames' does not work

user:~/catkin_ws/src$ rosrun tf view_frames

gives the following error:

Listening to /tf for 5.0 secondsDone Listeningb’dot - graphviz version 2.43.0 (0)\n’Traceback (most recent call last): File “/opt/ros/noetic/lib/tf/view_frames”, line 119, in generate(dot_graph) File “/opt/ros/noetic/lib/tf/view_frames”, line 89, in generate
m =
TypeError: cannot use a string pattern on a bytes-like object

Hope you have a great day.
Maybe this will help you out

Thank you and have a nice day