joblib / loky

Robust and reusable Executor for joblib
http://loky.readthedocs.io/en/stable/
BSD 3-Clause "New" or "Revised" License
520 stars 47 forks source link

error module '_winapi' has no attribute 'SYNCHRONIZE' on python 3.7 with windows and joblib 1.3.0 due to loky #411

Open imatiach-msft opened 1 year ago

imatiach-msft commented 1 year ago

I am seeing an error with the new joblib 1.3.0 release in our builds, only on python 3.7 with windows platform:

File "C:\Miniconda\envs\test\lib\site-packages\joblib\externals\loky\backend\popen_loky_win32.py", line 153, in main
_winapi.SYNCHRONIZE | _winapi.PROCESS_DUP_HANDLE, False, parent_pid
AttributeError: module '_winapi' has no attribute 'SYNCHRONIZE'

I posted this here but it was somehow missed: https://github.com/joblib/joblib/issues/1469

In this PR to fix the other issue @tomMoral told me to create this new issue here in loky:

https://github.com/joblib/joblib/pull/1472#issuecomment-1613361056

Please see his comments.

Link to our failing builds:

add retry logic to common vision utils to make tests more robust · microsoft/responsible-ai-toolbox@fd82d2c (github.com)

For now I was able to work around this issue by pinning joblib <1.3.0 for windows platform and python 3.7:

https://github.com/microsoft/responsible-ai-toolbox/pull/2155

But it would be nice to get this working. Regardless I realize python 3.7 has already reached EOL two days ago...