Skip to content

rosbag2_py test errors in Windows Debug nightlies #504

@nuclearsandwich

Description

@nuclearsandwich

Description

The rosbag2_py package doesn't seem to be building correctly in Windows debug and this is causing failures in test.
See https://ci.ros2.org/view/nightly/job/nightly_win_deb/1714/testReport/ which has two blank test failures attributed to rosbag2_py. Looking at the full log reveals excerpts like this one:

Details

1: =================================== ERRORS ====================================
1: ________________________ ERROR collecting test session ________________________
1: C:\Python38\lib\site-packages\pluggy\hooks.py:286: in __call__
1:     return self._hookexec(self, self.get_hookimpls(), kwargs)
1: C:\Python38\lib\site-packages\pluggy\manager.py:93: in _hookexec
1:     return self._inner_hookexec(hook, methods, kwargs)
1: C:\Python38\lib\site-packages\pluggy\manager.py:84: in <lambda>
1:     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
1: C:\Python38\lib\site-packages\_pytest\python.py:195: in pytest_collect_file
1:     module = ihook.pytest_pycollect_makemodule(
1: C:\Python38\lib\site-packages\pluggy\hooks.py:286: in __call__
1:     return self._hookexec(self, self.get_hookimpls(), kwargs)
1: C:\Python38\lib\site-packages\pluggy\manager.py:93: in _hookexec
1:     return self._inner_hookexec(hook, methods, kwargs)
1: C:\Python38\lib\site-packages\pluggy\manager.py:84: in <lambda>
1:     self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall(
1: C:\ci\ws\install\Lib\site-packages\launch_testing\pytest\hooks.py:161: in pytest_pycollect_makemodule
1:     entrypoint = find_launch_test_entrypoint(path)
1: C:\ci\ws\install\Lib\site-packages\launch_testing\pytest\hooks.py:155: in find_launch_test_entrypoint
1:     return getattr(path.pyimport(), 'generate_test_description', None)
1: C:\Python38\lib\site-packages\py\_path\local.py:704: in pyimport
1:     __import__(modname)
1: C:\Python38\lib\site-packages\_pytest\assertion\rewrite.py:170: in exec_module
1:     exec(co, module.__dict__)
1: ..\test\test_sequential_reader.py:19: in <module>
1:     from rclpy.serialization import deserialize_message
1: C:\ci\ws\install\Lib\site-packages\rclpy\serialization.py:15: in <module>
1:     from rclpy.impl.implementation_singleton import rclpy_implementation as _rclpy
1: C:\ci\ws\install\Lib\site-packages\rclpy\impl\implementation_singleton.py:32: in <module>
1:     rclpy_implementation = import_c_library('._rclpy', package)
1: C:\ci\ws\install\Lib\site-packages\rpyutils\import_c_library.py:39: in import_c_library
1:     return importlib.import_module(name, package=package)
1: C:\Python38\lib\importlib\__init__.py:127: in import_module
1:     return _bootstrap._gcd_import(name[level:], package, level)
1: E   ModuleNotFoundError: No module named 'rclpy._rclpy'
1: E   The C extension 'C:\ci\ws\install\Lib\site-packages\_rclpy.pyd' isn't present on the system. Please refer to 'https://index.ros.org/doc/ros2/Troubleshooting/Installation-Troubleshooting/#import-failing-without-library-present-on-the-system' for possible solutions
1: - generated xml file: C:\ci\ws\build\rosbag2_py\test_results\rosbag2_py\test_sequential_reader_py.xunit.xml -
1: =========================== short test summary info ===========================
1: ERROR .. - ModuleNotFoundError: No module named 'rclpy._rclpy'
1: !!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
1: ============================== 1 error in 0.43s ===============================

To Reproduce

Behavior should be reproducible on any Windows machine with a Debug build. See the CI build https://ci.ros2.org/view/nightly/job/nightly_win_deb/1714 for an example.

System (please complete the following information)

Metadata

Metadata

Assignees

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