[Tutor] Windows Linux Popen

Peter Otten __peter__ at web.de
Thu Jun 27 14:37:10 CEST 2013


Matthew Ngaha wrote:

> i have more than 1 issue all involving things in the title. 1st i use
> windows vista and was following along the pytest tutorial. the 1st
> issue is with windows and SubProcess.Popen(). Everytime i run the test
> which includes this line:
> 
> p = subprocess.Popen(
>                 ['python3', 'echo_server.py'])
> 
> i get this error pytest error:
> E         WindowsError: [Error 2] The system cannot find the file
> specified
> 
> ..\..\..\lib\subprocess.py:856: WindowsError

Your working directory may differ from the directory containing 
echo_server.py. Try specifying the full path, e. g.

SCRIPT = 'c:\\path\to\\echo_server.py' # replace with your actual path
p = subprocess.Popen(
    ['python3', SCRIPT])




More information about the Tutor mailing list