[Biopython] subprocess.Popen problem

Peter Cock p.j.a.cock at googlemail.com
Thu Nov 3 09:31:38 UTC 2011


On Thu, Nov 3, 2011 at 3:16 AM, Mic <mictadlo at gmail.com> wrote:
> Thank you, I wrote the following code and not sure whether it is what did
> write me.

Depending on the tool I would check for a non-zero return code rather
than just treating 1 as an error.

You are also not collecting stderr/stdout correctly. If you send them
to a pipe, the strings from the .communicate will be empty. Rather
reads from the process object's .stdout and .stderr handles. See:
http://docs.python.org/library/subprocess.html

Peter



More information about the Biopython mailing list