Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3407

macos release failing on Python 3.8 AttributeError: 'Distribution' object has no attribute 'convert_2to3_doctests'

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.13, 4.3
    • Affects Version/s: None
    • Component/s: None
    • None

      The macos release task has started failing:

       [2022/08/18 23:54:36.271] + /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 -m wheel version
       [2022/08/18 23:54:36.488] wheel 0.35.1
       [2022/08/18 23:54:36.490] + /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 setup.py bdist_wheel
       [2022/08/18 23:54:37.003] running bdist_wheel
       [2022/08/18 23:54:37.003] running build
       [2022/08/18 23:54:37.003] running build_py
       [2022/08/18 23:54:37.003] creating build
       [2022/08/18 23:54:37.003] creating build/lib.macosx-10.9-x86_64-3.8
       [2022/08/18 23:54:37.004] creating build/lib.macosx-10.9-x86_64-3.8/bson
      
      ...
      
       [2022/08/18 23:54:37.024] copying bson/py.typed -> build/lib.macosx-10.9-x86_64-3.8/bson
       [2022/08/18 23:54:37.024] /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py:667: SetuptoolsDeprecationWarning: As setuptools moves its configuration towards `pyproject.toml`,
       [2022/08/18 23:54:37.024] `setuptools.config.parse_configuration` became deprecated.
       [2022/08/18 23:54:37.024] For the time being, you can use the `setuptools.config.setupcfg` module
       [2022/08/18 23:54:37.024] to access a backward compatible API, but this module is provisional
       [2022/08/18 23:54:37.024] and might be removed in the future.
       [2022/08/18 23:54:37.024]   parse_configuration(self, self.command_options,
       [2022/08/18 23:54:37.029] Traceback (most recent call last):
       [2022/08/18 23:54:37.029]   File "setup.py", line 309, in <module>
       [2022/08/18 23:54:37.029]     setup(
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
       [2022/08/18 23:54:37.029]     return distutils.core.setup(**attrs)
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
       [2022/08/18 23:54:37.029]     dist.run_commands()
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
       [2022/08/18 23:54:37.029]     self.run_command(cmd)
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
       [2022/08/18 23:54:37.029]     cmd_obj.run()
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 290, in run
       [2022/08/18 23:54:37.029]     self.run_command('build')
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
       [2022/08/18 23:54:37.029]     self.distribution.run_command(command)
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
       [2022/08/18 23:54:37.029]     cmd_obj.run()
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/build.py", line 24, in run
       [2022/08/18 23:54:37.029]     super().run()
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
       [2022/08/18 23:54:37.029]     self.run_command(cmd_name)
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
       [2022/08/18 23:54:37.029]     self.distribution.run_command(command)
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
       [2022/08/18 23:54:37.029]     cmd_obj.run()
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/build_py.py", line 55, in run
       [2022/08/18 23:54:37.029]     self.build_package_data()
       [2022/08/18 23:54:37.029]   File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/command/build_py.py", line 126, in build_package_data
       [2022/08/18 23:54:37.029]     srcfile in self.distribution.convert_2to3_doctests):
       [2022/08/18 23:54:37.029] AttributeError: 'Distribution' object has no attribute 'convert_2to3_doctests'
       [2022/08/18 23:54:37.044] Command failed: shell script encountered problem: exit code 1
       [2022/08/18 23:54:37.044] Task completed - FAILURE.
      

      https://evergreen.mongodb.com/task/mongo_python_driver_Release_release_mac_a0a5c7194de2b0f8b7e814a6beb56a2e15517bb9_22_08_18_22_38_09

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: