Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 449778 - dev-python/PyQt4 - configure.py: ImportError: No module named sipconfig
Summary: dev-python/PyQt4 - configure.py: ImportError: No module named sipconfig
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-02 15:30 UTC by C W Rose
Modified: 2013-01-06 04:17 UTC (History)
0 users

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 C W Rose 2013-01-02 15:30:35 UTC
PyQt4 on a current Gentoo system with sip-4.13.3 emerged correctly
fails to emerge with the error "No module named sipconfig

emerge --info output:
==========================
Portage 2.1.11.31 (default/linux/x86/10.0, gcc-4.5.4, glibc-2.15-r3, 3.5.7-gentoo-1 i686)
=================================================================
System uname: Linux-3.5.7-gentoo-1-i686-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.1
Timestamp of tree: Wed, 02 Jan 2013 00:45:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.6 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo Local
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=core2 -mtune=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--misspell-suggestions n"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo http://gentoo.osuosl.org http://distfiles.gentoo.org"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa berkdb bzip2 cairo cdr cli cracklib crypt cups cxx dbus doc dri esd firefox fortran gdbm gnome gpm gstreamer gtk iconv ipv6 java5 jpeg modules mudflap nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pcmcia pcre perl png pppd python qt3support readline samba session ssl svg tcpd tiff udev unicode v4l2 x86 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="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" CAMERAS="canon" 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="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy harness ide identity java mobility nb php profiler webcommon websvccommon" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" QEMU_SOFTMMU_TARGETS="i386" QEMU_USER_TARGETS="i386" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy fbdev 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Build log:
==================

tuppence portage # emerge  --verbose PyQt4

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

Calculating dependencies... done!
[ebuild  N     ] dev-python/PyQt4-4.9.4-r1  USE="X dbus doc opengl svg -assistant -debug -declarative -examples -kde -multimedia -phonon -sql -webkit -xmlpatterns" 0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-python/PyQt4-4.9.4-r1
 * PyQt-x11-gpl-4.9.4.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...        [ ok ]
>>> Unpacking source...
>>> Unpacking PyQt-x11-gpl-4.9.4.tar.gz to /var/tmp/portage/dev-python/PyQt4-4.9.4-r1/work
>>> Source unpacked in /var/tmp/portage/dev-python/PyQt4-4.9.4-r1/work
>>> Preparing source in /var/tmp/portage/dev-python/PyQt4-4.9.4-r1/work/PyQt-x11-gpl-4.9.4 ...
 * Applying PyQt4-4.7.2-configure.py.patch ...                           [ ok ]
 * Applying PyQt4-4.9.4-pyuic-custom-widgets.patch ...                   [ ok ]
 * Preparation of dev-python/PyQt4-4.9.4-r1 with CPython 2.7...
 * Preparation of dev-python/PyQt4-4.9.4-r1 with CPython 3.2...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/PyQt4-4.9.4-r1/work/PyQt-x11-gpl-4.9.4 ...
 * Configuration of dev-python/PyQt4-4.9.4-r1 with CPython 2.7...
python2.7 configure.py --confirm-license --bindir=/usr/bin --destdir=/usr/lib/python2.7/site-packages --sipdir=/usr/share/sip --assume-shared --no-timestamp --qsci-api --enable=QtCore --enable=QtNetwork --enable=QtScript --enable=QtXml --enable=QtGui --enable=QtDesigner --enable=QtScriptTools --enable=QtTest --enable=QtDBus --enable=QtOpenGL --enable=QtSvg CC=i686-pc-linux-gnu-gcc CXX=i686-pc-linux-gnu-g++ LINK=i686-pc-linux-gnu-g++ LINK_SHLIB=i686-pc-linux-gnu-g++ CFLAGS=-O2 -march=core2 -mtune=core2 -pipe CXXFLAGS=-O2 -march=core2 -mtune=core2 -pipe LFLAGS=-Wl,-O1 -Wl,--as-needed
Determining the layout of your Qt installation...
This is the GPL version of PyQt 4.9.4 (licensed under the GNU General Public
License) for Python 2.7.3 on linux2.
Found the license file pyqt-gpl.sip.
Checking to see if the QtGui module should be built...
Checking to see if the QtNetwork module should be built...
Checking to see if the QtDBus module should be built...
Checking to see if the QtOpenGL module should be built...
Checking to see if the QtScript module should be built...
Checking to see if the QtScriptTools module should be built...
Checking to see if the QtSvg module should be built...
Checking to see if the QtTest module should be built...
Checking to see if the QtXml module should be built...
Checking to see if the QtDesigner module should be built...
Checking to see if the dbus support module should be built...
Qt v4.8.4 free edition is being used.
SIP 4.13.3 is being used.
The Qt header files are in /usr/include/qt4.
The shared Qt libraries are in /usr/lib/qt4.
The Qt binaries are in /usr/bin.
The Qt mkspecs directory is in /usr/share/qt4.
These PyQt modules will be built: QtCore, QtGui, QtNetwork, QtDBus, QtOpenGL,
QtScript, QtScriptTools, QtSvg, QtTest, QtXml, QtDesigner.
The PyQt Python package will be installed in /usr/lib/python2.7/site-packages.
PyQt is being built with generated docstrings.
PyQt is being built with 'protected' redefined as 'public'.
The Designer plugin will be installed in /usr/lib/qt4/plugins/designer.
The QScintilla API file will be installed in /usr/share/qt4/qsci/api/python.
The dbus support module will be installed in
/usr/lib/python2.7/site-packages/dbus/mainloop.
The PyQt .sip files will be installed in /usr/share/sip.
pyuic4, pyrcc4 and pylupdate4 will be installed in /usr/bin.
Generating the C++ source for the QtCore module...
Creating the Makefile for the QtCore module...
Generating the C++ source for the QtGui module...
Creating the Makefile for the QtGui module...
Generating the C++ source for the QtNetwork module...
Creating the Makefile for the QtNetwork module...
Generating the C++ source for the QtDBus module...
Creating the Makefile for the QtDBus module...
Determining the OpenGL data types...
Generating the C++ source for the QtOpenGL module...
Creating the Makefile for the QtOpenGL module...
Generating the C++ source for the QtScript module...
Creating the Makefile for the QtScript module...
Generating the C++ source for the QtScriptTools module...
Creating the Makefile for the QtScriptTools module...
Generating the C++ source for the QtSvg module...
Creating the Makefile for the QtSvg module...
Generating the C++ source for the QtTest module...
Creating the Makefile for the QtTest module...
Generating the C++ source for the QtXml module...
Creating the Makefile for the QtXml module...
Generating the C++ source for the QtDesigner module...
Creating the Makefile for the QtDesigner module...
Generating the C++ source for the Qt module...
Creating the Makefile for the Qt module...
Creating QScintilla API file...
Creating top level Makefile...
Creating QPy support library for QtOpenGL Makefile...
Creating QPy support library for QtCore Makefile...
Creating QPy support library for QtGui Makefile...
Creating QPy support library for QtDesigner Makefile...
Creating QPy support library for QtDBus Makefile...
Creating QPy support libraries Makefile...
Creating dbus support module Makefile...
Creating pyuic4 wrapper...
Creating pyuic4 Makefile...
Creating pylupdate4 Makefile...
Creating pyrcc4 Makefile...
Creating Qt Designer plugin Makefile...
Creating pyqtconfig.py...
 * Running qmake ...                                                     [ ok ]
 * Running qmake ...                                                     [ ok ]
 * Running qmake ...                                                     [ ok ]
 * Running qmake ...                                                     [ ok ]
 * Running qmake ...                                                     [ ok ]
 * Running qmake ...                                                     [ ok ]
 * Configuration of dev-python/PyQt4-4.9.4-r1 with CPython 3.2...
python3.2 configure.py --confirm-license --bindir=/usr/bin --destdir=/usr/lib/python3.2/site-packages --sipdir=/usr/share/sip --assume-shared --no-timestamp --qsci-api --enable=QtCore --enable=QtNetwork --enable=QtScript --enable=QtXml --enable=QtGui --enable=QtDesigner --enable=QtScriptTools --enable=QtTest --enable=QtDBus --enable=QtOpenGL --enable=QtSvg CC=i686-pc-linux-gnu-gcc CXX=i686-pc-linux-gnu-g++ LINK=i686-pc-linux-gnu-g++ LINK_SHLIB=i686-pc-linux-gnu-g++ CFLAGS=-O2 -march=core2 -mtune=core2 -pipe CXXFLAGS=-O2 -march=core2 -mtune=core2 -pipe LFLAGS=-Wl,-O1 -Wl,--as-needed
Traceback (most recent call last):
  File "configure.py", line 32, in <module>
    import sipconfig
ImportError: No module named sipconfig
 * ERROR: dev-python/PyQt4-4.9.4-r1 failed (configure phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line   93:  Called src_configure
 *   environment, line 4984:  Called python_execute_function '-s' 'configuration'
 *   environment, line 3276:  Called configuration
 *   environment, line 4969:  Called die
 * The specific snippet of code:
 *           "${myconf[@]}" || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-python/PyQt4-4.9.4-r1'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/PyQt4-4.9.4-r1'`.
 * The complete build log is located at '/var/log/portage/dev-python:PyQt4-4.9.4-r1:20130102-151735.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-python/PyQt4-4.9.4-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/PyQt4-4.9.4-r1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/PyQt4-4.9.4-r1/work/PyQt-x11-gpl-4.9.4-3.2'
 * S: '/var/tmp/portage/dev-python/PyQt4-4.9.4-r1/work/PyQt-x11-gpl-4.9.4'

>>> Failed to emerge dev-python/PyQt4-4.9.4-r1, Log file:

>>>  '/var/log/portage/dev-python:PyQt4-4.9.4-r1:20130102-151735.log'
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-02 15:56:32 UTC
What happens when you re-emerge dev-python/sip first?
Comment 2 C W Rose 2013-01-05 11:41:21 UTC
dev-python/sip was emerged - the problem was fixed by running python-updater.
It's the first time I've built a new system with a slotted python, and
apparently, although the system was built with 2.x, there was still
confusion with 3.x