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

rosdep os version searches for Focal Fossa instead of just focal #779

Closed
flynneva opened this issue Sep 15, 2020 · 6 comments
Closed

rosdep os version searches for Focal Fossa instead of just focal #779

flynneva opened this issue Sep 15, 2020 · 6 comments

Comments

@flynneva
Copy link

flynneva commented Sep 15, 2020

not sure if this is right but it looks like im running into some rosdep issues on Ubuntu 20.04.

rosdep install fails for my package on Ubuntu 20.04 because it cant find camera-info-manager and a few others.....see my issue over at that repo.

after running rosdep resolve camera_info_manager it looks like maybe the OS version for Focal Fossa should be just focal? not sure if that is just a print for visualization sake or if it was actually what it was searching for.

rosdep resolve camera_info_manager

ERROR: No definition of [camera_info_manager] for OS version [Focal Fossa]

No definition of [camera_info_manager] for OS version [Focal Fossa]
	rosdep key : camera_info_manager
	OS name    : ubuntu
	OS version : Focal Fossa
	Data:
_is_ros: true
		debian:
		  buster:
		    apt:
		      packages:
		      - ros-noetic-camera-info-manager
		fedora:
		  '32':
		    yum:
		      packages:
		      - ros-noetic-camera-info-manager
		osx:
		  homebrew:
		    packages:
		    - ros/noetic/image_common
		ubuntu:
		  focal:
		    apt:
		      packages:
		      - ros-noetic-camera-info-manager
@flynneva
Copy link
Author

running with the --os=ubuntu:focal param seems to fix the issue:

rosdep resolve --os=ubuntu:focal camera_info_manager
#apt
ros-noetic-camera-info-manager

@nuclearsandwich
Copy link
Contributor

Can you still reproduce this? I'm not able to do so in my focal environment?

If you can. Would you include

  1. The version of rospkg installed
  2. The version of rosdep installed
  3. The contents of /etc/os-release on the system.

Thanks.

@flynneva
Copy link
Author

i cannot reproduce this issue. it looks like this was fixed, or it was an issue with my setup.

@nuclearsandwich
Copy link
Contributor

Thanks for taking the time to check again. I don't recall any rospkg changes to OS detection for Ubuntu Focal so my best guess is that a field in the /etc/os-release file which would normally be expected to contain focal instead contained Focal Fossa but that is pure conjecture.

@ksuszka
Copy link

ksuszka commented Feb 16, 2022

I've randomly encountered the same issue. After many hours of debugging I found that updating "distro" package to version 1.7.0 causes this issue. Here is a single line which shows the issue:

docker run -it -e DEBIAN_FRONTEND=noninteractive ubuntu:focal bash -c "apt-get update && apt-get install -y python3-pip python3-rosdep2 && rosdep update && pip3 install distro==1.7.0 && rosdep resolve ament_cmake_clang_format -v 2>&1 | grep matcher"

In my case it wasn't updated intentionally, but it did get updated with some other package.

@cottsay
Copy link
Member

cottsay commented Feb 16, 2022

Ah, thanks for reporting your findings, @ksuszka!

This is actually a bug in rospkg. I opened this ticket to track resolution: ros-infrastructure/rospkg#241

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

4 participants