awslabs / aws-shell

An integrated shell for working with the AWS CLI.
Apache License 2.0
7.15k stars 770 forks source link

failed to create process #112

Closed wehnertb closed 8 years ago

wehnertb commented 8 years ago

I'm on Windows 8.1. I've just installed Python 3.5.1 and then used pip to install aws-shell.

When I try to run aws-shell (with or without the .exe extension), I get a "failed to create process." message.

I've tried uninstalling and reinstalling, but to no avail.

I'm running it from a windows command shell, I do have the Scripts directory in my path and I'm not sure what else to do to either debug the issue or resolve it.

Any help would be appreciated. Thank you.

donnemartin commented 8 years ago

Can you please post the full output when you try to run aws-shell? Do you get some sort of stack traceback?

Are you able to pip install other Python packages and run them properly, or do they end up with the same error?

wehnertb commented 8 years ago

I am using a command shell called TCC/LE (www.jpsoft.com). Here is what I see:

TCC LE 14.00.6 x64 Windows 8.1 [Version 6.3.9600] Copyright 2013 JP Software Inc. All Rights Reserved

[C:]aws-shell failed to create process.

I don't know about other packages. I'm afraid I am a wet-behind-the-ears newby when it comes to Python. The aws.cmd file runs fine, not sure if that helps or not?

I'm sorry I don't have more than that to tell.

donnemartin commented 8 years ago

I am using a command shell called TCC/LE (www.jpsoft.com).

Interesting I wonder if this might have something to do with it. Can you try to install/run on the built-in Windows command prompt?

I don't know about other packages.

httpie is a popular Python package that we can try to test with.

Install:

pip install --upgrade httpie

Run:

http httpie.org

Here's my output:

donnemartin at Donnes-MBP in ~/Dev/github/sources/aws-shell on master [!$]
$ http httpie.org
HTTP/1.1 302 Found
Connection: close
Content-Length: 292
Content-Type: text/html; charset=iso-8859-1
Date: Sat, 20 Feb 2016 13:06:30 GMT
Location: https://github.com/jkbrzt/httpie
Server: Apache/2.2.15 (CentOS)
X-Awesome: Thanks for trying HTTPie :)

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="https://github.com/jkbrzt/httpie">here</a>.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at httpie.org Port 80</address>
</body></html>
wehnertb commented 8 years ago

OK - I uninstalled aws-shell, I ran CMD.EXE as an administrator. I reinstalled aws-shell and I got the same thing.

I installed httpie and was able to get this to function just perfectly (thanks for letting me know about this package, this will come in really handy).

I just tried to force a reinstall of aws-shell and it's dependencies and asked it to compile everything (in case that had anything to do with this). I issued this command:

pip install --force-reinstall --compile --upgrade aws-shell

Unfortunately, that didn't resolve the issue either.

donnemartin commented 8 years ago

@wehnertb I came across the following Stack Overflow post which seems to point to Python being installed in a path with spaces. Does this help?

http://stackoverflow.com/questions/24627525/fatal-error-in-launcher-unable-to-create-process-using-c-program-files-x86

One alternative is to try to install Python in a directory with no spaces.

wehnertb commented 8 years ago

@donnemartin - that did the trick. I had it installed to the \Program Files directory and it didn't like it. I uninstalled, reinstalled sending it to c:\Python35 and it worked just fine. Thank you!

donnemartin commented 8 years ago

Great to hear installing Python in a path with no spaces fixes the problem. I'm not sure there's much we can do on the aws-shell side to address this issue, I'll go ahead and close this ticket unless anyone has suggestions :)

fsinisi90 commented 3 years ago

I'm having the same issue but Python is installed in a path without spaces.

PS C:\Users\Administrator> aws
failed to create process.
PS C:\Users\Administrator> python -h
usage: C:\Users\Administrator\AppData\Local\Programs\Python\Python36\python.exe [option] ... [-c cmd | -m mod | file | -] [arg]

Any other solution?

fsinisi90 commented 3 years ago

In case someone runs into the same issue: I've changed the Windows language to English and not it worked.