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
pre-commit flake8 check fails with no error message #430
Comments
this means that flake8 is returning no output and exiting nonzero -- someone else hit this before in the tracker though: pre-commit/pre-commit#1221 it ended up being that python had upgraded out from under them and the interpreter was only partially functioning (but still passed the perhaps you can run the commands that I requested there and actually produce the output / get to a more helpful answer ;) |
also note that you're using the deprecated flake8 hook |
If I run However |
you should use ah well, nothing we can do here now |
@asottile I actually run |
oh but there are 150 different folders in there named with a sha, so now I don't know anymore which one was it :( |
there's a little sqlite database you can poke at |
Swapping the folders again did the trick, now I have again the broken pre-commit env.
|
I'm curious what invoking the you can cross reference it against the database in the (probably) important things to look at are the difference between as well as trying the env flake8 with |
Yup the python versions don't match
And running flake8 from that virtualenv segfaults
Looks like python 3.7.5 was backported to bionic in November http://changelogs.ubuntu.com/changelogs/pool/universe/p/python3.7/python3.7_3.7.5-2~18.04/changelog. I thought ubuntu would never update versions outside of a new releast though... |
yeah the ubuntu maintainer has been doing some very strange things with this LTS release 🤔 they've continued to update the 3.7.x packages and even introduced a 3.8 package, it's been quite a lot more work to keep up with these surprises in deadsnakes :( but yeah I guess that explains it, given that segmentation fault. I'm kind of surprised the could you strace it and attach a log? that might be helpful for improving the |
strace: https://i.fluffy.cc/fp07X05FnxqQ7QtGsgpcxRPnDFflgZkW.html The python executable is not entirely broken, I am able to get a shell... |
huh yeah seems it only ends up segfaulting after trying to do multiprocessing things -- probably not something that can be cheaply detected in |
The pre-commit
flake8
check is failing without any error message for me. It just saysFailed
.If I source the virtualenv and run flake8 everything works though, so there seems to be something special with the way pre-commit runs it.
The interesting thing is that it works fine if I use python3.6, it only seems to fail if I use python3.7 (3.7.5). @asottile have you seen this issue before? Any suggestion on how to debug it otherwise? Adding
-v
doesn't print anything useful...The text was updated successfully, but these errors were encountered: