Hi guys, I'm developing on Ubuntu 20 with ROS Noetic full desktop completely updated but I'm struggling with an error I get if I try to run (but it also happens if I run rqt
and later I use the TF plugin)
rosrun rqt_tf_tree rqt_tf_tree
The error is:
"dot" with args ['-Tdot', '/tmp/tmp93jif2d2'] returned code: 1
stdout, stderr:
b''
b"Error: /tmp/tmp93jif2d2: syntax error in line 6 near ':'\n"
PluginHandlerDirect._restore_settings() plugin "rqt_tf_tree/RosTfTree#0" raised an exception:
Traceback (most recent call last):
File "/opt/ros/noetic/lib/python3/dist-packages/qt_gui/plugin_handler_direct.py", line 121, in _restore_settings
self._plugin.restore_settings(plugin_settings_plugin, instance_settings_plugin)
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_tf_tree/tf_tree.py", line 131, in restore_settings
self._refresh_tf_graph()
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_tf_tree/tf_tree.py", line 143, in _refresh_tf_graph
self._update_graph_view(self._generate_dotcode())
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_tf_tree/tf_tree.py", line 150, in _generate_dotcode
return self.dotcode_generator.generate_dotcode(dotcode_factory=self.dotcode_factory,
File "/opt/ros/noetic/lib/python3/dist-packages/rqt_tf_tree/dotcode_tf.py", line 98, in generate_dotcode
self.dotcode = self.dotcode_factory.create_dot(self.graph)
File "/opt/ros/noetic/lib/python3/dist-packages/qt_dotgraph/pydotfactory.py", line 175, in create_dot
dot = graph.create_dot()
File "/usr/lib/python3/dist-packages/pydot.py", line 1726, in new_method
return self.create(
File "/usr/lib/python3/dist-packages/pydot.py", line 1953, in create
assert process.returncode == 0, process.returncode
AssertionError: 1
I tried to find something useful on the ROS Answer and on the web, I've seen some open ticket about error related to mine, but I've found just a couple of suggestions that for some people worked, for ex run on a terminal
sudo dot -c
or uninstall pyyaml
which it's not possible to do, I get
Found existing installation: PyYAML 5.3.1
Not uninstalling pyyaml at /usr/lib/python3/dist-packages, outside environment /usr
Can't uninstall 'PyYAML'. No files were found to uninstall.
No one worked for me. Can you help me? I really need to debug the TF tree in a proper way for a project
Thank you
Originally posted by dottant on ROS Answers with karma: 185 on 2022-06-28
Post score: 0
Original comments
Comment by Mike Scheutzow on 2022-06-28:
Is your /usr/bin/python
file a symlink to python2 or python3?
Comment by dottant on 2022-06-29:
I have a link to python2 as shared library and a link to python3 as executable
Comment by Mike Scheutzow on 2022-06-29:
You didn't answer my question. This is what I get on my noetic install that runs that app just fine:
$ python --version
Python 3.8.10
Comment by dottant on 2022-06-29:
Yes, sorry, but for me a symlink is a file which points to another file and in that folder I have the ones i wrote about. Anyway I got the same
python3 --version
Python 3.8.10
If I try your same command line I get
Command 'python' not found, did you mean:
command 'python3' from deb python3
command 'python' from deb python-is-python3
Comment by Mike Scheutzow on 2022-06-29:
I would advise having apt
package python-is-python3
installed. Does that fix your issue?
Comment by dottant on 2022-06-29:
Great job, thanks, it works!