Skip to content

Pytest issue on Ubuntu 18.04 #271

@borgmanJeremy

Description

@borgmanJeremy

My CI started failing a few days ago with the following types of errors (not just for rosidl_adapter).

Finished <<< opensplice_cmake_module [4.29s]
stderr: rosidl_adapter‌
CMake Warning at /root/ros2_ws/ros2_base/install/share/ament_cmake_pytest/cmake/ament_add_pytest_test.cmake:73 (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:31 (ament_add_pytest_test)

After some troubleshooting this seems to be due to the fact that when pytest is installed through pip, it installs version 4.6.1 which seems to clobber some of the other ROS python dependencies.

When this version is installed and I run: python3 -m pytest --version, it fails with a dist error.

If i remove the pip version everything works ok:

RUN python3 -m pip uninstall pytest -y

I think the build directions should be updated with a workaround for this issue: https://index.ros.org/doc/ros2/Installation/Dashing/Linux-Development-Setup/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions