<div dir="ltr"><div>

<p>I'm trying to use QtSerialPort for a PyQt5 project but haven't found 
the magic.  Right now the code seems to be opening the port fine but I'm 
getting "QSocketNotifier: Invalid socket specified" error whenever I try
 to write to the open port. The code is attached<code>.</code></p><p><code><span style="font-family:arial,helvetica,sans-serif">Running Ubuntu 16.04, PyQt5, Qt 5.6.0</span><br></code></p><p><code>T</code>he output from this code on my machine is:</p><p style="margin-left:40px">ttyUSB0<br>ttyUSB1<br>False<br>True<br>QSocketNotifier: Invalid socket specified<code></code></p>

<p>Any idea what is causing the QSocketNotifier error, or how to troubleshoot it?  If you run this on your machine do you get the same error?</p><p>Thanks for any help you might share.</p><p>Dan<br></p></div></div>