-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
virtualenv 20 changed version output from stdout to stderr #56205
Comments
Another potential issue here is that the format of version display has changed too For older systems:
For 20.0+:
|
im not able to replicate the issue where virtualenv's stdout is empty on virtualenv versions 20.0.0, 20.0.5, etc, but the new output from virtualenv is going to cause a valuerror. i'll look to fix that. I actually have a PR here #56360 thats working on getting it to work with 20.0.10. If you try 20.0.10 do you still see an empty stdout? |
fix here for the version output: #56364 like previously stated I cant replicate the behavior your seeing where the output is added to sderr instead. any additional information to help replicate that? It might be an upstream bug if it is indeed logging to stderr |
Apparently this is a Python2vs3 issue. Running the command on console still shows that output is going to
With any virtualenv prior to 20
Looking at the virtualenv code they have made major changes to v20.0. Before v20, they used optparse (which logged to When I use Python3
For cross python support, maybe both stdout and stderr can be checked or docs can be updated to ask user to use virtualenv<20.0 for Python2 installations. |
IMO salt should be using the built-in |
Description of Issue
It seems that virtualenv v20 changed their version output from stdout to stderr.
salt/salt/modules/virtualenv_mod.py
Line 173 in b4dd235
It correctly returns a 0 status code but because stdout is empty
not ret['stdout'].strip()
throws us into the exception.Setup
(Please provide relevant configs and/or SLS files (Be sure to remove sensitive info).)
Steps to Reproduce Issue
(Include debug logs if possible and relevant.)
Attempt to create a virtualenv with the latest virtualenv installed (v20+)
(this is being run withing packer which is why it has the
==> amazon-ebs:
)Versions Report
(Provided by running
salt --versions-report
. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: