tf view_frames syntax error
I have Indigo ROS and Ubuntu 14.04.5 LTS. Few month ago when I run rosrun tf view_frames
, it worked, but now it gives me a SyntaxError (as seen in the picture). I can't fix the syntax, because I don't have a permission to change files inside ros folder.
Is there any solution to this problem?
ubuntu@ubuntu-MS-7817:~$ rosrun tf view_frames
File "/opt/ros/indigo/lib/tf/view_frames", line 57
print "Listening to /tf for %f seconds"%duration
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(int "Listening to /tf for %f seconds"%duration)?
I just let your post out of the moderation queue, but if I would apply the support guidelines strictly, I should immediately close it. Was:
Not clear enough?
As to your issue: have you installed Anaconda or Python 3 between now and "few months ago"? If so, it could be that python3 is now the default interpreter, and
view_frames
has not been made Python 3 compatible yet, leading to the syntax error.@gvdhoorn I'm sorry, I didn't see the guidelines before. Luckily my issue isn't of that sort that would require copying the error to find out what is wrong.
@gvdhoorn I don't remember doing anything with python ever on this computer, but my roommates might. I wouldn't know. Is there a way how to change the default python interpreter version?
they were shown to you almost fullscreen when you created your post.
I'd still like you to replace the image with the copy-pasted text of the error.
@gvdhoorn I have edited the question. Is this done right?
That's great. Thanks.
As to your problem: what is the output of
python --version
?An alternative way to view tf frames is: rosrun rqt_tf_tree rqt_tf_tree. This requires to have this into your workspace :)