Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639354 - app-misc/anki-2.1.0_beta25 does not specify dependency on Python module 'PyQt5.QtWebEngineWidgets'
Summary: app-misc/anki-2.1.0_beta25 does not specify dependency on Python module 'PyQt...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-01 02:26 UTC by Michael Mounteney
Modified: 2018-01-22 02:40 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mounteney 2017-12-01 02:26:44 UTC
Installation via the command

    emerge -qa1 =app-misc/anki-2.1.0_beta25

completes normally and does cause some dependencies to be installed but on running anki, it exits with the message

    Traceback (most recent call last):
      File "/usr/lib/python-exec/python3.6/anki", line 6, in <module>
        import aqt
      File "/usr/lib64/python3.6/site-packages/aqt/__init__.py", line 14, in <module>
        from aqt.qt import *
      File "/usr/lib64/python3.6/site-packages/aqt/qt.py", line 17, in <module>
        from PyQt5.QtWebEngineWidgets import QWebEnginePage
    ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'

and in fact I don't know what Python package to install manually to provide that dependency.
Comment 1 Michael Mounteney 2017-12-01 02:27:09 UTC
$ emerge --info
Portage 2.3.16 (python 3.6.3-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-6.4.0, glibc-2.26-r3, 4.13.11-gentoo-6 x86_64)
=================================================================
System uname: Linux-4.13.11-gentoo-6-x86_64-Intel-R-_Core-TM-_i3-4010U_CPU_@_1.70GHz-with-gentoo-2.4.1
KiB Mem:     8063592 total,     74380 free
KiB Swap:    2199548 total,    542204 free
Timestamp of repository gentoo: Fri, 24 Nov 2017 19:30:01 +0000
Head commit of repository gentoo: 41682d1eb1c6fba307b3c3b0b2cce8607f2d2432
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.6-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.10.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.9::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/binutils:       2.28-r2::gentoo, 2.29.1-r1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.4.0::gentoo, 7.2.0::gentoo
sys-devel/gcc-config:     1.9.0::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.26-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts:

Installed sets: @base, @kde5-metal, @powerful, @wayland
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo ftp://mirror.pacific.net.au/linux/Gentoo "
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="3dnow 3dnowext X a52 aac acl acpi activities ada aio alsa amd64 autoipd avahi berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus declarative disk-partition doc dri dts dv dvb dvd dvdr emboss encode exif extras fam firefox flac fontconfig foomatic fortran freerdp gbm gd gdbm gif git glamor glibc-omitfp gnat_2017 gnutls gpm gstreamer gtk gtk3 handbook iconv imap inotify iscsi java jpeg jpeg2k kde kipi kpathsea kwallet lame latex lcms ldap libnotify lzma lzo mad mercurial mmap mms mng modules mp3 mp4 mpeg msn multilib musepack ncurses nfs nfsv41 nls nntp npp nptl odbc ogg openexr opengl openmp oscar oss pam pango pcre pdf phonon plasma png policykit postgres ppds pulseaudio qml qt5 quicktime rdesktop readline real rss sasl sdl sdl2 seccomp semantic-desktop session slang smime spam-report spamassassin spell sql ssh ssl startup-notification subversion svg systemd taglib tcpd theora threads tiff truetype udev udisks unicode upower usb v4l2 vaapi vcd vim-syntax vnc vorbis wavpack wayland webkit widgets win32codecs wmf wxwidgets x264 xattr xcb xcomposite xface xine xinerama xml xmp xnest xpm xscreensaver xv xvid yahoo zlib" ABI_X86="64" ALSA_CARDS="atiixp" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="en en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_6" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Michael Mounteney 2017-12-01 02:28:53 UTC
Now that anki-2.0.x is deprecated owing to its dependency on the obsolete Qt4 package, anki-2.1.x should be made available as soon as possible.
Comment 3 Michael Mounteney 2017-12-01 08:13:07 UTC
The missing dependency is dev-python/PyQt5 +webengine
Comment 4 Dennis Nezic 2017-12-04 03:28:57 UTC
I think PyQt5 also needs +widgets.... which will force me to painfully recompile that qtwebengine behemoth :'(
Comment 5 Michael Weber (RETIRED) gentoo-dev 2017-12-14 15:46:53 UTC
(In reply to Dennis New from comment #4)
> I think PyQt5 also needs +widgets....
This is mentioned in the ebuild. I look into this once dependencies are built.
Comment 6 Michael Weber (RETIRED) gentoo-dev 2017-12-15 15:09:55 UTC
 * Messages for package app-misc/anki-2.1.0_beta25:
 * Log file: /var/log/portage/build/app-misc/anki-2.1.0_beta25:20171215-145309.log.gz

 * QA Notice: .desktop files with MimeType= were found installed
 * but desktop mimeinfo cache has not been updated:
 *   /usr/share/applications/anki.desktop
 * Please make sure to call xdg_desktop_database_update()
 * in pkg_postinst() and pkg_postrm() phases of appropriate pkgs.
Comment 7 Michael Weber (RETIRED) gentoo-dev 2017-12-15 15:15:07 UTC
And /usr/lib64/python3.5/site-packages/anki/__init__.py
tests for python >=3.6 and aborts otherwise.

I try to lower the test to 3.5 once  dev-python/PyQt5[webengine] is built.
Comment 8 Larry the Git Cow gentoo-dev 2017-12-18 12:05:55 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f847d777f140a6e6c66d330f1061b068b25b947f

commit f847d777f140a6e6c66d330f1061b068b25b947f
Author:     Michael Weber <xmw@gentoo.org>
AuthorDate: 2017-12-18 12:05:37 +0000
Commit:     Michael Weber <xmw@gentoo.org>
CommitDate: 2017-12-18 12:05:37 +0000

    app-misc/anki: Fix dependencies.
    
    Thanks thanks Michael Mounteney and Dennis New.
    EAPI=6,
    remove unneeded overrides of src_configure and src_compile.
    
    Closes: https://bugs.gentoo.org/639354
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-misc/anki/anki-2.1.0_beta25.ebuild             | 26 ++++++++++++----------
 .../anki/files/anki-2.1.0_beta25-web-folder.patch  | 11 +++++++++
 2 files changed, 25 insertions(+), 12 deletions(-)
Comment 9 Larry the Git Cow gentoo-dev 2017-12-19 00:20:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c256849563d19e023385ef4cf9f55a550815359a

commit c256849563d19e023385ef4cf9f55a550815359a
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2017-12-18 02:17:07 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2017-12-19 00:18:57 +0000

    app-misc/anki: Drop last-rited versions
    
    Closes: https://bugs.gentoo.org/639354
    Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-misc/anki/Manifest           |  8 -----
 app-misc/anki/anki-2.0.31.ebuild | 70 ----------------------------------------
 app-misc/anki/anki-2.0.33.ebuild | 64 ------------------------------------
 app-misc/anki/anki-2.0.34.ebuild | 64 ------------------------------------
 app-misc/anki/anki-2.0.35.ebuild | 64 ------------------------------------
 app-misc/anki/anki-2.0.36.ebuild | 64 ------------------------------------
 app-misc/anki/anki-2.0.41.ebuild | 64 ------------------------------------
 app-misc/anki/anki-2.0.43.ebuild | 68 --------------------------------------
 app-misc/anki/anki-2.0.47.ebuild | 68 --------------------------------------
 9 files changed, 534 deletions(-)
Comment 10 Erik Hahn 2018-01-01 17:54:02 UTC
I still get this error after installing app-misc/anki-2.1.0_beta27.

erik@p5 ~/.steam/steam/steamapps/common/Starbound/storage $ emerge --info
Portage 2.3.13 (python 3.5.4-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-6.4.0, glibc-2.25-r9, 4.14.8-gentoo-r1-foo2 x86_64)
=================================================================
System uname: Linux-4.14.8-gentoo-r1-foo2-x86_64-Intel-R-_Core-TM-_i3-4000M_CPU_@_2.40GHz-with-gentoo-2.4.1
KiB Mem:    12167196 total,   3676404 free
KiB Swap:   12582908 total,  12513800 free
Timestamp of repository gentoo: Mon, 01 Jan 2018 17:30:01 +0000
Head commit of repository gentoo: 375bde85297fbd4af87b99ada3f7d3764a0e9417
Head commit of repository steam-overlay: 699d267a7358ca340ee684e68e5366419f8e0ded

sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.15.1-r1::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r9::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 

localrepo
    location: /usr/local/portage
    masters: gentoo

steam-overlay
    location: /usr/local/portage/steam-overlay
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli cracklib crypt cups cxx dbus dri dts dvd dvdr eds emacs emboss encode evo exif fam firefox flac fortran gdbm gif glamor gnome gpm gstreamer gtk iconv introspection ipv6 jpeg lcms libnotify libsecret mad mng modules mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt5 readline s3tc sdl seccomp session ssl startup-notification svg systemd tcpd tiff tracker trayicon truetype udev udisks unicode upower usb vorbis wifi wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev libinput" KERNEL="linux" L10N="de en en-GB en-DK" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en en_GB en_DK" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby22" STEAMGAMES="dont_starve source_engine tf2 witcher2" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 glyphimor 2018-01-22 02:40:23 UTC
Confirming Erik's report, this bug wasn't fixed -- still affects anki-2.1.0_beta27:

$ anki
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.6/anki", line 6, in <module>
    import aqt
  File "/usr/lib64/python3.6/site-packages/aqt/__init__.py", line 14, in <module>
    from aqt.qt import *
  File "/usr/lib64/python3.6/site-packages/aqt/qt.py", line 17, in <module>
    from PyQt5.QtWebEngineWidgets import QWebEnginePage
ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'

Not sure why it was marked FIXED. Looking at the diff in commit f847d777f140a6e6c66d330f1061b068b25b947f for anki-2.1.0_beta25, the PyQt5 dependency wasn't modified at all:

dev-python/PyQt5[gui,svg,webkit,${PYTHON_USEDEP}]

The webengine flag needs to be added. (Which then requires the webchannel flag, at least for PyQt5-5.7.1.)