Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 635880 - dev-python/PyQt5: USE webengine requires printsupport when widgets are enabled
Summary: dev-python/PyQt5: USE webengine requires printsupport when widgets are enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-30 10:54 UTC by Meoberto Whagbossa
Modified: 2017-11-12 06:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Resolves the issues with printsupport not being pulled in when webengine and widgets are enabled (PyQt5-printsupport_on_webengine.patch,1.38 KB, patch)
2017-10-30 11:06 UTC, Meoberto Whagbossa
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Meoberto Whagbossa 2017-10-30 10:54:37 UTC
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'
Comment 1 Meoberto Whagbossa 2017-10-30 11:06:23 UTC
Created attachment 500970 [details, diff]
Resolves the issues with printsupport not being pulled in when webengine and widgets are enabled
Comment 2 Michael Palimaka (kensington) gentoo-dev 2017-10-30 12:12:28 UTC
Which PyQt5 version did you test with? I couldn't reproduce with 5.7.1
Comment 3 Meoberto Whagbossa 2017-10-30 15:10:49 UTC
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"
Comment 4 Larry the Git Cow gentoo-dev 2017-11-12 06:06:26 UTC
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(+)