-
Notifications
You must be signed in to change notification settings - Fork 433
Parallel / delayed garbage collection error using Python 3.12.10 #1707
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
Comments
I confirm this happens with Python 3.12.10 and 3.13.3 at exit. Probably a recent bugfix in CPython, we would need to look at it in more details. This is very likely why the CI is failing on main #1708. |
The issue remains on Python 3.12.10, joblib 1.4.2 and the newest loky 3.5.2 (joblib/loky#451). Tested on both conda-forge and pip packages. >>> from math import sqrt
>>> from joblib import Parallel, delayed
>>>
>>> Parallel(n_jobs=2)(delayed(sqrt)(i**2) for i in range(10))
[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]
>>> exit()
Exception ignored in: <function ResourceTracker.__del__ at 0x10a2068e0>
Traceback (most recent call last):
File "/Users/johnwilliam/anaconda3/envs/test_joblib/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
File "/Users/johnwilliam/anaconda3/envs/test_joblib/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
File "/Users/johnwilliam/anaconda3/envs/test_joblib/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes
Exception ignored in: <function ResourceTracker.__del__ at 0x10488a8e0>
Traceback (most recent call last):
File "/Users/johnwilliam/anaconda3/envs/test_joblib/lib/python3.12/multiprocessing/resource_tracker.py", line 77, in __del__
File "/Users/johnwilliam/anaconda3/envs/test_joblib/lib/python3.12/multiprocessing/resource_tracker.py", line 86, in _stop
File "/Users/johnwilliam/anaconda3/envs/test_joblib/lib/python3.12/multiprocessing/resource_tracker.py", line 111, in _stop_locked
ChildProcessError: [Errno 10] No child processes |
This will be fixed by #1711 but we also need to handle a deprecation warning in |
When will the new joblib version be released with this fix? |
Uh oh!
There was an error while loading. Please reload this page.
Hi! I've found the following issue:
which provides the following error:
The error doesn't show if you set the number of jobs to 1 or if you use Python 3.12.9 or below. Joblib's version is 1.4.2. Tested on Docker too. I hope it helps!
The text was updated successfully, but these errors were encountered: