[Buildbot-devel] Where did my stdout go?

Terry.Rankine at csiro.au Terry.Rankine at csiro.au
Tue Nov 6 02:21:37 UTC 2007


are you running the pywin32 extensions?
is the subprocess the bundled one or a custom backport?

I have had issues with subprocess before on windows, but havent seen
your errors before.

Regards,
Terry Rankine
(61) 08 6436 8601

-----Original Message-----
From: buildbot-devel-bounces at lists.sourceforge.net
[mailto:buildbot-devel-bounces at lists.sourceforge.net] On Behalf Of Greg
Ward
Sent: Tuesday, 6 November 2007 11:18 AM
To: buildbot-devel at lists.sourceforge.net
Subject: Re: [Buildbot-devel] Where did my stdout go?

On Nov 5, 2007 1:11 PM, I wrote:
> Crap.  I spoke too soon.  It worked perfectly with redirecting stdout 
> from the command line; it did not work inside Buildbot.
[...]
>   File "c:\Python24\lib\subprocess.py", line 413, in call
>     return Popen(*args, **kwargs).wait()
>   File "c:\Python24\lib\subprocess.py", line 534, in __init__
>     (p2cread, p2cwrite,
>   File "c:\Python24\lib\subprocess.py", line 594, in _get_handles
>     p2cread = self._make_inheritable(p2cread)
>   File "c:\Python24\lib\subprocess.py", line 635, in _make_inheritable
>     DUPLICATE_SAME_ACCESS)
> TypeError: an integer is required

Stil broken, and nothing I pass to subprocess.call() (or Popen()) will
make it work.  And this stack trace never happens when I run my test
program from the command line; it's only when running under Buildbot
that subprocess barfs.  So there's *something* strange about the
buildslave execution environment that breaks Python's subprocess module
(at least with 2.4.4).

I went so far as to pass "stdout=PIPE, stderr=PIPE" and then create two
threads to read the child's stdout/stderr and write them to
sys.stdout/sys.stderr.   No luck.  subprocess.call() blows up in
exactly the same way when I pass "stdout=PIPE" as when I pass
"stdout=sys.stdout".

I guess I'll try redirecting to a file and dumping that.  Yuck.

Greg

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Buildbot-devel mailing list
Buildbot-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/buildbot-devel




More information about the devel mailing list