-
Notifications
You must be signed in to change notification settings - Fork 239
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
MacOS travis-ci build stalls #122
Comments
I can reproduce this on my build as well: https://travis-ci.org/YannickJadoul/Parselmouth/jobs/483834720, but I have no clue what's going on. |
Weird, Travis builds of cibuildwheel fail in the exact same way, and |
The problem seems to be with Python 3.4, though, because the Python 2.7 does work. Is this the same for you, @josh146? |
Installing Not sure what we can do about it though. This fix seems very ad-hoc and ugly? This seems to be the same/a similar issue: pypa/pip#6169 |
It stalls too with Python3.5 https://travis-ci.org/cds-astro/cds-healpix-python/jobs/483904177 . Seems to be a problem with pip 19.0.1 |
I'm not using either Python 2.7 or Python 3.4, but I see the issue on Python 3.5 |
Ah, weird that it did work with 2.7 in those builds, then; but thanks for the confirmation. EDIT: Although, maybe it is an interesting option to provide a release with this small addtion, since all builds using |
From further reading, it seems like this bug occurs when upgrading a package that was previously installed via |
Ooh, nice insight @josh146.
Sorry I'm away on holiday so unable to help with this! If this is breaking builds now, I think a sensible approach would be a patch to install pip==18.1 for now, and then wait to see how the bug shakes out. Maybe we'll have to change which commands have sudo down the line, but let's wait and see. I think it was working before!
(Side note: I'm thinking about pinning all the versions of pip/setuptools/wheel to give better stability and build repeatability. We can upgrade them when we need features or to fix reported bugs. Thoughts?)
…Sent from my phone
On 26 Jan 2019, at 07:12, Josh Izaac ***@***.***> wrote:
From further reading, it seems like this bug occurs when upgrading a package that was previously installed via sudo, but is attempting to be upgraded without sudo. Previous versions of pip would silently fail. Maybe this is why it only affects the MacOS builds?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I noticed the same problem (pip freezing on upgrading without sudo) on Ubuntu PC (16.04), so it seems that missing sudo is the problem. |
@matkoniecz I'm still failing to reproduce the problem manually; I'm only seeing it on the online build :-( Is there anything in particular you do to trigger the problem on Ubuntu? Is I've just tried installing (Just wondering, because the issue on the |
I get stall with I will try whatever it is reproducible. |
Thanks for that! When I do this, I'm getting nice errors, though:
|
…l --upgrade setuptools' stalling problem (pypa#122)
I believe I've figured out the problem, indeed something with permissions: see pypa/pip#6169 I think this means we should just use Meanwhile, I'd suggest using @joerick Enjoy your holiday! I don't know if I have a strong opinion about pinning them. In general I'd say we haven't had a lot of problems with these packages (and if we do, the rest of the world also has them), and maybe we'd like to be in on new |
@YannickJadoul Thanks for checking this! Let me know if further testing would be useful. |
@YannickJadoul amazing! I had stumbled on another GitHub issue that mentioned it was something to do with permissions, but for the life of me couldn't find it again - hence why my second comment was so vague. |
@josh146 Actually, your comment was the start of my debugging. Otherwise I'd have had absolutely no clue where to start. So thanks for that :-) |
@matkoniecz Thanks for that! I'll check this hypotheses tomorrow (this should be testable by changing permissions to the |
Update: a solution is on its way: pypa/pip#6215 Adding |
Running 'pip install --upgrade setuptools' with 'sudo' on macOS, fixing #122
Temporary fix in #123, releasing now... |
Released as 0.10.1 |
This fixes an issue with CI stalling when upgrading setuptools (pypa/cibuildwheel#122).
I noticed today that our MacOS travis-CI build using cibuildwheel has started stalling at the following point of the cibuildwheel setup:
This hasn't affected our Windows/Linux builds, and no changes to our devops pipeline has occurred (and even then, only superficial Python commits in our codebase were committed).
This issue happens no matter how many times we restart the build, and seems odd - this step is usually instantaneous on previous Mac cibuildwheel builds.
Since this is a command that is called by cibuildwheel, has there been a recent change that breaks this step?
The text was updated successfully, but these errors were encountered: