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

ros2 source install on windows

asked 2020-09-14 12:47:50 -0500

jackspicer gravatar image

I am trying to install ros2 from source on windows and am having some trouble; I followed the instructions here and then ran the following to build from master

> cd \dev\ros2_master

> curl -sk https://raw.githubusercontent.com/ros2/ros2/master/ros2.repos -o ros2.repos

> vcs import src < ros2.repos

> colcon build --merge-install --packages-up-to rosbag2

Currently, I just want to build until rosbag2. However, running the build command throws the following Cmake warnings for a lot of packages

CMake Warning at C:/dev/ros2_master/install/share/ament_cmake_pytest/cmake/ament_add_pytest_test.cmake:77 (message): The Python module 'pytest' was not found, pytests can not be run (e.g. on Ubuntu/Debian install the package 'python3-pytest') Call Stack (most recent call first): CMakeLists.txt:256 (ament_add_pytest_test)

After build:

Summary: 128 packages finished [6min 17s] 1 package failed: rosbag2_storage_default_plugins 8 packages had stderr output: rclpy rmw_connext_cpp rmw_connext_shared_cpp rosidl_adapter rosidl_generator_py rosidl_parser rosidl_typesupport_connext_c rosidl_typesupport_connext_cpp 7 packages not processed

Not really sure why the pytest module cannot be found.

I then created another workspace with code from foxy and was able to build that successfully. Why might this be happening in master?

OS Name: Microsoft Windows Server 2019 Datacenter

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-04-15 02:59:33 -0500

I just had this same issue. In my case I fixed it by doing python -m pip install pytest==6.0.0

edit flag offensive delete link more

Comments

Hm... Thanks ! I'll try it now ...

TimKing gravatar image TimKing  ( 2021-04-15 04:00:56 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-14 12:47:50 -0500

Seen: 395 times

Last updated: Apr 15 '21