[Twisted-Python] SerialPort.loseConnection() BUG

biziap biziap fetbiz at gmail.com
Tue Jun 9 23:20:15 EDT 2009


Maybe you can try to call transport.flushInput(), transport.flushOutput()
before loseConnection().


2009/6/9 Nestor A. Diaz <nestor at tiendalinux.com>:
> Hello, there is a bug on the SerialPort Win32 implementation (don't know
> about the others), when i call the loseConnection method, it returns:
>
> twisted matrix exceptions.AttributeError:  'SerialPort' object has no
> attribute '_tempDataBuffer'
>
> if i wrap the serialport class and put a :
>
>        self._tempDataBuffer = ''
>
> in the __init__ method, i get:
>
> raise NotImplementedError("%s does not implement writeSomeData" %
> exceptions.NotImplementedError: __main__.MySerialPort does not implement
> writeSomeData
>
> however the port gets closed the right way.
>
> Slds.
>
> --
> Nestor A. Diaz
> Ingeniero de Sistemas
> Tel. +57 1-600-5490 x 211
> Cel. +57 316-227-3593
> Tel. SIP: sip:211 at tiendalinux.com
> Email/MSN: nestor at tiendalinux.com
> http://www.tiendalinux.com/
> Bogota, Colombia
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>




More information about the Twisted-Python mailing list