-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
ValueError: need at most 63 handles, got a sequence of length 65 #564
Comments
While running the tests I'm getting into a similar behavior: it seems to freeze after printing some differences from For the record, there are 65 python processes with |
A colleague of mine did some digging, and found that this seems to be related to an old open python issue here. Sounds like Black limiting itself to max 60 threads on Windows could be a solution? Could not find any option to set this from the user side when using black, any advice is appreciated. |
Sounds easy enough, anyone willing to put up a pr so we can test it out? |
Steve Dower has offered to review patches to Python itself to fix this; I'd be happy to argue for backporting them existing releases, if someone would like to fix this at source, rather than band-aiding it. (edited, it was late is my only excuse). In short: multiprocessing is using a thread per process to track the processes, which is quite wasteful on both unix and windows where nonblocking primitives exist, but nevertheless, thats what it is doing. black would need to limit itself to 60 processes to avoid the limit in question as a result; which is probably fine - one would need a hecka lot of code to run out of patience at that concurrency, at least for now. |
Still running into the same problem:
This is black version 19.10b0 and python 3.8, installed using Anaconda. |
I'm also still encountering this issue with black==19.10b0 and Python 3.7.4 on Windows machine.
|
I'm encountering this issue with black 19.10b0 and python 3.8.3 on Windows Server 2012.
|
Black runs just fine with a single file or a folder without subfolders.
However, when specifying a folder with subfolders I'm getting the errors below.
Since I don't have another server with the same Windows version, I can't exclude a Windows installation issue, even if other python scripts and tools are working fine.
Python 3.7
Python 3.6
Operating system: Windows Server 2012 R2 (x64)
Python version: 3.6.6, 3.7.0, 3.7.1rc2 (x64)
Black version: 18.6b4, 18.9b0
Does also happen on master: Yes
The text was updated successfully, but these errors were encountered: