WYAE - FWTOOLS Mailing List Archive


Re: [fwtools] help with fwdoc_used_objects.py
From:Volker Tanger
Date: Sat, 10 Mar 2007 05:33:17 +0100

Greetings!

On Fri, 09 Mar 2007 15:30:54 -0500
"David Pascoe"  wrote:
>
> Using Windows XP & Python 2.5, I run fw1r55_to_fwdoc.pl and get
> successful  output, but then when I try to send that output
> (fwdoc1.txt) as input into  fwdoc_used_objects.py, I keep getting the
> following:
> 
>    C:\FW\Working Files>type fwdoc1.txt | fwdoc_used_objects.py
>    The process tried to write to a nonexistent pipe.
>    Traceback (most recent call last):
>      File "C:\FW\Working Files\fwdoc_used_objects.py", line 56, in
>      
>        fwdoctxt = sys.stdin.read(MAXSIZE)
>    IOError: [Errno 9] Bad file descriptor
> 
> Same situation when piping the output into fwdoc_to_html.py or 
> fwdoc_to_txt.py.

Huh, has Python 2.5 dropped stdio from the SYS library? I've tested it
with a current ActivePython under WinXP and that worked fine.

One thing that *might* be the case that your Python is more sensitive to
LF vs. CR/LF which is a bit inconsistent within the files. Thus I have
at least corrected that and uploaded "Unixified" .py in the
distribution files.

Strange...

Bye

Volker

-- 

Volker Tanger    http://www.wyae.de/volker.tanger/
--------------------------------------------------
volker.tanger@wyae.de              PGP Fingerprint
378A 7DA7 4F20 C2F3 5BCC  8340 7424 6122 BB83 B8CB