-
Type: Build Failure
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Go Drivers
-
Not Needed
-
Name of Failure:
OSError: [WinError 10106] The requested service provider could not be loaded or initialized
Link to task:
Context of when and why the failure occurred:
PyMongo now imports asyncio, and we were previously not sending environment variables to subprocesses. Those variables are needed to load system dlls in Python.
Stack trace:
[2024/10/02 19:33:23.930] task: [evg-test-aws] bash etc/run-mongodb-aws-test.sh web-identity [2024/10/02 19:33:23.930] Traceback (most recent call last): [2024/10/02 19:33:23.930] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\lib\aws_handle_oidc_creds.py", line 12, in <module> [2024/10/02 19:33:23.930] from pyop.authz_state import AuthorizationState [2024/10/02 19:33:23.930] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pyop\authz_state.py", line 14, in <module> [2024/10/02 19:33:23.930] from .storage import StatelessWrapper [2024/10/02 19:33:23.930] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pyop\storage.py", line 18, in <module> [2024/10/02 19:33:23.930] import pymongo [2024/10/02 19:33:23.930] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pymongo\__init__.py", line 92, in <module> [2024/10/02 19:33:23.930] from pymongo.cursor import CursorType [2024/10/02 19:33:23.930] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pymongo\cursor.py", line 19, in <module> [2024/10/02 19:33:23.930] from pymongo.synchronous.cursor import * # noqa: F403 [2024/10/02 19:33:23.930] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2024/10/02 19:33:23.930] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pymongo\synchronous\cursor.py", line 47, in <module> [2024/10/02 19:33:23.930] from pymongo.lock import _create_lock [2024/10/02 19:33:23.930] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\authawsvenv\Lib\site-packages\pymongo\lock.py", line 16, in <module> [2024/10/02 19:33:23.930] import asyncio [2024/10/02 19:33:23.930] File "C:\python\Python311\Lib\asyncio\__init__.py", line 42, in <module> [2024/10/02 19:33:23.933] from .windows_events import * [2024/10/02 19:33:23.933] File "C:\python\Python311\Lib\asyncio\windows_events.py", line 8, in <module> [2024/10/02 19:33:23.934] import _overlapped [2024/10/02 19:33:23.934] OSError: [WinError 10106] The requested service provider could not be loaded or initialized [2024/10/02 19:33:23.985] Traceback (most recent call last): [2024/10/02 19:33:23.985] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\aws_tester.py", line 202, in <module> [2024/10/02 19:33:23.985] main() [2024/10/02 19:33:23.985] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\aws_tester.py", line 198, in main [2024/10/02 19:33:23.985] args.func() [2024/10/02 19:33:23.985] File "Z:\data\mci\2dc95a7c483abca238ec445aef47d49b\src\go.mongodb.org\drivers-evergreen-tools\.evergreen\auth_aws\aws_tester.py", line 161, in setup_web_identity [2024/10/02 19:33:23.985] raise RuntimeWarning("Failed to write the web token") [2024/10/02 19:33:23.985] RuntimeWarning: Failed to write the web token