Open chrmel opened 3 years ago
sudo apt-get install python-is-python3 worked for me.
I'm also facing similar issue on ros-noetic. When I try to launch turtle_tf2 demo I get /usr/bin/env: 'python' no such file or directory. I even tried changing #!/usr/bin/env python to #!/usr/bin/env python3. Still it didn't work for me. In the end i tried sudo apt-get install python-is-python3 and that worked for me.
Hello all!
I am not sure if this is the right place but I was not able to locate the sources for turtle_tf for ros-noeitc. Otherwise I would have forked and created a pull request. Anyway...
The problem: When you follow the instructions on the wiki tf/Tutorials/Introduction to tf (noetic, catkin) the command
roslaunch turtle_tf turtle_tf_demo.launch
causes the following erros:The solution: Since ros-noetic is now on Python3 I changed the first line in files
turtle_tf/turtle_tf_broadcaster.py
andturtle_tf/turtle_tf_listener.py
from#!/usr/bin/env python
to#!/usr/bin/env python3
. The other Python modules also still have the#!/usr/bin/env python
line.Cheers!