Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350591 - app-text/calibre-0.7.37 fails to install - ImportError: dynamic module does not define init function (initkdeui)
Summary: app-text/calibre-0.7.37 fails to install - ImportError: dynamic module does n...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-04 20:24 UTC by Boyd Faulkner
Modified: 2011-01-06 16:49 UTC (History)
0 users

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


Attachments
build log from emerge (build.log,23.91 KB, text/plain)
2011-01-04 20:37 UTC, Boyd Faulkner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Boyd Faulkner 2011-01-04 20:24:52 UTC
calibre-0.7.37 fails to install

*
* Running gui
*

        Compiling form /var/tmp/portage/app-text/calibre-0.7.37/work/calibre/src/calibre/gui2/shortcuts.ui
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/__init__.py", line 159, in run_all
    self.run_cmd(self, opts)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/__init__.py", line 152, in run_cmd
    self.run_cmd(scmd, opts)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/__init__.py", line 155, in run_cmd
    cmd.run(opts)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/gui.py", line 36, in run
    self.build_forms()
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/gui.py", line 60, in build_forms
    build_forms(self.SRC, info=self.info)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/src/calibre/gui2/__init__.py", line 718, in build_forms
    compileUi(form, buf)
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/__init__.py", line 134, in compileUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports)
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/Compiler/compiler.py", line 19, in __init__
    CompilerCreatorPolicy())
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/uiparser.py", line 91, in __init__
    self.factory = QObjectCreator(creatorPolicy)
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/objcreator.py", line 61, in __init__
    self._cwFilters.append(plugin_locals["getFilter"]())
  File "<string>", line 22, in getFilter
ImportError: dynamic module does not define init function (initkdeui)

I have the latest sip 4.12, PyQt4 4.8.2 and pykde4 4.5.4 with the patch for 349682.

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge sip PyQt4 pykde4 (with patch)
3. emerge calibre
Actual Results:  
*
* Running gui
*

        Compiling form /var/tmp/portage/app-text/calibre-0.7.37/work/calibre/src/calibre/gui2/shortcuts.ui
Traceback (most recent call last):
  File "setup.py", line 99, in <module>
    sys.exit(main())
  File "setup.py", line 85, in main
    command.run_all(opts)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/__init__.py", line 159, in run_all
    self.run_cmd(self, opts)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/__init__.py", line 152, in run_cmd
    self.run_cmd(scmd, opts)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/__init__.py", line 155, in run_cmd
    cmd.run(opts)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/gui.py", line 36, in run
    self.build_forms()
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/setup/gui.py", line 60, in build_forms
    build_forms(self.SRC, info=self.info)
  File "/var/tmp/portage/app-text/calibre-0.7.37/work/calibre/src/calibre/gui2/__init__.py", line 718, in build_forms
    compileUi(form, buf)
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/__init__.py", line 134, in compileUi
    winfo = compiler.UICompiler().compileUi(uifile, pyfile, from_imports)
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/Compiler/compiler.py", line 19, in __init__
    CompilerCreatorPolicy())
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/uiparser.py", line 91, in __init__
    self.factory = QObjectCreator(creatorPolicy)
  File "/usr/lib/python2.6/site-packages/PyQt4/uic/objcreator.py", line 61, in __init__
    self._cwFilters.append(plugin_locals["getFilter"]())
  File "<string>", line 22, in getFilter
ImportError: dynamic module does not define init function (initkdeui)

Expected Results:  
Built the software.

portage sync'd today.  See issue on x86 and amd64.

build32 pykde4 # emerge --info
Portage 2.1.9.28 (default/linux/x86/10.0/desktop, gcc-4.4.4, glibc-2.12.1-r3, 2.6.36-gentoo i686)
=================================================================
System uname: Linux-2.6.36-gentoo-i686-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 04 Jan 2011 17:30:22 +0000
ccache version 3.1.3 [disabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r1, 2.7.1, 3.1.3
dev-util/ccache:     3.1.3
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.8
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.4.4-r1, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="rsync://vesper-l.dyn.coeli.org/gentoo-portage http://gentoo.oregonstate.edu"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa apache2 autoipd avahi berkdb bluetooth branding bzip2 cairo caps cdr cli consolekit cracklib crypt cups curl cxx dbus device-mapper dmraid dri dts dvd dvdr emboss encode exif extras fam fat fax firefox flac fontconfig fortran gd gdbm gdu gif gnome gnutls gpm gtk hal hfs hpijs iconv ipv6 jack jadetex jfs jpeg jpeg2k kde kdrive lcms ldap libcaca libnotify lirc lm_sensors lzma mad managesieve mdadm mikmod mmx mng modules mp3 mp4 mpeg mudflap mysql mysqli ncurses nls nptl nptlonly ntfs ogg openexr opengl openmp pam pango pcntl pcre pdf perl png policykit postgres ppds pppd pulseaudio python qt3support qt4 readline realtime reiserfs scanner sdl semantic-desktop session sieve sip spell sql sqlite sse sse2 ssl startup-notification suexec svg sysfs system-wide tcpd threads tiff tk truetype udev unicode usb v4l v4l2 vdr video vorbis wav webkit x264 x86 xcb xfce xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status suexec unique_id userdir usertrack vhost_alias" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev radeon intel vesa" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Boyd Faulkner 2011-01-04 20:37:32 UTC
Created attachment 258846 [details]
build log from emerge
Comment 2 Rafał Mużyło 2011-01-04 20:43:53 UTC
> dev-lang/python:     *2.6.6-r1, 2.7.1*, 3.1.3
Probably time for python-updater.
Comment 3 Boyd Faulkner 2011-01-04 22:21:27 UTC
I forgot to mention I had run python-updater.  I am running it again just in case.
Comment 4 Boyd Faulkner 2011-01-04 22:53:24 UTC
 * emerge -Dv1 --keep-going app-emulation/emul-linux-x86-medialibs:0 app-emulation/virtualbox-bin:0 app-office/openoffice-bin:0 app-office/openoffice-bin:0 dev-libs/boost:1.42 dev-python/bug-buddy-python:0 dev-python/gconf-python:2 dev-python/gnome-applets-python:0 dev-python/gnome-desktop-python:0 dev-python/gnome-keyring-python:0 dev-python/gnome-vfs-python:2 dev-python/libbonobo-python:2 dev-python/libgnome-python:2 dev-python/libgnomecanvas-python:2 dev-python/libwnck-python:0 sys-libs/tdb:0 x11-libs/vte:0

Yields no improvement.  Seems interesting that no qt or kde apps are updated.

I removed kde from the build of PyQt4 and calibre but I still get the error.
Comment 5 Boyd Faulkner 2011-01-04 23:51:22 UTC
I have one system where calibre still works and it has sip 4.11.2, PyQt4 4.8.1 and pykde 4.5.4.  I guess it is the sip upgrade.
Comment 6 Rafał Mużyło 2011-01-05 00:13:44 UTC
So, did you rebuild all packages using sip, as postinst message told you ?
Comment 7 Boyd Faulkner 2011-01-05 17:27:30 UTC
Yes and no.  I did so, as instructed, but it seems my method was faulty.
Rather than use the patch, I let it fail, patched it by hand and did
ebuild pkde4...ebuild compile install qmerge

I used the patch directory /etc/portage/patches/....pykde4...
and it built differently.  So you can close this user error unless you
wonder why, as I do, why ebuild did not work.  If you agree it should have, I
can open another bug on that.
Comment 8 Boyd Faulkner 2011-01-05 17:48:35 UTC
Oh, and thank you for your help. :-)