-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
infinite loop after pip install on Android API 24 #5322
Comments
On Android API 24 and more recent versions, hard links are not allowed by the SELinux policies set by Android except for privileged users (i.e. root), see https://bugs.python.org/issue28759.
|
Hi @xdegaye! Thanks for filing this issue. :) I don't think pip directly supports either Python 3.8 (the in-development version) or Android. That said, this issue stems from a vendored dependency (lockfile) and the issue should be fixed there. Note that we're looking into alternatives to lockfile (#4766), which would likely also fix this problem. |
FWIW it is possible to install Python 3.6 on Android with termux on Android API 24 (i.e. Android 7.0 Nougat) and to install Python packages with pip. |
The LinkLockFile.acquire() method in linklockfile.py loops infinitely when the following conditions are met:
The issue does stem from the implementation of this method. |
It looks like that code should be letting PermissionErrors bubble up, which is similar to the issue with #6169. |
I have created #6954 to consolidate these issues, let's track it there. |
Description:
After a successfull install of a first package (pygeodesy) pip never exits and must be interrupted with ^C.
What I've run:
The text was updated successfully, but these errors were encountered: