[CDRIVER-4543] Python setuptools upgrade fails due to incorrect filename prefix Created: 14/Dec/22  Updated: 28/Oct/23  Resolved: 10/Jan/23

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 1.24.0

Type: Bug Priority: Unknown
Reporter: Ezra Chung Assignee: Ezra Chung
Resolution: Fixed Votes: 0
Labels: failing-on-waterfall, flaky-tests
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

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.



 Comments   
Comment by Githook User [ 10/Jan/23 ]

Author:

{'name': 'Ezra Chung', 'email': '88335979+eramongodb@users.noreply.github.com', 'username': 'eramongodb'}

Message: CDRIVER-4543 Use find-python3.sh in integration-tests.sh (#1167)

  • CDRIVER-4543 Use find-python3.sh and venv-utils.sh to create mongo-orchestration venv
Generated at Wed Feb 07 21:21:14 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.