Skip to content

I can't catkin_make when I added rosserial python to src folder. #632

Open
@msdarici

Description

`catkin_make
Base path: /home/msaidd/catkin_stm32_ws
Source space: /home/msaidd/catkin_stm32_ws/src
Build space: /home/msaidd/catkin_stm32_ws/build
Devel space: /home/msaidd/catkin_stm32_ws/devel
Install space: /home/msaidd/catkin_stm32_ws/install

Running command: "cmake /home/msaidd/catkin_stm32_ws/src -DCATKIN_DEVEL_PREFIX=/home/msaidd/catkin_stm32_ws/devel -DCMAKE_INSTALL_PREFIX=/home/msaidd/catkin_stm32_ws/install -G Unix Makefiles" in "/home/msaidd/catkin_stm32_ws/build"

-- Using CATKIN_DEVEL_PREFIX: /home/msaidd/catkin_stm32_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/noetic
-- This workspace overlays: /opt/ros/noetic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/lib/python3/dist-packages/em.py
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/msaidd/catkin_stm32_ws/build/test_results
-- Forcing gtest/gmock from source, though one was otherwise available.
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python3 (found version "3.8.10")
-- Using Python nosetests: /usr/bin/nosetests3
-- catkin 0.8.10
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 2 packages in topological order:
-- ~~ - rosserial_python
-- ~~ - rosserial_stm32
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'rosserial_python'
-- ==> add_subdirectory(rosserial_python)
/opt/ros/noetic/lib/python3/dist-packages/_distutils_hack/init.py:11: 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:26: 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 'rosserial_python'
CMake Error at /opt/ros/noetic/share/catkin/cmake/safe_execute_process.cmake:11 (message):

execute_process(/home/msaidd/catkin_stm32_ws/build/catkin_generated/env_cached.sh
"/usr/bin/python3"
"/opt/ros/noetic/share/catkin/cmake/interrogate_setup_dot_py.py"
"rosserial_python"
"/home/msaidd/catkin_stm32_ws/src/rosserial_python/setup.py"
"/home/msaidd/catkin_stm32_ws/build/rosserial_python/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)
rosserial_python/CMakeLists.txt:7 (catkin_python_setup)

-- Configuring incomplete, errors occurred!
See also "/home/msaidd/catkin_stm32_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/msaidd/catkin_stm32_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed`
I get these errors, how can I solve this problem? Actually I cant find source of problem.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions