kennethreitz/envoy — Issue #15: Shell=False problems on windows
Author: tcoopman
Created: 2012-01-05 10:29:07+00:00
State: open

I'm trying envoy on windows7 and have a problem with it.
If I run a command like "dir" I get an error on the line self.returncode = self.process.returncode ("AttributeError: 'NoneType' object has no attribute 'returncode'). This is caused by an WindowsError in the subprocess.Popen call. (WindowsError: [Error 2] The system cannot find the file specified)

After some googling I noticed that the option shell=False causes this problem. When I call subprocess.Popen manually with shell=True, I don't get this error.

More info can be found here: http://bugs.python.org/issue8224
In the bugreport you can see that the conclusion is that this is a windows bug, so they closed the bug as invalid.
But to use envoy on windows, I propose that you check for this, or that you document it somewhere.

I've used the last version of envoy on pypi (0.2), but checked your github code and I suppose that the error is still there.