You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No idea what's going on yet, but I suspect it's a bug in Python.
Reacted by John Bollenbacher, Walt Woods, Olivier Grisel, Acent0r, ciri, damian san roman alerigi, Jonathon Read, Zeyan Li 李则言, Peter Killick and Alex Merose
Activity
jcrist commentedon Oct 14, 2020
Currently
distributedfails to start worker processes on Python 3.9 with a local cluster (at least on osx). I seezanieb commentedon Oct 14, 2020
I get the same error in the python3.9 docker image (Debain 10 - Linux version 4.19.76) so I presume this is not limited to OSX
mrocklin commentedon Oct 30, 2020
cc @itamarst this seems like something that might be up your alley
itamarst commentedon Oct 30, 2020
Always impressed at your nerd sniping skills 😁
mrocklin commentedon Oct 30, 2020
I think that my main value to society today is indexing people by technical interest
mrocklin commentedon Oct 30, 2020
Also, thank you for taking a look, I appreciate it
(I'm interpretting your 😁 as enthusiasm)
itamarst commentedon Oct 31, 2020
A workaround:
No idea what's going on yet, but I suspect it's a bug in Python.
mrocklin commentedon Nov 2, 2020
Thank you for investigating this @itamarst
mrocklin commentedon Nov 2, 2020
Short term, would a solution be to add that import to the appropriate file within distributed?
itamarst commentedon Nov 2, 2020
I would guess so, yes (on POSIX platforms, anyway).
lingfeiwang commentedon Nov 5, 2020
And a similar command line workaround:
dask-worker --preload-nanny multiprocessing.popen_spawn_posixmrocklin commentedon Nov 5, 2020
stonebig commentedon Dec 20, 2020
hi all,
The workaround proposed doesn't seem to work on Windows / Python-3.9.1 / Distributed-2020.12.0 ... I notice it may only be ok for "NOT WINDOWS"
Any hope on this for non-windows, then Windows ?
Any issue/fix identified/asked to cpython for next Python-3.9.2 I can follow ?
without the POSIXpatch

with the POSIX patch (so not ok either)

stonebig commentedon Dec 20, 2020
hum, looking in bugs.cpython.org, maybe it's this cpython issue https://bugs.python.org/issue41567 , due to https://bugs.python.org/issue35943
if it's https://bugs.python.org/issue38884, Ansible defined a workaround: https://github.com/ansible/awx/pull/6093/files
SunMaungOo commentedon Dec 25, 2020
For Windows workaround
stonebig commentedon Dec 25, 2020
Thanks a lot @SunMaungOo , it works nicely.
yannikschaelte commentedon Feb 11, 2021
Thanks @itamarst for the patch! Also solved my issue of
Client()just getting stuck without any output on python 3.9.Workaround import cycle in Python 3.9 with dask.distributed
mr-september commentedon Mar 2, 2021
PyCharm gives me an error:
No module named 'popen_spawn_posix'Do I need to
pip installsomething? Sorry very new to python.crusaderky commentedon Mar 2, 2021
What's your version of Python?
crusaderky commentedon Mar 2, 2021
@mr-september also, in windows you have to
import multiprocessing.popen_spawn_win32insteadmr-september commentedon Mar 2, 2021
3.9, and I'm on Ubuntu.
but sorry I don't think I had an issue afterall, I just ignored PyCharm's warning and ran the script, things seems to have worked well.
pitrou commentedon Mar 16, 2021
I think this is definitely a CPython regression. Taking this upstream.
pitrou commentedon Mar 16, 2021
https://bugs.python.org/issue43517
mrocklin commentedon Mar 16, 2021
workaround: dask/distributed/issues/4168