Cannot locate rosdep definition for [python-lxml], [python3] [closed]
Hi. I'm installing Moveit2 (ROS Foxy), and faced this error while following the installation guides on https://moveit.picknik.ai/foxy/doc/ge...
OS: Ubuntu 20.04 via virtual machine UTM
When I ran rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
I got this error:
ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
moveit_kinematics: Cannot locate rosdep definition for [python-lxml]
moveit_ros_planning_interface: Cannot locate rosdep definition for [python3]
I saw several proposed solutions, but none of them actually worked for me... Hope I could get some help and really I can get done with installing Moveit2 by today...
Edit (requested by christophebedard in the comment below)
When I run rosdep resolve python-lxml -v
, the output is as follows:
using matcher with tags [foxy, ubuntu, focal]
loading cached data source:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml
/home/tro/.ros/rosdep/sources.cache/a4b3c8956ab7a3e6d293ba33b57fac42799e69e6.pickle
loading cached data source:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
/home/tro/.ros/rosdep/sources.cache/b4931581ca7c5741f7ee4ac9767a1174838296f7.pickle
loading cached data source:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
/home/tro/.ros/rosdep/sources.cache/825fae71ab9ea366e0b22e8dbe1e2948232cb2e8.pickle
loading cached data source:
https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml
/home/tro/.ros/rosdep/sources.cache/b67f64890f6d5269c51a68744711f115a8f207ae.pickle
loading cached data source:
https://raw.githubusercontent.com/ros/rosdistro/master/foxy/distribution.yaml
/home/tro/.ros/rosdep/sources.cache/0081d4b071d4e24ae37c96bf477eb7403ba143c2.pickle
loading cached data source:
https://raw.githubusercontent.com/ros/rosdistro/master/melodic/distribution.yaml
/home/tro/.ros/rosdep/sources.cache/92e5d8c5f0d9455fe3a14e3dd1f7b90ca9ae78a8.pickle
loading cached data source:
https://raw.githubusercontent.com/ros/rosdistro/master/noetic/distribution.yaml
/home/tro/.ros/rosdep/sources.cache/6fbb8434ee1cd44cd9d6761573ef582820b8828f.pickle
loading cached data source:
https://raw.githubusercontent.com/ros/rosdistro/master/rolling/distribution.yaml
/home/tro/.ros/rosdep/sources.cache/10be71ecf140657927f11aa700ec034e8f4759d7.pickle
loaded 11 sources
4 sources match current tags
registering installers for rosdep2.platforms.source
registering installer [source]
registering installers for rosdep2.platforms.pip
registering installer [pip]
registering installers for rosdep2.platforms.gem
registering installer [gem]
registering installers for rosdep2.platforms.npm
registering installer [npm]
registering installers for rosdep2.platforms.alpine
registering installer [apk]
registering installers for rosdep2.platforms.arch
registering installer [pacman]
registering installers for rosdep2.platforms.cygwin
registering installer [apt-cyg]
registering installers for rosdep2.platforms.debian
registering installer [apt]
registering installers for rosdep2.platforms.gentoo
registering installer [portage]
registering installers for rosdep2.platforms.nix
registering installer [nix]
registering installers for rosdep2.platforms.openembedded
registering installer [opkg]
registering installers for rosdep2.platforms.opensuse
registering installer [zypper]
registering installers for rosdep2.platforms.osx
registering installer [macports]
registering installer [homebrew]
registering installers for rosdep2.platforms.redhat
registering installer [dnf]
registering installer [yum]
registering installers for rosdep2.platforms.slackware
registering installer [sbotools]
registering installer [slackpkg]
registering installers for rosdep2.platforms.freebsd
registering installer [pkg]
registering platforms for rosdep2.platforms.alpine
add installer [apk] to OS [alpine]
add installer [pip] to OS [alpine]
add installer [source] to OS [alpine]
set default installer [apk] for OS ...
What operating system (and which version) are you using? Please include that in your question.
Can you run
echo $ROS_DISTRO
to make sure that theROS_DISTRO
environment variable is set?Also, make sure to run
rosdep update
beforerosdep install
Oh sorry. I added the OS info above.
I just tried
echo $ROS_DISTRO
, and I still have the same problem.And yes, I've tried
rosdep update
before runningrosdep install
.At first, I thought there was a problem with
sudo rosdep init
, so I deleted default sources list file to re-initializeThen I ran
And then ran
sudo apt update
,sudo apt dist-upgrade
, and tried to runrosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y
in the directory~/ws_moveit2/src
, but I still had the same problem.Please run
rosdep resolve python-lxml -v
and add the output of the command to your question above.Okay, I added it above. But I got an error saying "no rosdep rule for 'python-lxml'"
How did you install
rosdep
?What's the output of
which rosdep
?Sorry for replying lately every time... I installed rosdep by running
sudo apt install python3-rosdep
The output is
/usr/bin/rosdep
Thank you for your reply!