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
21.11b1 is still broken due to regex dependency #2623
Comments
I can't reproduce this locally. Black works fine with regex==2021.4.4 for me. It's been there since October 2020 in the code:
It doesn't matter whether it's in |
A few of us have tried to reproduce this on various OSes and Python versions but haven't been able to. Could anyone who has reported or reacted to this issue please provide more information to confirm that this issue exists? |
Tried recreating the issue, could not recreate on black 21.11b1 Perhaps the installed regex library is not up to date in your env? |
Here's a log reproducing the issue in a fresh environment using python 3.10: https://gist.github.com/pablogamboa/6fae6e1cd099addc8c0806ee0a4f4f8a If I install black, it works fine because just installs the latest regex library. But if I force regex to be 2021.4.4, then it won't work |
Thanks for the log! I still can't reproduce this, and I looked at the raw tar and whl files for regex 2021.4.4 and Pattern is definitely there. |
@ichard26 figured it out (thanks!). It turns out that the sdist for 2021.4.4 does not contain the line needed to expose regex provides wheels for manylinux, Windows, and MacOS, so this issue likely doesn't affect a lot of users. |
So yeah, 2021.7.1 is the first release to be all clear and 2021.4.4 would be all good if its sdist wasn't different. Unfortunately regex 2021.4.4 doesn't have a wheel for Apple ARM or Linux musl so the sdist is more popular than ideal :/ Though it seems like the newer releases of regex do have wheels for at least Apple ARM (and anyway their sdist isn't broken so building from source should work fine). Could y'all use a newer version of regex? (you might have to upgrade pip so it recognizes the rather young Apple ARM wheel tag). I'm open to do another hotfix to bump regex's minimum to 2021.7.1 but I'm afraid we would be eating too much of our churn budget. |
Thanks @ichard26 glad to hear it can be reproduced, I'm indeed on aarm64 (M1) and thus I was using sdist. This also explains why other team members weren't affected. I agree that with the popularity of aarm64 more folks might be affected by this. |
Confirming same error on osx-x64 (not M1), py38, 21.11b0, installed via conda-forge:
|
Hmm, why are y'all picking up the sdist for regex? Is your pip too old or something or regex 2021.4.4 straight up doesn't provide a compatible wheel for your system?. |
@ichard26 In my case pip was a bit old, but not that old:
|
Describe the bug
21.11b0 had to be re-released because the regex package didn't include
Pattern
in__all__
and this caused a typing annotation to fail with name error. 21.11b1 updated regex to 2021.4.4 to solve it. Unfortunately it didn't solve it. The required version should be 2021.11.9.Initial PR
To Reproduce
Install black and run it:
Expected behavior
Black running properly
Environment
Additional context
The text was updated successfully, but these errors were encountered: