[Toolchain] Free-threaded Python on MacOS is failing to install

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Done
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: Toolchain
    • None
    • 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

      It seems we cannot install Python 3.13t on MacOS 11:

      https://spruce.mongodb.com/task/mongo_python_driver_toolchain_macos11_build_macos_toolchain_patch_b99fa849b188cad63969266f21e1d6608c027301_682233d6d70de200070ec826_25_05_12_17_45_59/logs?execution=0

      [2025/05/12 12:49:30.929] + sudo /Library/Frameworks/PythonT.Framework/Versions/3.13/bin/python3t -m pip install -U pip
      [2025/05/12 12:49:31.504] [notice] A new release of pip is available: 25.0.1 -> 25.1.1
      [2025/05/12 12:49:31.504] [notice] To update, run: /Library/Frameworks/PythonT.Framework/Versions/3.13/bin/python3t -m pip install --upgrade pip
      [2025/05/12 12:49:31.507] ERROR: Exception:
      [2025/05/12 12:49:31.507] Traceback (most recent call last):
      [2025/05/12 12:49:31.507]   File "/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_internal/cli/base_command.py", line 106, in _run_wrapper
      [2025/05/12 12:49:31.507]     status = _inner_run()
      [2025/05/12 12:49:31.507]   File "/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_internal/cli/base_command.py", line 97, in _inner_run
      [2025/05/12 12:49:31.507]     return self.run(options, args)
      [2025/05/12 12:49:31.507]            ~~~~~~~~^^^^^^^^^^^^^^^
      [2025/05/12 12:49:31.507]   File "/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
      [2025/05/12 12:49:31.507]     return func(self, options, args)
      [2025/05/12 12:49:31.507]   File "/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_internal/commands/install.py", line 370, in run
      [2025/05/12 12:49:31.507]     resolver = self.make_resolver(
      [2025/05/12 12:49:31.507]         preparer=preparer,
      [2025/05/12 12:49:31.507]     ...<9 lines>...
      [2025/05/12 12:49:31.507]         py_version_info=options.python_version,
      [2025/05/12 12:49:31.507]     )
      [2025/05/12 12:49:31.507]   File "/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_internal/cli/req_command.py", line 175, in make_resolver
      [2025/05/12 12:49:31.507]     import pip._internal.resolution.resolvelib.resolver
      [2025/05/12 12:49:31.507]   File "/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 8, in <module>
      [2025/05/12 12:49:31.507]     from pip._vendor.resolvelib import BaseReporter, ResolutionImpossible
      [2025/05/12 12:49:31.507]   File "/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_vendor/resolvelib/__init__.py", line 19, in <module>
      [2025/05/12 12:49:31.507]     from .resolvers import (
      [2025/05/12 12:49:31.507]     ...<6 lines>...
      [2025/05/12 12:49:31.507]     )
      [2025/05/12 12:49:31.507]   File "/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py", line 1, in <module>
      [2025/05/12 12:49:31.507]     from ..structs import RequirementInformation
      [2025/05/12 12:49:31.507] ImportError: cannot import name 'RequirementInformation' from 'pip._vendor.resolvelib.structs' (/Library/Frameworks/PythonT.framework/Versions/3.13/lib/python3.13t/site-packages/pip/_vendor/resolvelib/structs.py)
      [2025/05/12 12:49:31.572] + restoreFrameworks
      

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

              Created:
              Updated:
              Resolved: