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

Test failure - virtualenv creation fails with Python 3.10 on Windows

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.12.1, 4.0
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Virtualenv creation on Windows 64 with Python 3.10 fails with the following traceback:

      Finished 'shell.exec' in "bootstrap mongo-orchestration" in 2m0.9420213s
      Running command 'expansions.update' in "bootstrap mongo-orchestration" (step 1.2 of 2)
      Updating expansions with keys from file: \data\mci\1a600899d49a102ea963663100245ede\mo-expansion.yml
      Finished 'expansions.update' in "bootstrap mongo-orchestration" in 0s
      Running command 'expansions.update' in "bootstrap mongo-orchestration" (step 1.3 of 2)
      Finished 'expansions.update' in "bootstrap mongo-orchestration" in 0s
      Running command 'shell.exec' in "run tests" (step 2.1 of 2)
      Finished 'shell.exec' in "run tests" in 34.2088ms
      Running command 'shell.exec' in "run tests" (step 2.2 of 2)
      C:\python\Python310\lib\site-packages\virtualenv.py:24: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
        import distutils.spawn
      C:\python\Python310\lib\site-packages\virtualenv.py:25: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
        import distutils.sysconfig
      C:\python\Python310\lib\site-packages\virtualenv.py:24: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
        import distutils.spawn
      C:\python\Python310\lib\site-packages\virtualenv.py:25: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
        import distutils.sysconfig
      Traceback (most recent call last):
        File "C:\python\Python310\lib\runpy.py", line 196, in _run_module_as_main
          return _run_code(code, main_globals, None,
        File "C:\python\Python310\lib\runpy.py", line 86, in _run_code
          exec(code, run_globals)
        File "C:\python\Python310\lib\site-packages\virtualenv.py", line 2633, in <module>
          main()
        File "C:\python\Python310\lib\site-packages\virtualenv.py", line 859, in main
          create_environment(
        File "C:\python\Python310\lib\site-packages\virtualenv.py", line 1161, in create_environment
          install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages=site_packages, clear=clear, symlink=symlink)
        File "C:\python\Python310\lib\site-packages\virtualenv.py", line 1720, in install_python
          fix_local_scheme(home_dir, symlink)
        File "C:\python\Python310\lib\site-packages\virtualenv.py", line 1806, in fix_local_scheme
          if sysconfig._get_default_scheme() == "posix_local":
      AttributeError: module 'sysconfig' has no attribute '_get_default_scheme'. Did you mean: 'get_default_scheme'?
      16.7.10
      Using base prefix 'C:\\python\\Python310'
      New python executable in C:\data\mci\1a600899d49a102ea963663100245ede\src\pyopenssltest\Scripts\python.exe
      Command failed: command encountered problem: error waiting on process '7177add4-e991-4209-b4d8-86a4223bcd0c': exit status 1
      Task completed - FAILURE.
      

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: