> p = subprocess.Popen(["python", "6test.py"], > stdout=subprocess.PIPE, > stderr=subprocess.PIPE) The file name is wrong there; it should be: p = subprocess.Popen(["python", "moduleA.py"], stdout=subprocess.PIPE, stderr=subprocess.PIPE)