As I was trying to diagnose some problems I was having building app-misc/anki from their upstream (release 2.1 which is not yet in the portage tree), I came across some problems with QtWebEngine. After trying to import QtWebEngineWidgets from the python3.6 console, I got it to complain about missing QtPrintSupport. Reproducible: Always Steps to Reproduce: 1. Open an interactive Python console 2. Execute 'from PyQt5 import QtWebEngineWidgets' Actual Results: Couldn't import QtWebEngineWidgets due to missing QtPrintSupport. Expected Results: The module should have been loaded. Logs from the python console: >>> from PyQt5 import QtWebEngineWidgets Traceback (most recent call last): File "<stdin>", line 1, in <module> File "<frozen importlib._bootstrap>", line 1017, in _handle_fromlist File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 658, in _load_unlocked File "<frozen importlib._bootstrap>", line 571, in module_from_spec File "<frozen importlib._bootstrap_external>", line 922, in create_module File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed File "<frozen importlib._bootstrap>", line 971, in _find_and_load File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked ModuleNotFoundError: No module named 'PyQt5.QtPrintSupport'
Created attachment 500970 [details, diff] Resolves the issues with printsupport not being pulled in when webengine and widgets are enabled
Which PyQt5 version did you test with? I couldn't reproduce with 5.7.1
I tried 5.9 with the following USE flags: "bluetooth dbus declarative gui network opengl svg webchannel webengine widgets -debug -designer -examples -gles2 -help -location -multimedia -positioning -printsupport -sensors -serialport -sql -testlib -webkit -websockets -x11extras -xmlpatterns"
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7620c47361b1cecfeedc8e1bdcf74225a3a7ba51 commit 7620c47361b1cecfeedc8e1bdcf74225a3a7ba51 Author: Davide Pesavento <pesa@gentoo.org> AuthorDate: 2017-11-12 06:05:18 +0000 Commit: Davide Pesavento <pesa@gentoo.org> CommitDate: 2017-11-12 06:06:05 +0000 dev-python/PyQt5: version bump Also add missing REQUIRED_USE, thanks to Meoberto Whagbossa in bug 635880. Closes: https://bugs.gentoo.org/635880 Package-Manager: Portage-2.3.13, Repoman-2.3.4 dev-python/PyQt5/Manifest | 1 + dev-python/PyQt5/PyQt5-5.9.1.ebuild | 198 ++++++++++++++++++++++++++++++++++++ 2 files changed, 199 insertions(+)