colcon build --symlink-install: TypeError: 'NoneType' object is not iterable
Hi, I am trying to install ROS 2 on my ubuntu 18.04 laptop.
However, after entering colcon build --symlink-install
. I am met with this error,
Starting >>> test_launch_ros
--- stderr: test_launch_ros
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/colcon_core/executor/__init__.py", line 91, in __call__
rc = await self.task(*args, **kwargs)
File "/usr/lib/python3/dist-packages/colcon_core/task/__init__.py", line 92, in __call__
return await task_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/colcon_ros/task/ament_python/build.py", line 55, in build
setup_py_data.get('data_files', []))
File "/usr/lib/python3/dist-packages/colcon_core/task/python/__init__.py", line 34, in get_data_files_mapping
for data_file in data_files:
TypeError: 'NoneType' object is not iterable
---
Failed <<< test_launch_ros [ Exited with code 1 ]
Aborted <<< examples_rclcpp_minimal_action_server
Aborted <<< test_communication
Aborted <<< message_filters
Aborted <<< examples_rclcpp_minimal_composition
Aborted <<< examples_rclcpp_minimal_action_client
Aborted <<< rosbag2
Aborted <<< quality_of_service_demo_cpp
Aborted <<< intra_process_demo
Aborted <<< demo_nodes_cpp
Aborted <<< test_quality_of_service
Aborted <<< turtlesim
And
Summary: 220 packages finished [2min 23s]
1 package failed: test_launch_ros
11 packages aborted: demo_nodes_cpp examples_rclcpp_minimal_action_client examples_rclcpp_minimal_action_server examples_rclcpp_minimal_composition intra_process_demo message_filters quality_of_service_demo_cpp rosbag2 test_communication test_quality_of_service turtlesim
1 package had stderr output: test_launch_ros
39 packages not processed
'NoneType' object is not iterable
Please advise, thank you.