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

On Ubuntu 16.04 Xenial, python-rospkg now depends on non-exsting python-distro #185

Closed
ANogin opened this issue Dec 13, 2019 · 4 comments · Fixed by #186
Closed

On Ubuntu 16.04 Xenial, python-rospkg now depends on non-exsting python-distro #185

ANogin opened this issue Dec 13, 2019 · 4 comments · Fixed by #186
Labels

Comments

@ANogin
Copy link

ANogin commented Dec 13, 2019

$ docker pull ubuntu:16.04
[...]
$ docker run -it ubuntu:16.04
# echo 'deb http://packages.ros.org/ros/ubuntu xenial main'  > /etc/apt/sources.list.d/ros-latest.list
# apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
[...]
# apt-get -y update
[...]
# apt-get -y install python-rospkg-modules
[...]
The following packages have unmet dependencies:
 python-rospkg-modules : Depends: python-distro but it is not installable
E: Unable to correct problems, you have held broken packages.
@mikepurvis
Copy link
Contributor

Looks like it's used only conditionally with a fallback:

# to be removed after Ubuntu Xenial is out of support
try:
import platform as distro
except ImportError:
import distro

So there should be logic in the setup.py to exclude the dependency from systems which don't have it (although perhaps only in the stdeb case, since maybe you would still want it when installing these tools in a virtualenv).

@ANogin
Copy link
Author

ANogin commented Dec 13, 2019

Looks like it's used only conditionally with a fallback:

# to be removed after Ubuntu Xenial is out of support
try:
import platform as distro
except ImportError:
import distro

So there should be logic in the setup.py to exclude the dependency from systems which don't have it (although perhaps only in the stdeb case, since maybe you would still want it when installing these tools in a virtualenv).

That run-time logic is only helpful once you manage to actually install ROS - the issue I am having is with install-time dependencies.

@dirk-thomas
Copy link
Member

@ANogin Thank you for reporting this quickly.

@mikepurvis
Copy link
Contributor

Thanks for the quick fix. 🎉

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

Successfully merging a pull request may close this issue.

3 participants