ImportError: No module named sipconfig

Und dieses mal macht das Paket dev-python/PyQt4-4.3.3 Probleme und lässt sich nicht installieren. Emerge bricht mit folgender Fehlermeldung ab:

# emerge -uND world
Calculating world dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 135) dev-python/PyQt4-4.3.3 to /
 * PyQt-x11-gpl-4.3.3.tar.gz RMD160 SHA1 SHA256 size ;-) ...              [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking PyQt-x11-gpl-4.3.3.tar.gz ;-) ...                             [ ok ]
>>> Unpacking source...
>>> Unpacking PyQt-x11-gpl-4.3.3.tar.gz to /var/tmp/portage/dev-python/PyQt4-4.3.3/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/dev-python/PyQt4-4.3.3/work/PyQt-x11-gpl-4.3.3 ...
Traceback (most recent call last):
  File "configure.py", line 30, in <module>
    import sipconfig
ImportError: No module named sipconfig
make: *** No targets specified and no makefile found.  Stop.
 *
 * ERROR: dev-python/PyQt4-4.3.3 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2832:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed

Das geschulte Auge sieht sofort, dass ein Problem mit dem Paket dev-python/sip vorhanden ist.

Lösung

Die Lösung dieses Problems ist relativ einfach: ein emerge dev-python/sip startet die Neuinstallation und and danach lässt sich auch dev-python/PyQt4-4.3.3 problemlos kompilieren:

# emerge -av sip

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-python/sip-4.7.3  USE="-debug" 436 kB

Total: 1 package (1 reinstall), Size of downloads: 436 kB

Would you like to merge these packages? [Yes/No]