Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4543

Python setuptools upgrade fails due to incorrect filename prefix

      Observed to fail in this patch, followed by success in this patch.

      Traceback (most recent call last):
        File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main
          return _run_code(code, main_globals, None,
        File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code
          exec(code, run_globals)
        File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 2349, in <module>
          main()
        File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 703, in main
          create_environment(home_dir,
        File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 929, in create_environment
          install_distutils(home_dir)
        File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 1507, in install_distutils
          distutils_path = change_prefix(distutils.__path__[0], home_dir)
        File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 1043, in change_prefix
          assert False, "Filename %s does not start with any of these prefixes: %s" % \
      AssertionError: Filename /home/mci-exec/.local/lib/python3.8/site-packages/setuptools/_distutils does not start with any of these prefixes: ['/usr', '/usr']
      

      Potential workarounds include upgrading seed packages, using a newer Python version, or using the venv module instead of virtualenv.

            Assignee:
            ezra.chung@mongodb.com Ezra Chung
            Reporter:
            ezra.chung@mongodb.com Ezra Chung
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: