Skip to content
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

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 this issue Jun 29, 2023 · 0 comments

Comments

@imatiach-msft
Copy link

imatiach-msft commented Jun 29, 2023

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant