Ticket #3802 defect new
win32 SerialPort requires a reactor that provides "addEvent" method, but doesn't have a good error message if it gets a different one
Description (last modified by glyph) (diff)
SerialPort raises the following exception on Windows if it is used with the default reactor:
File "twisted\internet\_win32serialport.py", line 56, in __init__
self.reactor.addEvent(self._overlappedRead.hEvent, self, 'serialReadEvent')
AttributeError: 'SelectReactor' object has no attribute 'addEvent'
It should say something more helpful when given a SelectReactor, explaining that win32eventreactor is required for serial port support on Windows.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

