problem installing nmea_navsat_driver
Hello, I am having issues installing the nmea_navsat_driver (http://wiki.ros.org/nmea_navsat_driver). I am on ubuntu 20.04, ROS Noetic. Here are the steps I followed when I tried to install it. cd ~/catkin-ws/src git clone https://github.com/ros-drivers/nmea_n... cd .. source devel/setup.bash catkin_make
here I get the following error : Could NOT find catkin_virtualenv (missing: catkin_virtualenv_DIR) -- Could not find the required component 'catkin_virtualenv'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found. CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package): Could not find a package configuration file provided by "catkin_virtualenv" With any of the following names: catkin_virtualenvConfig.cmake catkin_virtualenv-config.cmake Add the installation prefix of "catkin_virtualenv" to CMAKE_PREFIX_PATH or set "catkin_virtualenv_DIR" to a directory containing one of the above files. If "catkin_virtualenv" provides a separate development package or SDK, be sure it has been installed.
So I believe I have to install catkin_virtualenv so I did: git clone https://github.com/locusrobotics/catk...
And now after running catkin_make, I get a different error, the error message is very long but here is the first part:
Traceback (most recent call last): File "/home/user/catkin_ws/devel/lib/catkin_virtualenv/venv_init", line 15, in <module> exec(compile(fh.read(), python_script, 'exec'), context) File "/home/name/catkin_ws/src/catkin_virtualenv/catkin_virtualenv/scripts/venv_init", line 46, in <module> venv.initialize( File "/home/user/catkin_ws/src/catkin_virtualenv/catkin_virtualenv/src/catkin_virtualenv/venv.py", line 65, in initialize raise RuntimeError(error_msg) RuntimeError: Unable to find a system-installed python2. make[2]: [catkin_virtualenv/test_catkin_virtualenv_python2/CMakeFiles/test_catkin_virtualenv_python2_generate_virtualenv.dir/build.make:79: venv/bin/python] Error 1 make[1]: [CMakeFiles/Makefile2:2744: catkin_virtualenv/test_catkin_virtualenv_python2/CMakeFiles/test_catkin_virtualenv_python2_generate_virtualenv.dir/all] Error 2 make[1]: ** Waiting for unfinished jobs.... Traceback (most recent call last): File "/home/name/catkin_ws/devel/lib/catkin_virtualenv/venv_init", line 15, in <module> exec(compile(fh.read(), python_script, 'exec'), context) File "/home/name/catkin_ws/src/catkin_virtualenv/catkin_virtualenv/scripts/venv_init", line 46, in <module> venv.initialize( File "/home/user/catkin_ws/src/catkin_virtualenv/catkin_virtualenv/src/catkin_virtualenv/venv.py", line 93, in initialize version_proc = run_command( File "<string>", line 37, in run_command File "/usr/lib/python3.8/subprocess.py", line 493, in run with Popen(popenargs, *kwargs) as process: File "/usr/lib/python3.8/subprocess.py", line 858, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'python'*
It looks like the error comes from the fact that python is required and not python3, but I am not sure. I hope someone can help me. Thank you very much and let me know if you need more info on the error.
Please explain why you are not installing this from the binary ros repository. It is much easier and less chance of error. The apt package is
ros-noetic-nmea-navsat-driver
.Thank you very much for your help, I was able to install the driver. Have a great day.