[Build Failure] Enterprise Auth does not support free-threading on Windows

XMLWordPrintableJSON

    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'winkerberos', which has not declared that it can run safely without the GIL.

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_auth_enterprise_win64_test_standard_auth_v7.0_python3.14t_auth_ssl_sharded_cluster_db6dad95beae6ad2b9b8b60b00d37a67810b743e_26_01_26_12_51_26/tests?execution=1&sorts=STATUS%3AASC

      Context of when and why the failure occurred:

      We added 3.14t to the test matrix in PYTHON-5024, but need to skip for Enterprise Auth on Windows.

      Stack trace:

      [2026/01/26 12:29:08.071] ERROR: collection failure ()
      [2026/01/26 12:29:08.071] test\asynchronous\test_auth.py:38: in <module>
      [2026/01/26 12:29:08.071]     from pymongo.asynchronous.auth import HAVE_KERBEROS, _canonicalize_hostname
      [2026/01/26 12:29:08.071] pymongo\asynchronous\auth.py:58: in <module>
      [2026/01/26 12:29:08.071]     import winkerberos as kerberos  # type:ignore[import]
      [2026/01/26 12:29:08.071]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      [2026/01/26 12:29:08.071] E   RuntimeWarning: The global interpreter lock (GIL) has been enabled to load module 'winkerberos', which has not declared that it can run safely without the GIL. To override this behavior and keep the GIL disabled (at your own risk), run with PYTHON_GIL=0 or -Xgil=0.
      

            Assignee:
            Steve Silvester
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: