PyQt5: is the wrapper incomplete?

Mark Summerfield list at qtrac.plus.com
Thu Jun 16 03:22:19 EDT 2016


On Thursday, June 16, 2016 at 3:54:53 AM UTC+1, jlad... at itu.edu wrote:
> I am developing a data acquisition system for a custom device that communicates over USB.  On the host computer side, I am using PyQt5.4.  My Linux box has both Qt4 and Qt5 installed on it.  I assume that PyQt5.4 compiled on top of Qt5 automatically.  I'm not sure how to check that.

In IDLE or at some other Python prompt or in a tiny test.py file:

from PyQt5 import QtCore
print(QtCore.qVersion())

> In any case, I used PySerial to handle the USB communication.  I just noticed that Qt also has serial features.  I need to give the completed program to other users, on Windows no less.  If I can forego PySerial and use Qt's serial interface instead, it would simplify the installation.
> 
> Now, the PyQt5 documentation implies that a module called QtSerial exists.  But while I can write...
> 
> from PyQt5.QtWidgets import (...), or
> from PyQt5.QtGui import (...), or
> from PyQt5.QtCore import (...),
> 
> ...attempting to import from PyQt5.QtSerial raises an ImportError.
> 
> I've tried many variations on the spelling, and I've tried various import statements to inspect the (very large and complex) PyQt5 namespace.  I haven't found the QtSerial classes.  Are they even there?  Maybe the wrapping of the library is incomplete?

In Ubuntu 14.04 there is no QtSerial or QtSerialPort.

> Any guidance is appreciated, thanks!

The best place to ask about the PyQt bindings is the PyQt mailing list:
https://www.riverbankcomputing.com/mailman/listinfo/pyqt



More information about the Python-list mailing list