Skip to content

Mach does not show errors when certain pip or virtualenv calls fail #11055

Closed

Description

@autrilla

For example:

try:
subprocess.check_call([pip, "install", "-q", "-r", req_path])
except (subprocess.CalledProcessError, OSError):
sys.exit("Pip failed to execute properly.")

try:
subprocess.check_call([virtualenv, "-p", python, virtualenv_path])
except (subprocess.CalledProcessError, OSError):
sys.exit("Python virtualenv failed to execute properly.")

They should output the called command's stderr (and maybe stdout too?) to make resolving the issue easier.

I'd like to fix this, but I'd want someone else's input on whether showing stdout too makes sense.

Activity

  1. added
    L-python
    on May 6, 2016
  2. added a commit that references this issue on May 7, 2016
    c226bf8
  3. added a commit that references this issue on May 26, 2016
    c20d526
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    L-python

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions