[wingide-users] subprocess.Popen works when run in shell, but not in IDE.

Wingware Support support at wingware.com
Fri Oct 25 08:26:45 MDT 2013


Michael Bernhard Arp Sørensen wrote:
> I have a strange problem in the IDE. The debugger halts when caling an 
> external bat-file in Windows. It works perfectly when running the 
> program in CMD.EXE.
>
> I call an external program 2 times. This line works when running from 
> the IDE:
>
> result = str(subprocess.check_output(['dmidecode.exe']))
>
> and this line halts in the IDE:
>
> p = subprocess.Popen(['getavstatus.bat'], stdout=subprocess.PIPE)
>
> Again, they both works fine when the program is executed in the CMD.EXE.
>
> Any idea why?

Can you send details of how it halts?  Is it crashing outright, or 
posting an exception, or something else?  If it's an exception, please 
send the traceback.

My initial guess is that it might be due to setting stdout so it might 
be worth removing that just to see if you get the same error.

Thanks,

-- 

Stephan Deibel
Wingware | Python IDE
Advancing Software Development

www.wingware.com


More information about the wingide-users mailing list