Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 362473 - app-text/calibre-0.7.52 requires dev-lang/python-2.7 - ?
Summary: app-text/calibre-0.7.52 requires dev-lang/python-2.7 - ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Zac Medico
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 374395
  Show dependency tree
 
Reported: 2011-04-07 16:55 UTC by K. Posern
Modified: 2011-12-17 18:35 UTC (History)
0 users

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


Attachments
calibre emerge log (app-text:calibre-0.7.52:20110407-051522.log,24.04 KB, text/plain)
2011-04-07 19:56 UTC, K. Posern
Details

Note You need to log in before you can comment on or make changes to this bug.
Description K. Posern 2011-04-07 16:55:24 UTC
According to this draft:
https://forums.gentoo.org/viewtopic-p-6643241.html#6643241

python2.7 is needed since >=0.7.51

It seems that emerge "=app-text/calibre-0.7.52" should be using python2.7 to compile, but still uses python2.6. See the compile log:
     http://tormen.pastebin.com/k1yGKt1G

I also ran: python-updater, revdep-rebuild -i. All done.
But emerge calibre still fails me with:
     ImportError: No module named importlib

I have all python versions calibre could possibly need installed:

> eselect python list
Available Python interpreters:
  [1]   python2.6 *
  [2]   python2.7
  [3]   python3.1
  [4]   python3.2

> Installed versions:  2.6.6-r2(2.6)(11:13:43 AM 02/22/2011)(doc examples gdbm ipv6 ncurses readline sqlite ssl threads tk wide-unicode xml -berkdb -build -elibc_uclibc -wininst) 2.7.1-r1(2.7)(03:46:00 PM 02/24/2011)(doc examples gdbm ipv6 ncurses readline sqlite ssl threads tk wide-unicode xml -berkdb -build -elibc_uclibc -wininst) 3.1.3-r1(3.1)(11:18:41 AM 02/22/2011)(doc examples gdbm ipv6 ncurses readline sqlite ssl threads tk wide-unicode xml -build -elibc_uclibc -wininst) 3.2(3.2)(11:15:56 AM 02/22/2011)(doc examples gdbm ipv6 ncurses readline sqlite ssl threads tk wide-unicode xml -build -elibc_uclibc -wininst)


Reproducible: Always




Portage 2.2.0_alpha29 (default/linux/amd64/10.0, gcc-4.4.5, glibc-2.11.3-r0, 2.6.38-rc7-nogo-pixel x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-rc7-nogo-pixel-x86_64-Intel-R-_Core-TM-_i7_CPU_M_620_@_2.67GHz-with-gentoo-2.0.2
Timestamp of tree: Thu, 07 Apr 2011 04:15:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1, 3.2
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.7.0::pentoo
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.5
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo science sunrise vmware x11 dev-jokey java-overlay lisp pentoo mozilla mysql python-experimental kPosern-local
Installed sets: @dev, @games, @gentoo, @info, @mm, @net, @office, @sys, @sys.specific, @tmp, @virt, @x
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 LOKI-EULA sun-bcla-java-vm skype-eula AdobeFlash-10.1 Introversion"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -mcx16 -msahf -msse4 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-O2 -march=native -mcx16 -msahf -msse4 -pipe"
DISTDIR="/vola/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner -1"
FEATURES="assume-digests binpkg-logs buildsyspkg collision-protect distlocks fail-clean fixlafiles fixpackages metadata-transfer news noinfo parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict suidctl unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -march=native -mcx16 -msahf -msse4 -pipe"
GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://mirror.the-best-hosting.net rsync://de-mirror.org/gentoo/"
LANG="en_GB.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en de fr en_GB"
MAKEOPTS="-j7"
PKGDIR="/vola/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS=" --exclude-from="/etc/portage/rsync_excludes" --delete-excluded --quiet"
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="/mnt/temp/gentoo"
PORTDIR="/mnt/vola/sd/portage"
PORTDIR_OVERLAY="/vola/layman/science /vola/layman/sunrise /vola/layman/vmware /vola/layman/x11 /vola/layman/jokey /vola/layman/java-overlay /vola/layman/lisp /vola/layman/pentoo /vola/layman/mozilla /vola/layman/mysql /LINKS/overlays/python-experimental/experimental /LINKS/overlays/mine"
SYNC="rsync://rsync1.de.gentoo.org/gentoo-portage"
USE="3ds 64bit 7zip R X a52 aac aalib ace acl acpi activefilter additions administrator agg aio alsa amd64 amr amrnb amrwb animgif apache2 apng applet ares async atm atmo atop audio auth bash-completion battery berkdb bittorrent bl blender blender-game bs2b bugzilla bundledlibevent bzip2 cairo ccache cdaudio cdda cddax cddb cdinstall cdio cdparanoia cdr cdrom cdsound cgi chipcard chm chroot clamd clamdtop cli clisp common-lisp connection-sharing corefonts cpufreq cpulimit cracklib crypt css cuda cue cups curl cxx dc1394 device-mapper dga dhclient dia dirac directfb disk-partition djvu dmi dnd docbook dot dri drm dts dv dvb dvd dvdnav dvdr dvdread dvi eap-tls eclipse emovix enca encode eolconv escreen exif expat extensions extra extra-algorithms extra-cardsets faac faad fat fbcon fbcondecor festival ffmpeg fftw flac flash flite fltk fluidsynth fontconfig foomaticdb fortran fpx freesound ftp fts3 fuse galago gallium games garmin gcdmaster gcj gcrypt gd gdal gdbm gdl gdu gecko geldkarte geoip ggi gif gimp git github glade glib glitz glsa glut gme gmp gnome-keyring gnuplot gnutls gpac gpg gpgme gphoto2 gpm grace grammar graphics graphviz gre grub gs gsl gtk gtkhtml guile gzip h323 hbci hddtemp hdri hpn hvm icecast iconv icoutils icu id3 id3tag idea idn ieee1394 imagemagick imap imlib inkjar inotify inquisitio ioctl iptc ipv6 jabber jadetex java6 jbig jce jingle jpeg jpeg2k kate kernel-helper key-screen keyring keyscrub kqemu kvm ladspa lame laptop lastfm lastfmradio latex lcms libass libburn libcaca libgda libsamplerate libsexy libssh2 libsysfs libtiger libv4l2 lightning linuxthreads-tls live lm_sensors logrotate logwatch lua lvm lvm2 lyrics lyrics-screen lyx lzma lzo mad madwifi maildir mailwrapper maps matroska mbox mbrola md5sum mdev mem-scramble metalink metric midi mikmod mime mimencode ming mixer mjpeg mkl mmx mmxext mng moc modplug modules moneyplex monolithic-build mp2 mp3 mpd mpeg mplayer mtp mudflap multilib multiprocess multiuser musepack music musicbrainz nas ncurses nemesi net nethack network networking nntp nocd normalize nptl nptlonly nut nvidia objc objc++ objc-gc ocaml ocamlopt odbc ofx ogg ogm ole openal openct openexr opengl openmp openssl opensslcrypt openvg openvpn pam pango parted passwordsave pcap pcmcia pcre pcsc-lite pda pdf perl php phyp pink pkcs11 player plotutils pm-utils pmu png pnm pop portage portaudio posix postscript pppd pptp preview-latex proj projectm pstricks publishers pvr pygrub python q32 qa qdbm qemu qt3support quicktime quotes radio radius rar raw rcs rdesktop rdesktop-vrdp readline realmedia regex reiser4 replaygain rle rtc rtf rtsp samba sasl scanner schroedinger science screen screenshot script scripting scripts sdl sdl-image sdl-sound sdlaudio secure-delete session shine shout sid sidebar sieve sift skey skins slang smartcard smi smime sndfile snmp socks5 sound sounds soup sox speech speex spell sqlite sqlite3 srt sse sse2 sse3 sse4 sse4a ssh ssh2 ssl ssse3 stream stream4udp svg svgz sysfs syslog system-sqlite t1lib taglib tagwriting tetex tex4ht tga theora thesaurus threads thunderbird tidy tiff timidity tivo tk tls tools tor tordns truetype twolame type1 udev uml unicode unlock-notify unzip usb userlocales utils v4l2 vaapi vapigen vcd vcdinfo vcdx vdpau video videos vim vim-pager vim-syntax vim-with-x virtualbox visibility visualizer vlm vmx voice vorbis vpx wav wavpack webkit webmail win32 wineappdb winetriks wma wma-fixed wmf wmp wxwindows x264 xanim xattr xcomposite xen xetex xfce xft xinerama xml xmp xorg xosd xpm xscreensaver xslt xterm xv xvid xvmc yv12 zip zlib zoran zsh-completion zvbi" 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" 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 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" CAMERAS="fuji" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de fr en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa i810 fbdev intel nvidia" 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

=================================================================
                        Package Settings
=================================================================

app-text/calibre-0.7.49 was built with the following:
USE="bash-completion (multilib)"
Comment 1 K. Posern 2011-04-07 17:01:57 UTC
To my knowledge the package can specify what python version to use to build (like specifically request python2.7 (and use it)).
--> this should be a bug fixed within the package.

I am actually referring to this:
# Dependency on any version of Python 2, which is at least 2.7.*
PYTHON_DEPEND="2:2.7"
FROM: http://www.gentoo.org/proj/en/Python/developersguide.xml

Because to me this should then also use python2.7 to compile, setup... no?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-07 17:24:38 UTC
(In reply to comment #0)
>      http://tormen.pastebin.com/k1yGKt1G

Please attach that file to this bug report.
Comment 3 K. Posern 2011-04-07 19:56:25 UTC
Created attachment 268921 [details]
calibre emerge log

I did not attach the file, because the last time I tried this gentoo bugzilla complained that my emerge log was too big :( ... anyways here is the file.
Comment 4 Jeroen Roovers (RETIRED) gentoo-dev 2011-04-07 21:31:27 UTC
(In reply to comment #3)
> Created attachment 268921 [details]
> calibre emerge log

Thanks.

> I did not attach the file, because the last time I tried this gentoo bugzilla
> complained that my emerge log was too big :( ... anyways here is the file.

You could always compress the file.
Comment 5 Zac Medico gentoo-dev 2011-04-08 01:35:45 UTC
Thanks, this is fixed in cvs.
Comment 6 K. Posern 2011-04-08 13:15:00 UTC
Merci! Works like charm :)

P.S.: Maybe just as a side note for others that might have the same setup than me:

If your main python is 2.6, but like in this case there are now some programs that move on to python 2.7: You need to add USE_PYTHON="2.6 2.7 3.2" to /etc/make.conf:

By default things get only installed for the MAIN version (2 or 3) of python, so 2.6 and 3.2 in my case (see eselect python list).

But calibre depends on PyQt4 and this needs to be also compiled/installed for python 2.7 --> add the USE_PYTHON directive to /etc/make.conf and run the python-updater and try emerge calibre again :)