Cannot locate rosdep definition for [python-lxml], [python3] [closed]

asked 2022-06-29 03:33:00 -0500

TRo gravatar image

updated 2022-06-30 01:24:00 -0500

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 ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2022-07-05 12:07:56.911392

Comments

What operating system (and which version) are you using? Please include that in your question.

christophebedard gravatar image christophebedard  ( 2022-06-29 08:33:16 -0500 )edit

Can you run echo $ROS_DISTRO to make sure that the ROS_DISTRO environment variable is set?

christophebedard gravatar image christophebedard  ( 2022-06-29 08:39:38 -0500 )edit

Also, make sure to run rosdep update before rosdep install

christophebedard gravatar image christophebedard  ( 2022-06-29 08:39:53 -0500 )edit

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 running rosdep install .

At first, I thought there was a problem with sudo rosdep init , so I deleted default sources list file to re-initialize

sudo rm /etc/ros/rosdep/sources.list.d/20-default.list

Then I ran

tro@tro:/$ sudo rosdep init
Wrote /etc/ros/rosdep/sources.list.d/20-default.list
Recommended: please run

    rosdep update

tro@tro:/$ rosdep update

And then ran sudo apt update , sudo apt dist-upgrade , and tried to run rosdep install -r --from-paths . --ignore-src --rosdistro $ROS_DISTRO -y in the directory ~/ws_moveit2/src , but I still had the same problem.

TRo gravatar image TRo  ( 2022-06-29 13:35:15 -0500 )edit

Please run rosdep resolve python-lxml -v and add the output of the command to your question above.

christophebedard gravatar image christophebedard  ( 2022-06-29 13:39:45 -0500 )edit

Okay, I added it above. But I got an error saying "no rosdep rule for 'python-lxml'"

TRo gravatar image TRo  ( 2022-06-30 01:25:38 -0500 )edit

How did you install rosdep?

What's the output of which rosdep?

gvdhoorn gravatar image gvdhoorn  ( 2022-06-30 02:51:40 -0500 )edit

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!

TRo gravatar image TRo  ( 2022-06-30 11:18:35 -0500 )edit