StoglRobotics / ros_team_workspace

RosTeamWorkspace is a framework for boosting collaboration in teams when developing software for robots using Robot Operating System (ROS1 and ROS2).
https://rtw.stoglrobotics.de
Apache License 2.0
89 stars 18 forks source link

Wrong Finishing Message #124

Open Nils-ChristianIseke opened 1 year ago

Nils-ChristianIseke commented 1 year ago

While executing ros2_control_setup-setup-hardware-interface-package add the following message was printed:

FINISHED: Your package is set and the tests should be finished without any errors. (linter errors possible!)

But the previous executed build which was started by the script failed due to Licence.

No License:
--- stderr: hardware                         
Error parsing '/workspaces/ros_hardware_interface_training/src/hardware/package.xml':
Traceback (most recent call last):
  File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 150, in <module>
    main()
  File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 53, in main
    raise e
  File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 49, in main
    package = parse_package_string(
  File "/usr/lib/python3/dist-packages/catkin_pkg/package.py", line 788, in parse_package_string
    pkg.validate(warnings=warnings)
  File "/usr/lib/python3/dist-packages/catkin_pkg/package.py", line 330, in validate
    raise InvalidPackage('\n'.join(errors), self.filename)
catkin_pkg.package.InvalidPackage: Error(s) in package '/workspaces/ros_hardware_interface_training/src/hardware/package.xml':
The license tag must neither be empty nor only contain whitespaces
CMake Error at /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:95 (message):
  execute_process(/usr/bin/python3.10
  /opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py
  /workspaces/ros_hardware_interface_training/src/hardware/package.xml
  /workspaces/ros_hardware_interface_training/src/hardware/build/hardware/ament_cmake_core/package.cmake)
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:49 (_ament_package_xml)
  /opt/ros/humble/share/ament_lint_auto/cmake/ament_lint_auto_find_test_dependencies.cmake:31 (ament_package_xml)
  CMakeLists.txt:59 (ament_lint_auto_find_test_dependencies)

---
Failed   <<< hardware [2.66s, exited with code 1]