Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

On exec failure, does not log enough information to reproduce the problem #293

Open
qris opened this Issue · 2 comments

2 participants

Chris Wilson Carl Meyer
Chris Wilson

The "Testing executable" step is failing for me on Windows. The code is:

try:
    proc = subprocess.Popen(cmd,
                        stdout=subprocess.PIPE)
    proc_stdout, proc_stderr = proc.communicate()
except OSError:
    e = sys.exc_info()[1]
    if e.errno == errno.EACCES:
        logger.fatal('ERROR: The executable %s could not be run: %s' % (py_executable, e))
        sys.exit(100)
    else:
        raise e

I'm hitting "raise e" and it just outputs:

File "C:\Program Files\BitNami DjangoStack\python\lib\site-packages\virtualenv-1.7.2-py2.6.egg\virtualenv.py", line 1417, in install_python

    raise e

WindowsError: [Error 14001] This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem

This is of course not enough information to debug the problem. I made it show the command that failed:

    else:
        raise Exception('The executable %s could not be run: %s' % (cmd, e))

And that allowed me to reproduce it.

Carl Meyer
Owner

Pull request for this would be great, I don't see any issues with this change.

Carl Meyer
Owner

Oh, I see you included it in #295

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.