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

problem installing nmea_navsat_driver

asked 2023-01-09 21:10:11 -0500

GMGims gravatar image

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.

edit retag flag offensive close merge delete

Comments

1

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.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-01-10 17:49:30 -0500 )edit

Thank you very much for your help, I was able to install the driver. Have a great day.

GMGims gravatar image GMGims  ( 2023-01-10 22:29:53 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-01-11 06:16:13 -0500

Mike Scheutzow gravatar image

updated 2023-01-11 06:29:20 -0500

Building some ros packages from source code can be a bit of a challenge. For historical reasons, there are two build systems: catkin_make and "catkin build". They are not compatible.

Secondly, catkin_virtualenv doesn't look like it is a ros package, so it doesn't go in your catkin_ws tree. It's a "system" python package

You got unlucky that this driver just isn't a good package for a beginner to learn how to build a ros package. For most ros packages, It's not so difficult.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2023-01-09 21:10:11 -0500

Seen: 455 times

Last updated: Jan 11 '23