Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 360925 - mail-client/thunderbird-3.1.9 compile fails because of Python ImportError
Summary: mail-client/thunderbird-3.1.9 compile fails because of Python ImportError
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-28 14:35 UTC by Daniel Troeder
Modified: 2011-05-06 11:37 UTC (History)
1 user (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 Daniel Troeder 2011-03-28 14:35:06 UTC
I cannot compile TB, because some Python imports fail. If I run python manually I don't get any import problems, and no other python software fails.


[ebuild   R   ] mail-client/thunderbird-3.1.9  USE="alsa crypt dbus gnome ldap libnotify lightning startup-notification system-sqlite wifi -bindist -custom-optimization -debug% -mozdom" LINGUAS="de -af -ar -be -bg -bn -bn_BD -ca -cs -da -el -en -en_GB -en_US -es -es_AR -es_ES -et -eu -fi -fr -fy -fy_NL -ga -ga_IE -he -hu -id -is -it -ja -ko -lt -nb -nb_NO -nl -nn -nn_NO -pa -pa_IN -pl -pt -pt_BR -pt_PT -ro -ru -si -sk -sl -sq -sv -sv_SE -tr -uk -zh -zh_CN -zh_TW" 0 kB


>>> Source configured.
>>> Compiling source in /gentoo/tmp/build/working/portage/mail-client/thunderbird-3.1.9/work/comm-1.9.2 ...
make -j3 -j1 
make -C mozilla default
make[1]: Entering directory `/gentoo/tmp/build/working/portage/mail-client/thunderbird-3.1.9/work/comm-1.9.2/mozilla'
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "./config/printconfigsetting.py", line 1, in <module>
    import configobj, sys
  File "/gentoo/tmp/build/working/portage/mail-client/thunderbird-3.1.9/work/comm-1.9.2/mozilla/config/configobj.py", line 19, in <module>
    from __future__ import generators
ImportError: No module named __future__

[..]
this repeats a little (-j3 ?) and then the build dies.


Portage 2.1.9.45 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.37-tuxonice.maya.drm-as-module x86_64)
=================================================================
System uname: Linux-2.6.37-tuxonice.maya.drm-as-module-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.2
Timestamp of tree: Mon, 28 Mar 2011 07:45:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.5
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.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.38 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -msse4.1 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/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="-march=native -msse4.1 -O2 -pipe"
DISTDIR="/gentoo/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/gentoo/pkg"
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="/gentoo/tmp/build/working"
PORTDIR="/gentoo/portage+edb+pkg/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/Spring /var/lib/layman/multimedia /gentoo/overlays/gentoo-main/daniels_overlay"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 applet archive asyncns autoipd avahi bash-completion berkdb bluetooth bonjour branding brasero bzip2 cairo caps cdaudio cdda cddax cddb cdio cdr cdrkit cli clucene config-file connection-sharing consolekit cracklib crypt css cups curl custom-optimization cxx daap dbus device-mapper dga dhclient dhcp divx dns dri dts dv dvb dvd dvdr dvdread dvi eds enca encode exif expat expoblending faac faad fam fame fat ffmpeg flac fontconfig fts3 fuse galago gcj gconf gd gdbm gdu gedit geolocation gif gimp git glibc-omitfp gmedia gnome gnome-keyring gnutls gphoto2 gpm gps gs gtk gzip h323 hddtemp hpijs http-forms http-server iconv icu id3tag ieee1394 imagemagick imlib inotify ipv6 irc jabber java joystick jpeg kdrive kernel-patch kpathsea lame laptop lcms ldap libass libcaca libnotify lm_sensors lzma lzo mad maps matroska mdnsresponder-compat milter mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib musicbrainz nautilus ncurses net network networkmanager nfs nfsv3 nfsv4 nls nntp nptl nptlonly nsplugin nss ntfs ntp nuv offensive ogg opengl openmp optimization pam pch pcre pdf perl pidgin pipechan plotutils png postproc postscript ppds pppd pth pulseaudio python qemu qemu-ifup qos qt3support quicktime quotas ramfs rar readline realmedia realtime reiserfs remote rtmp rtsp ruby18 samba scanner sdl secure-delete session shout sip smp spell sqlite sse sse2 sse3 sse4.1 ssl ssse3 startup-notification stream subtitles subversion svg sysfs system-sqlite taglib tagwriting tcpd theora threads thumbnail tiff truetype twolame udev unicode upnp usb uuid v4l2 vaapi vcd vcdinfo vcdx video vorbis vpx wav wifi wmf wmp wps wxwidgets x264 xattr xfs xinerama xml xmlrpc xmp xorg xrandr xscreensaver xulrunner xv xvid zeroconf zlib" ALSA_CARDS="hda-intel" 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 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="evdev keyboard mouse aiptek synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeon 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, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2011-03-29 06:50:54 UTC
what if you run python-updater ?

what is your default python interpreter (`python --version`) ?  if it is 3.x, what if you use eselect to pick python 2.x ?

please post the full build.log as an attachment
Comment 2 Daniel Troeder 2011-03-30 21:07:05 UTC
maya ~ # python --version
Python 2.7.1

maya ~ # python-updater
 * Starting Python Updater...
 * Main active version of Python:  2.7
 * Active version of Python 2:     2.7
 * Active version of Python 3:     3.1
 *   Adding to list: app-emulation/emul-linux-x86-baselibs:0
 *   Adding to list: app-office/dia:0
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: app-office/gnumeric:0
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: app-office/libreoffice-bin:0
 *   Adding to list: dev-libs/boost:1.42
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 *   Adding to list: x11-libs/vte:0
 *     check: manual [Added to list manually, see CHECKS in manpage for more information.]
 * emerge -Dv1 --keep-going app-emulation/emul-linux-x86-baselibs:0 app-office/dia:0 app-office/gnumeric:0 app-office/libreoffice-bin:0 dev-libs/boost:1.42 x11-libs/vte:0

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

Calculating dependencies... done!
[ebuild   R   ] app-emulation/emul-linux-x86-baselibs-20110129  USE="-development" 45,264 kB
[ebuild   R   ] dev-libs/boost-1.42.0-r2  USE="eselect icu python tools -debug -doc -mpi -static-libs -test" 32,644 kB
[ebuild  N    ] virtual/mta-0  0 kB
[ebuild   R   ] app-office/libreoffice-bin-3.3.2  USE="gnome java -offlinehelp" LINGUAS="en -af -ar -as -ast -be_BY -bg -bn -bo -br -brx -bs -ca -ca_XV -cs -cy -da -de -dgo -dz -el -en_GB -en_ZA -eo -es -et -eu -fa -fi -fr -ga -gl -gu -he -hi -hr -hu -id -is -it -ja -ka -kk -km -kn -ko -kok -ks -ku -lo -lt -lv -mai -mk -ml -mn -mni -mr -my -nb -ne -nl -nn -nr -ns -oc -om -or -pa_IN -pl -pt -pt_BR -ro -ru -rw -sa_IN -sat -sd -sh -si -sk -sl -sq -sr -ss -st -sv -sw_TZ -ta -te -tg -th -tn -tr -ts -ug -uk -uz -ve -vi -xh -zh_CN -zh_TW -zu" 0 kB
[ebuild   R   ] x11-libs/vte-0.26.2  USE="python -debug -doc -glade (-introspection)" 1,281 kB
[ebuild   R   ] app-office/dia-0.97.1  USE="cairo gnome png python zlib -debug -doc" 6,676 kB
[ebuild   R   ] app-office/gnumeric-1.10.14  USE="gnome perl python" 0 kB

Total: 7 packages (1 new, 6 reinstalls), Size of downloads: 85,863 kB

----

python-updater + emerge took 55 minutes - but thunderbird compile still fails :(
Comment 3 Daniel Troeder 2011-03-30 21:09:19 UTC
I want to upload the build log, but cannot. It always says: "You must enter a description for the attachment." - but I do enter a description!
Comment 4 Daniel Troeder 2011-03-30 21:12:15 UTC
Sorry - in lack of upload possibility I used pastebin: http://pastebin.com/pi79fLwU
Comment 5 Daniel Troeder 2011-05-06 11:37:59 UTC
Found out what was the problem: a previous uninstall of python-2.6 was only partial./usr/include/python2.6 and /usr/bin/python2.6 was left, and that was executed. After manually removing it python2.7 was used and the compile went through without a problem.
Sorry for the noise.