RAFALAMAO / hector-quadrotor-noetic

Hector Quadrotor ported to ROS Noetic with Gazebo 11
61 stars 36 forks source link

ERROR: invalid command 'unique_id' #7

Open bigbigpark opened 2 years ago

bigbigpark commented 2 years ago

Hi, @RAFALAMAO, thanks for sharing your project here.

Building your project, the error occured. Test environment is on Ubuntu 20.04 (ROS noetic).

When I type that command

$ git clone https://github.com/ros-geographic-info/unique_identifier.git

Then, build,

--------------------------------------------------------
Profile:                     default
Extending:             [env] /opt/ros/noetic
Workspace:                   /home/scpark/cps_ws
--------------------------------------------------------
Build Space:        [exists] /home/scpark/cps_ws/build
Devel Space:        [exists] /home/scpark/cps_ws/devel
Install Space:      [unused] /home/scpark/cps_ws/install
Log Space:         [missing] /home/scpark/cps_ws/logs
Source Space:       [exists] /home/scpark/cps_ws/src
DESTDIR:            [unused] None
--------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------
Additional CMake Args:       None
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------
Buildlisted Packages:        None
Skiplisted Packages:         None
--------------------------------------------------------
Workspace configuration appears valid.

NOTE: Forcing CMake to run for each package.
--------------------------------------------------------
[build] Found 3 packages in 0.0 seconds.                                                                                                                                                                  
[build] Updating package table.                                                                                                                                                                           
Starting  >>> catkin_tools_prebuild                                                                                                                                                                       
Finished  <<< catkin_tools_prebuild                [ 1.0 seconds ]                                                                                                                                        
Starting  >>> uuid_msgs                                                                                                                                                                                   
Finished  <<< uuid_msgs                            [ 1.4 seconds ]                                                                                                                                        
Starting  >>> unique_id                                                                                                                                                                                   
__________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << unique_id:cmake /home/scpark/cps_ws/logs/unique_id/build.cmake.000.log                                                                                                                      
/opt/ros/noetic/lib/python3/dist-packages/_distutils_hack/__init__.py:18: UserWarning: Distutils was imported before Setuptools, but importing Setuptools also replaces the `distutils` module in `sys.modules`. This may lead to undesirable behaviors or errors. To avoid these issues, avoid using distutils directly, ensure that setuptools is installed in the traditional way (e.g. not an editable install), and/or make sure that setuptools is always imported before distutils.
  warnings.warn(
/opt/ros/noetic/lib/python3/dist-packages/_distutils_hack/__init__.py:33: UserWarning: Setuptools is replacing distutils.
  warnings.warn("Setuptools is replacing distutils.")
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

ERROR: invalid command 'unique_id'
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):

  execute_process(/home/scpark/cps_ws/build/unique_id/catkin_generated/env_cached.sh
  "/usr/bin/python3"
  "/opt/ros/noetic/share/catkin/cmake/interrogate_setup_dot_py.py"
  "unique_id" "/home/scpark/cps_ws/src/unique_identifier/unique_id/setup.py"
  "/home/scpark/cps_ws/build/unique_id/catkin_generated/setup_py_interrogation.cmake")
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/noetic/share/catkin/cmake/catkin_python_setup.cmake:46 (safe_execute_process)
  CMakeLists.txt:8 (catkin_python_setup)

cd /home/scpark/cps_ws/build/unique_id; catkin build --get-env unique_id | catkin env -si  /usr/bin/cmake /home/scpark/cps_ws/src/unique_identifier/unique_id --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/scpark/cps_ws/devel/.private/unique_id -DCMAKE_INSTALL_PREFIX=/home/scpark/cps_ws/install; cd -

..........................................................................................................................................................................................................
Failed     << unique_id:cmake                      [ Exited with code 1 ]                                                                                                                                 
Failed    <<< unique_id                            [ 1.1 seconds ]                                                                                                                                        
Abandoned <<< unique_identifier                    [ Unrelated job failed ]                                                                                                                               
[build] Summary: 2 of 4 packages succeeded.                                                                                                                                                               
[build]   Ignored:   None.                                                                                                                                                                                
[build]   Warnings:  None.                                                                                                                                                                                
[build]   Abandoned: 1 packages were abandoned.                                                                                                                                                           
[build]   Failed:    1 packages failed.                                                                                                                                                                   
[build] Runtime: 3.4 seconds total.                                                                                                                                                                       
[build] Note: Workspace packages have changed, please re-source setup files to use them.

I don't know how to fix it...

RAFALAMAO commented 11 months ago

Did you fixed it?, sorry, I see this today xc