-
Notifications
You must be signed in to change notification settings - Fork 22
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
python3-pip
is not installed automatically even though Python is activated for the workspace
#345
Comments
I have to disagree on this one. If you don't have a python package in your workspace there's absolutely no reason to install pip. The current behavior is by design. |
The same goes for activating python by the way, people that don't use python shouldn't be bothered by python-related prompts. |
At the point where this problem occurs, the user has already specified that they would like to use Python. Autoproj adds the shims to I acknowledge your argument against pulling in Python support for everyone in response to this issue though. |
Is autoproj asking whether the user would like to use python when there are no python packages in the workspace? That's not supposed to happen.
Again, autoproj should only install pip if necessary (i.e you have a python source package that has a |
No, but the
My point is, it doesn't do this (correctly). On Ubuntu 18.04 it installs Example buildconf: https://github.com/moooeeeep/my_buildconf The relevant output of what happens:
Here, pip is installed for the wrong Python version (because of this spec probably) and therefore not available to actually install the osdep. To reproduce this, you might need to uninstall python3-pip (it is not installed on a fresh Ubuntu installation). |
Also note this error, which also occurs with that setup: rock-core/autobuild#106 |
And when you add a dependency to opencv-python, you can also reproduce this issue: #338 |
I thought we were talking about autoproj only (I don't use rock), sorry about that.
To be honest, I really believe that the inevitable long term solution is to deprecate python2 once and for all (this is actually a point I made when the whole python activation code was added to autoproj). Those folks using python2 can always override the osdeps in their buildconfs/package sets (which you can do to fix your issue as well, just override |
Apparantly I assumed these two are coupled more tightly than they actually are (again). Sorry for the confusion.
I'd second this. And thanks for the suggestion with the override, maybe that will do for the time being. |
The problem exists only on Ubuntu 18.04, where only Python 2 stuff is installed although Python 3 support is selected. This causes errors with installations of pip dependencies and autobuild packages via setuptools. But as Ubuntu 18.04 support is losing relevance, this can probably be ignored by now. |
python3-pip
is not installed automatically when a new workspace is bootstrapped and updated, even though Python is enabled.When I set up a new workspace on a fresh Ubuntu (I used 18.04), the package
python3-pip
is not added as a dependency and is not installed. Thus the setup won't be able to installpip
osdeps, and executinginstall/bin/pip
will fail with an error (/usr/bin/python3: No module named pip
).We need to add the package to the layout explicitly to make sure it is actually available:
I think it should be installed automatically.
The text was updated successfully, but these errors were encountered: