OS/ROS2

[ROS2 Galactic] ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.

쩡 (개발꿈나무) 2022. 9. 8. 10:34

ERROR - install development (build) tools and ROS tools

-----------------------------------------------------------------------------------------------------------------------------------------------------

ERROR: launchpadlib 1.10.13 requires testresources, which is not installed.
Installing collected packages: flake8-blind-except, flake8-builtins, flake8-class-newline, flake8-comprehensions, flake8-deprecated, flake8-docstrings, setuptools, flake8-import-order, flake8-quotes, tomli, iniconfig, py, pytest, pytest-repeat, pytest-rerunfailures
  WARNING: The scripts py.test and pytest are installed in '/home/kiro/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

-----------------------------------------------------------------------------------------------------------------------------------------------------

https://docs.ros.org/en/galactic/Installation/Alternatives/Ubuntu-Development-Setup.html#install-development-tools-and-ros-tools

 

Ubuntu (source) — ROS 2 Documentation: Galactic documentation

If you have already installed ROS 2 another way (either via Debians or the binary distribution), make sure that you run the below commands in a fresh environment that does not have those other installations sourced. Also ensure that you do not have source

docs.ros.org

sudo apt update && sudo apt install -y \
  build-essential \
  cmake \
  git \
  python3-colcon-common-extensions \
  python3-flake8 \
  python3-pip \
  python3-pytest-cov \
  python3-rosdep \
  python3-setuptools \
  python3-vcstool \
  wget
# install some pip packages needed for testing
python3 -m pip install -U \
  flake8-blind-except \
  flake8-builtins \
  flake8-class-newline \
  flake8-comprehensions \
  flake8-deprecated \
  flake8-docstrings \
  flake8-import-order \
  flake8-quotes \
  pytest-repeat \
  pytest-rerunfailures \
  pytest \
  setuptools

pip packages .. error

-----------------------------------------------------------------------------------------------------------------------------------------------------

SEARCH

- https://newly0513.tistory.com/194

sudo apt install python3-testresources

-----------------------------------------------------------------------------------------------------------------------------------------------------

SUCCESS