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)?
Originally posted by Kri on ROS Answers with karma: 41 on 2018-02-28
Post score: 0
Original comments
Comment by gvdhoorn on 2018-02-28:
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:
Please DO NOT post a screenshot of the terminal or source file.
Not clear enough?
Comment by gvdhoorn on 2018-02-28:
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.
Comment by Kri on 2018-03-01:
@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.
Comment by Kri on 2018-03-01:
@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?
Comment by gvdhoorn on 2018-03-01:\
I didn't see the guidelines before
they were shown to you almost fullscreen when you created your post.
my issue isn't of that sort that would require copying the error to find out what is wrong
I'd still like you to replace the image with the copy-pasted text of the error.
Comment by Kri on 2018-03-01:
@gvdhoorn I have edited the question. Is this done right?
Comment by gvdhoorn on 2018-03-01:
That's great. Thanks.
As to your problem: what is the output of python --version
?
Comment by simff on 2018-03-01:
An alternative way to view tf frames is: rosrun rqt_tf_tree rqt_tf_tree. This requires to have this into your workspace :)
Comment by gvdhoorn on 2018-03-01:
That would be a possible work-around yes, but it might be better to get to the bottom of this so we can make sure it's not an issue with the packages.