-
Notifications
You must be signed in to change notification settings - Fork 330
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
asyncio subprocess error: OSError: [WinError 6] The handle is invalid #1484
Comments
... instead of using `fuctools.partialmethod()` Modules like asyncio that wrap Popen will pass `stdin=None`, bypassing the partial'ed default. Closes #1484
Thank you for the bug report! I could reproduce locally and have a tentative fix. Can you please try to install and confirm it works? pak::pak("rstudio/reticulate#1485") |
It works! Thanks for your fast fix. |
I am thrilled this is fixed. Thanks! Any chance at getting this patch to CRAN? This is causing issues for my new Windows users. |
Should be on CRAN in ~1 week - need to wait at least 30 days since the last CRAN submission (2023-09-11). |
Cool. Thanks for the update. Much appreciated. |
This method downgrade reticulate version to 1.32.0. However, a new problem which is about "In system2(command = python, args = shQuote(script), stdout = TRUE, :" arised. |
@bioinfotec This issue is quite old (the current reticulate release is 1.40). Are you experiencing issues with the current release? If so, can you please open a new issue? |
I believe this issue is similar to #518 and #1448. Maybe it can be fixed with the same patch method as in #1458 and #1479.
I wasn't able to create a good minimal example, but here is how it can be reproduced (reticulate 1.32.0.9001):
reticulate::source_python("reprex.py")
Debug error
I attempted to create an example with less dependencies, but it does not reproduce the error so I must be missing something. See https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/identity/azure-identity/azure/identity/aio/_credentials/azure_cli.py
The text was updated successfully, but these errors were encountered: