[Python-modules-team] Bug#941959: python3-pyqt5.qtwebengine: QWebEngineUrlScheme seems not to be exported
Dmitry Shachnev
mitya57 at debian.org
Tue Oct 8 19:12:32 BST 2019
Hi Norbert!
On Tue, Oct 08, 2019 at 01:23:44PM +0900, Norbert Preining wrote:
> When I try to import QWebEngineUrlScheme I get an error
> $ python3
> >>> from PyQt5.QtWebEngineCore import QtWebEngineUrlScheme
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: cannot import name 'QtWebEngineUrlScheme' from 'PyQt5.QtWebEngineCore' (/usr/lib/python3/dist-packages/PyQt5/QtWebEngineCore.cpython-37m-x86_64-linux-gnu.so)
>
> But it seems it should be there since there is also
> /usr/share/sip/PyQt5/QtWebEngineCore/qwebengineurlscheme.sip
That class is only available since Qt 5.12, however right now we ship
Qt 5.11 in sid. So you need to wait until Qt is updated (see #941093).
Also, in your import command you have an extra âtâ. It starts with Q,
not with Qt.
--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20191008/7ccc004b/attachment-0001.sig>
More information about the Python-modules-team
mailing list