ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

How to use python3 in ROS [closed]

asked 2015-02-07 22:57:04 -0500

Dragon Qu gravatar image

updated 2015-02-08 03:32:12 -0500

I'm trying to use some python3 module in my node program, but ROSRUN can't use python3. So I tried to install python3 catkin command like this:

git clone git://github.com/ros-infrastructure/catkin_pkg.git 
cd catkin_pkg
sudo python3 setup.py install

git clone git://github.com/ros/catkin.git
cd catkin
sudo python3 setup.py install

I create a new package now in the available work space, catkin_make the ws, but got the error like this:

CMake Error at compass/

CMakeLists.txt:47 (add_message_files):
  `Unknown CMake command "add_message_files"`.

    -- Configuring incomplete, errors occurred!
    See also "/home/hqu/git/repos/ros/pi/build/CMakeFiles/CMakeOutput.log".
    See also "/home/hqu/git/repos/ros/pi/build/CMakeFiles/CMakeError.log".
    make: *** [cmake_check_build_system] Error 1
    Invoking "make cmake_check_build_sys
    tem" failed

Why? I'm sure the CMakeList.txt is right. The old package created before was well. New package always fail, sounds like the new apt-get installation screwed my ROS

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by tfoote
close date 2019-04-08 01:18:10.646283

Comments

Which version of ROS are you using? Which OS version?

joq gravatar image joq  ( 2015-02-10 10:43:42 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-02-15 12:34:26 -0500

130s gravatar image

updated 2018-02-15 12:34:49 -0500

Potential duplicate of #q237613

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-07 22:57:04 -0500

Seen: 3,238 times

Last updated: Feb 15 '18