Python stdout and Win 2003

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Philippe Martin

    #1

    Python stdout and Win 2003

    Hi,

    I have a program at a customer's site that seems to have random problem
    which eventually come down to not being able to read/write from serial
    ports.

    I trapped all the exceptions I could think of and all of them look like
    this:
    *************** *************** *****
    (ACCESS CONTROL)Fri, 24 Feb 2006 02:07:18 +0000 : Traceback (most recent
    call last):
    File "C
    \Python24\lib\s ite-packages\SC\rea ders\SC_IDTech_ MiniSmart_RS232 .py", line
    308, in Is_Card_Inserte d
    print 'CARD NOT INSERTED'
    IOError: [Errno 9] Bad file descriptor
    *************** *************** *****

    To me that means the print failed ... that stdout was not available anymore.

    Am I correct? .... what could cause this.


    Many thanks.

    Philippe







  • Philippe Martin

    #2
    Re: Python stdout and Win 2003

    PS: I forgot to mention that some of the "print"s are made from wxPython
    timer events.

    Philippe


    Philippe Martin wrote:
    [color=blue]
    > Hi,
    >
    > I have a program at a customer's site that seems to have random problem
    > which eventually come down to not being able to read/write from serial
    > ports.
    >
    > I trapped all the exceptions I could think of and all of them look like
    > this:
    > *************** *************** *****
    > (ACCESS CONTROL)Fri, 24 Feb 2006 02:07:18 +0000 : Traceback (most recent
    > call last):
    > File "C
    > \Python24\lib\s ite-packages\SC\rea ders\SC_IDTech_ MiniSmart_RS232 .py", line
    > 308, in Is_Card_Inserte d
    > print 'CARD NOT INSERTED'
    > IOError: [Errno 9] Bad file descriptor
    > *************** *************** *****
    >
    > To me that means the print failed ... that stdout was not available
    > anymore.
    >
    > Am I correct? .... what could cause this.
    >
    >
    > Many thanks.
    >
    > Philippe[/color]

    Comment

    Working...