I solved it by specifiying the interpreter value with the full path. Before, I used catkin_make --cmake-args -DPYTHON_EXECUTABLE=python3 and then changed it to catkin_make --cmake-args -DPYTHON_EXECUTABLE=/usr/binpython3 Now it seems working.
I solved it by specifiying the interpreter value with the full path. Before, I used catkin_make --cmake-args -DPYTHON_EXECUTABLE=python3 and then changed it to catkin_make --cmake-args -DPYTHON_EXECUTABLE=/usr/binpython3-DPYTHON_EXECUTABLE=/usr/bin/python3 Now it seems working.