Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build warning: easy_install and setup.py install are deprecated #3363

Closed
AndyZe opened this issue Jan 14, 2023 · 3 comments
Closed

Build warning: easy_install and setup.py install are deprecated #3363

AndyZe opened this issue Jan 14, 2023 · 3 comments

Comments

@AndyZe
Copy link
Contributor

AndyZe commented Jan 14, 2023

Bug report

Required Info:

  • Operating System:
    • Ubuntu 22
  • ROS2 Version:
    • Rolling, building from source
  • Version or commit hash:
  • DDS implementation:
    • Cyclone

When building from source, I get these warnings:

#0 46.17 --- stderr: nav2_simple_commander
#0 46.17 /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
#0 46.17   warnings.warn(
#0 46.17 /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.

I think the docker commands I'm using to build are pretty straight forward:

FROM ros:rolling

SHELL [ "/bin/bash", "-c" ]

# Install dependencies
# Note the ros-rolling-gazebo-ros* packages are needed here as they are 
# not captured by the package dependencies when running rosdep install.
RUN apt-get update && \
    apt-get install --no-install-recommends -y \
        bash-completion \
        openssh-client \
        python3-pip \
        ros-rolling-gazebo-ros*

# Set up CycloneDDS as ROS 2 middleware
RUN apt-get update && \
    apt-get install --no-install-recommends -y \
        ros-rolling-rmw-cyclonedds-cpp
ENV RMW_IMPLEMENTATION=rmw_cyclonedds_cpp

# Create Underlay workspace
ARG UNDERLAY_WS=/opt/underlay_ws
ENV UNDERLAY_WS=${UNDERLAY_WS}
WORKDIR ${UNDERLAY_WS}/src
COPY ./tiago_simulation.repos ../
RUN vcs import < ../tiago_simulation.repos
RUN source /opt/ros/rolling/setup.bash && \
    rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
WORKDIR ${UNDERLAY_WS}
RUN source /opt/ros/rolling/setup.bash && \
    colcon build --symlink-install --packages-skip nav2_system_tests
@SteveMacenski
Copy link
Member

Does that not happen for all python ROS 2 packages? The last my understanding was, this wasn't something we could migrate away from (yet?) out of our control. If that's changed, it would be good to know and happy to have fixed in Nav2!

@AlexeyMerzlyakov
Copy link
Collaborator

AlexeyMerzlyakov commented Jan 17, 2023

I have the same issue on Jammy and ROS2 Rolling built from sources. No problems on Focal with the same ROS2 sources.
There are also lots of same messages during ROS2 build process itself. Seems to have the same problems described in colcon/colcon-core#454 and ament/ament_cmake#382. Both tickets are open, as a workaround they are suggesting to downgrade the setuptools python package version (although it wasn't checked yet locally).

@SteveMacenski
Copy link
Member

Until there's a real ROS-2-wide solution, I'm going to close this since its not actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants