Open Buddies-as-you-know opened 1 year ago
This warning is due to pypi version compatibility.
in https://github.com/Ar-Ray-code/YOLOv5-ROS/blob/main/yolov5_ros/setup.cfg#L1-L4, you have to replace to following code.
[develop]
script_dir=$base/lib/yolov5_ros
[install]
install_scripts=$base/lib/yolov5_ros
I don't know what the following warning mean yet.
easy_install.initialize_options(self)
/usr/local/lib/python3.8/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
I replace to the code. Then I got this error message. Is there a problem with the version of cmake? I am using cmake version 3.27. I'll post the version on my PC. OS:Ubunt20.04 Geforce 3090 driver 515 cuda 11.7
CMake Warning (dev) at /opt/ros/foxy/share/ament_cmake_core/cmake/core/python.cmake:22 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
/opt/ros/foxy/share/ament_cmake_core/cmake/core/all.cmake:53 (include)
/opt/ros/foxy/share/ament_cmake_core/cmake/ament_cmake_core-extras.cmake:17 (include)
/opt/ros/foxy/share/ament_cmake_core/cmake/ament_cmake_coreConfig.cmake:41 (include)
/opt/ros/foxy/share/ament_cmake/cmake/ament_cmake_export_dependencies-extras.cmake:15 (find_package)
/opt/ros/foxy/share/ament_cmake/cmake/ament_cmakeConfig.cmake:41 (include)
CMakeLists.txt:6 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at /opt/ros/foxy/share/rosidl_adapter/cmake/rosidl_adapt_interfaces.cmake:40 (find_package):
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
are removed. Run "cmake --help-policy CMP0148" for policy details. Use
the cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
/opt/ros/foxy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:130 (rosidl_adapt_interfaces)
CMakeLists.txt:11 (rosidl_generate_interfaces)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at /opt/ros/foxy/share/rosidl_adapter/cmake/rosidl_adapt_interfaces.cmake:60 (message):
execute_process(/home/iplslam/anaconda3/bin/python3 -m rosidl_adapter
--package-name bboxes_ex_msgs --arguments-file
/home/iplslam/ws_yolov5/build/bboxes_ex_msgs/rosidl_adapter__arguments__bboxes_ex_msgs.json
--output-dir
/home/iplslam/ws_yolov5/build/bboxes_ex_msgs/rosidl_adapter/bboxes_ex_msgs
--output-file
/home/iplslam/ws_yolov5/build/bboxes_ex_msgs/rosidl_adapter/bboxes_ex_msgs.idls)
returned error code 1:
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_adapter/__main__.py", line 19, in <module>
sys.exit(main())
^^^^^^
File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_adapter/main.py", line 53, in main
abs_idl_file = convert_to_idl(
^^^^^^^^^^^^^^^
File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_adapter/__init__.py", line 18, in convert_to_idl
from rosidl_adapter.msg import convert_msg_to_idl
File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_adapter/msg/__init__.py", line 16, in <module>
from rosidl_adapter.resource import expand_template
File "/opt/ros/foxy/lib/python3.8/site-packages/rosidl_adapter/resource/__init__.py", line 19, in <module>
import em
ModuleNotFoundError: No module named 'em'
Call Stack (most recent call first):
/opt/ros/foxy/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:130 (rosidl_adapt_interfaces)
CMakeLists.txt:11 (rosidl_generate_interfaces)
---
Failed <<< bboxes_ex_msgs [4.22s, exited with code 1]
Summary: 0 packages finished [5.36s]
1 package failed: bboxes_ex_msgs
1 package had stderr output: bboxes_ex_msgs
1 package not processed
I get an error when I type the command below, how do I change it? colcon build --symlink-install && source install/local_setup.bash