Skip to content

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

@imatiach-msft

Description

@imatiach-msft

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:
joblib/joblib#1469

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

joblib/joblib#1472 (comment)

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:

microsoft/responsible-ai-toolbox#2155

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions