Skip to content

PYTHON-3498 Error installing virtual environment on zseries hosts #1101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 31, 2022

Conversation

blink1073
Copy link
Member

No description provided.

@blink1073 blink1073 requested a review from ShaneHarvey October 31, 2022 18:01
Copy link
Member

@ShaneHarvey ShaneHarvey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

zseries is still failing with the same error:

 [2022/10/31 18:10:50.207] Running command 'shell.exec' in "run tests" (step 2.2 of 2).
 [2022/10/31 18:10:50.629] /usr/local/lib/python3.8/site-packages/virtualenv.py:1047: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
 [2022/10/31 18:10:50.629]   import imp
 [2022/10/31 18:10:50.629] Traceback (most recent call last):
 [2022/10/31 18:10:50.629]   File "/usr/lib64/python3.8/runpy.py", line 194, in _run_module_as_main
 [2022/10/31 18:10:50.629]     return _run_code(code, main_globals, None,
 [2022/10/31 18:10:50.629]   File "/usr/lib64/python3.8/runpy.py", line 87, in _run_code
 [2022/10/31 18:10:50.629]     exec(code, run_globals)
 [2022/10/31 18:10:50.629]   File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 2349, in <module>
 [2022/10/31 18:10:50.629]     main()
 [2022/10/31 18:10:50.629]   File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 703, in main
 [2022/10/31 18:10:50.629]     create_environment(home_dir,
 [2022/10/31 18:10:50.629]   File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 929, in create_environment
 [2022/10/31 18:10:50.629]     install_distutils(home_dir)
 [2022/10/31 18:10:50.629]   File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 1507, in install_distutils
 [2022/10/31 18:10:50.629]     distutils_path = change_prefix(distutils.__path__[0], home_dir)
 [2022/10/31 18:10:50.629]   File "/usr/local/lib/python3.8/site-packages/virtualenv.py", line 1043, in change_prefix
 [2022/10/31 18:10:50.629]     assert False, "Filename %s does not start with any of these prefixes: %s" % \
 [2022/10/31 18:10:50.629] AssertionError: Filename /home/mci-exec/.local/lib/python3.8/site-packages/setuptools/_distutils does not start with any of these prefixes: ['/usr', '/usr']
 [2022/10/31 18:10:50.629] 15.2.0
 [2022/10/31 18:10:50.629] Using base prefix '/usr'
 [2022/10/31 18:10:50.629] New python executable in /data/mci/c25a52d772b1067e188157aa8f02c1f3/src/pymongotestvenv/bin/python
 [2022/10/31 18:10:50.655] Command ''shell.exec' in "run tests"' failed: shell script encountered problem: exit code 1.
 [2022/10/31 18:10:50.655] Task completed - FAILURE.

@blink1073
Copy link
Member Author

All passing now. I'll forward-port this cleanup to master as well.

@blink1073 blink1073 requested a review from ShaneHarvey October 31, 2022 21:00
@blink1073 blink1073 merged commit b6982e8 into mongodb:v3.13 Oct 31, 2022
@blink1073 blink1073 deleted the PYTHON-3498 branch October 31, 2022 21:40
blink1073 added a commit to blink1073/mongo-python-driver that referenced this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants