Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #110007 > unrolled thread

PyQt5: is the wrapper incomplete?

Started byjladasky@itu.edu
First post2016-06-15 19:54 -0700
Last post2016-06-16 00:25 -0700
Articles 6 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  PyQt5: is the wrapper incomplete? jladasky@itu.edu - 2016-06-15 19:54 -0700
    Re: PyQt5: is the wrapper incomplete? Vincent Vande Vyvre <vincent.vande.vyvre@telenet.be> - 2016-06-16 09:15 +0200
      Re: PyQt5: is the wrapper incomplete? jladasky@itu.edu - 2016-06-23 19:26 -0700
      Re: PyQt5: is the wrapper incomplete? jladasky@itu.edu - 2016-06-23 19:40 -0700
    Re: PyQt5: is the wrapper incomplete? Mark Summerfield <list@qtrac.plus.com> - 2016-06-16 00:22 -0700
      Re: PyQt5: is the wrapper incomplete? Mark Summerfield <list@qtrac.plus.com> - 2016-06-16 00:25 -0700

#110007 — PyQt5: is the wrapper incomplete?

Fromjladasky@itu.edu
Date2016-06-15 19:54 -0700
SubjectPyQt5: is the wrapper incomplete?
Message-ID<7a8f722a-f4e6-419e-ab0e-982754ad0df9@googlegroups.com>
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 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?

Any guidance is appreciated, thanks!

[toc] | [next] | [standalone]


#110017

FromVincent Vande Vyvre <vincent.vande.vyvre@telenet.be>
Date2016-06-16 09:15 +0200
Message-ID<mailman.88.1466061365.2288.python-list@python.org>
In reply to#110007
Le 16/06/2016 04:54, jladasky@itu.edu a écrit :
> 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 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?
>
> Any guidance is appreciated, thanks!

On Debian, this is a separate package python3-pyqt5.qtserialport, I 
don't know for other Linux

After install you can use:

from PyQt5.QtSeriaPort import QSerialPort

Vincent

[toc] | [prev] | [next] | [standalone]


#110474

Fromjladasky@itu.edu
Date2016-06-23 19:26 -0700
Message-ID<260274f6-b3b2-49e0-bb16-27b8866401b2@googlegroups.com>
In reply to#110017
On Thursday, June 16, 2016 at 12:16:21 AM UTC-7, Vincent Vande Vyvre wrote:

> On Debian, this is a separate package python3-pyqt5.qtserialport


Many thanks, Vincent, that was exactly what I needed!

[toc] | [prev] | [next] | [standalone]


#110478

Fromjladasky@itu.edu
Date2016-06-23 19:40 -0700
Message-ID<272b06d8-3404-4121-b601-78b1041d649d@googlegroups.com>
In reply to#110017
On Thursday, June 16, 2016 at 12:16:21 AM UTC-7, Vincent Vande Vyvre wrote:

> On Debian, this is a separate package python3-pyqt5.qtserialport, I 
> don't know for other Linux
> 
> After install you can use:
> 
> from PyQt5.QtSeriaPort import QSerialPort

Thank you Vincent, that is exactly what I needed!

[toc] | [prev] | [next] | [standalone]


#110018

FromMark Summerfield <list@qtrac.plus.com>
Date2016-06-16 00:22 -0700
Message-ID<fea0c6f2-18e6-4299-9b19-9c4992520aed@googlegroups.com>
In reply to#110007
On Thursday, June 16, 2016 at 3:54:53 AM UTC+1, jlad...@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

[toc] | [prev] | [next] | [standalone]


#110019

FromMark Summerfield <list@qtrac.plus.com>
Date2016-06-16 00:25 -0700
Message-ID<efcb3e97-a372-4757-bb12-2496f18eaf50@googlegroups.com>
In reply to#110018
On Thursday, June 16, 2016 at 8:22:33 AM UTC+1, Mark Summerfield wrote:
> On Thursday, June 16, 2016 at 3:54:53 AM UTC+1, jlad...@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.

Sorry, my mistake, you have to install it as a separate package as Vincent explained.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web