Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603684 - =app-text/calibre-2.73.0 - ImportError: No module named six
Summary: =app-text/calibre-2.73.0 - ImportError: No module named six
Status: RESOLVED FIXED
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: 2016-12-25 11:06 UTC by David Kredba
Modified: 2016-12-25 11:12 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 David Kredba 2016-12-25 11:06:26 UTC
I can't start calibre gui.

calibre-debug  -g
calibre 2.73  embedded-python: False is64bit: True
Linux-4.9.0-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.3 Linux ('64bit', 'ELF')
('Linux', '4.9.0-gentoo', '#1 SMP PREEMPT Sat Dec 17 22:23:56 CET 2016')
Python 2.7.12
Linux: ('Gentoo Base System', '2.3', '')
Failed to initialize plugin: Apple iTunes interface (1, 1, 1)
Failed to initialize plugin: <class 'calibre.devices.apple.driver.ITUNES'>
Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/customize/ui.py", line 679, in initialize_plugins
    plugin = initialize_plugin(plugin, None if isinstance(zfp, type) else zfp)
  File "/usr/lib64/calibre/calibre/customize/ui.py", line 644, in initialize_plugin
    %tb) + '\n'+tb)
InvalidPlugin: Inicializace modulu Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/customize/ui.py", line 637, in initialize_plugin
    p = plugin(path_to_zip_file)
  File "/usr/lib64/calibre/calibre/devices/apple/driver.py", line 319, in __init__
    self.verbose = self.settings().extra_customization[self.DEBUG_LOGGING]
  File "/usr/lib64/calibre/calibre/devices/apple/driver.py", line 1093, in settings
    return super(ITUNES, self).settings()
  File "/usr/lib64/calibre/calibre/devices/usbms/deviceconfig.py", line 127, in settings
    opts = cls._config().parse()
  File "/usr/lib64/calibre/calibre/devices/usbms/deviceconfig.py", line 71, in _config
    c.add_opt('save_template', default=cls._default_save_template(),
  File "/usr/lib64/calibre/calibre/devices/usbms/deviceconfig.py", line 50, in _default_save_template
    from calibre.library.save_to_disk import config
  File "/usr/lib64/calibre/calibre/library/save_to_disk.py", line 13, in <module>
    from calibre.utils.formatter import TemplateFormatter
  File "/usr/lib64/calibre/calibre/utils/formatter.py", line 15, in <module>
    from calibre.utils.formatter_functions import formatter_functions, compile_user_function
  File "/usr/lib64/calibre/calibre/utils/formatter_functions.py", line 23, in <module>
    from calibre.utils.date import parse_date, format_date, now, UNDEFINED_DATE
  File "/usr/lib64/calibre/calibre/utils/date.py", line 15, in <module>
    from calibre.utils.iso8601 import utc_tz, local_tz, UNDEFINED_DATE
  File "/usr/lib64/calibre/calibre/utils/iso8601.py", line 9, in <module>
    from dateutil.tz import tzlocal, tzutc, tzoffset
  File "/usr/lib64/python2.7/site-packages/dateutil/tz/__init__.py", line 1, in <module>
    from .tz import *
  File "/usr/lib64/python2.7/site-packages/dateutil/tz/tz.py", line 22, in <module>
    from six import string_types, PY3
ImportError: No module named six
 selhala s chybou:
Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/customize/ui.py", line 637, in initialize_plugin
    p = plugin(path_to_zip_file)
  File "/usr/lib64/calibre/calibre/devices/apple/driver.py", line 319, in __init__
    self.verbose = self.settings().extra_customization[self.DEBUG_LOGGING]
  File "/usr/lib64/calibre/calibre/devices/apple/driver.py", line 1093, in settings
    return super(ITUNES, self).settings()
  File "/usr/lib64/calibre/calibre/devices/usbms/deviceconfig.py", line 127, in settings
    opts = cls._config().parse()
  File "/usr/lib64/calibre/calibre/devices/usbms/deviceconfig.py", line 71, in _config
    c.add_opt('save_template', default=cls._default_save_template(),
  File "/usr/lib64/calibre/calibre/devices/usbms/deviceconfig.py", line 50, in _default_save_template
    from calibre.library.save_to_disk import config
  File "/usr/lib64/calibre/calibre/library/save_to_disk.py", line 13, in <module>
    from calibre.utils.formatter import TemplateFormatter
  File "/usr/lib64/calibre/calibre/utils/formatter.py", line 15, in <module>
    from calibre.utils.formatter_functions import formatter_functions, compile_user_function
  File "/usr/lib64/calibre/calibre/utils/formatter_functions.py", line 23, in <module>
    from calibre.utils.date import parse_date, format_date, now, UNDEFINED_DATE
  File "/usr/lib64/calibre/calibre/utils/date.py", line 15, in <module>
    from calibre.utils.iso8601 import utc_tz, local_tz, UNDEFINED_DATE
  File "/usr/lib64/calibre/calibre/utils/iso8601.py", line 9, in <module>
    from dateutil.tz import tzlocal, tzutc, tzoffset
  File "/usr/lib64/python2.7/site-packages/dateutil/tz/__init__.py", line 1, in <module>
    from .tz import *
  File "/usr/lib64/python2.7/site-packages/dateutil/tz/tz.py", line 22, in <module>
    from six import string_types, PY3
ImportError: No module named six

Traceback (most recent call last):
  File "/usr/bin/calibre-debug", line 20, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/debug.py", line 233, in main
    calibre(['calibre'])
  File "/usr/lib64/calibre/calibre/gui_launch.py", line 69, in calibre
    from calibre.gui2.main import main
  File "/usr/lib64/calibre/calibre/gui2/__init__.py", line 21, in <module>
    from calibre.utils.date import UNDEFINED_DATE
  File "/usr/lib64/calibre/calibre/utils/date.py", line 15, in <module>
    from calibre.utils.iso8601 import utc_tz, local_tz, UNDEFINED_DATE
  File "/usr/lib64/calibre/calibre/utils/iso8601.py", line 9, in <module>
    from dateutil.tz import tzlocal, tzutc, tzoffset
  File "/usr/lib64/python2.7/site-packages/dateutil/tz/__init__.py", line 1, in <module>
    from .tz import *
  File "/usr/lib64/python2.7/site-packages/dateutil/tz/tz.py", line 22, in <module>
    from six import string_types, PY3
ImportError: No module named six


emerge --info calibre
Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r3, 4.9.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.0-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9550_@_2.83GHz-with-gentoo-2.3
KiB Mem:     8169404 total,   2534512 free
KiB Swap:    8396796 total,   8396748 free
Timestamp of repository gentoo: Sun, 25 Dec 2016 10:30:01 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.9.6-r4::gentoo, 1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            4.9.4::gentoo, 5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -g -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/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 -g -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -g -pipe"
GENTOO_MIRRORS="ftp://gentoo.mirror.web4u.cz/"
LANG="cs_CZ.UTF-8"
LC_ALL="cs_CZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS=""
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi alsa amd64 argyllcms berkdb blas bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli consolekit cracklib crypt cups cvs cxx dbus declarative djvu dri dts dv dvb dvd dvdr emboss encode exif fam ffmpeg fftw firefox flac fontconfig fortran ftp gd gdbm geoip gif glamor gmp gnuplot gpm gps graphviz gsl gsm gstreamer gtk hdf5 iconv icu idn ieee1394 imagemagick imlib ipv6 ithreads javascript jbig jpeg jpeg2k kde kipi ladspa lame lapack lcms ldap libass libnotify libsamplerate lzma lzo mad matroska mms mmx mmxext mng modplug modules mp3 mp4 mpeg mplayer mtp multilib musepack musicbrainz ncurses netcdf nls nptl ogg opencl openexr opengl openmp pam pango pch pcre pdf perl phonon pic plasma plotutils png policykit postscript ppds pulseaudio python qml qt3support qt4 qt5 quicktime rdesktop readline sdl seccomp semantic-desktop session slang smp sndfile sox speex spell sse sse2 ssl ssse3 startup-notification svg szip tcpd theora threads tidy tiff truetype udev udisks unicode upower usb v4l vaapi vcd vdpau vnc vorbis wavpack widgets wmf wxwidgets x264 xattr xcb xcomposite xft xine xinerama xml xosd xpm xscreensaver xv xvid xvmc zlib" ABI_X86="64 32" 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" 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="author braindump flow karbon kexi krita plan sheets stage words" CAMERAS="ptp2 adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3 sse4_1" CURL_SSL="gnutls" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher ffhash sidxindex" GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 navcom nmea ntrip oceanserver oncore rtcm104v2 rtcm104v3 sirf superstar2 tnt tripmate tsip ubx fury geostar nmea2000" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" L10N="cs en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer scripting-beanshell scripting-javascript nlpsolver" LINGUAS="cs en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_5" QEMU_SOFTMMU_TARGETS="x86_64 arm i386" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="nouveau radeon" 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"
USE_PYTHON="2.7 3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

app-text/calibre-2.73.0::gentoo was built with the following:
USE="udisks" ABI_X86="64" PYTHON_TARGETS="python2_7"
CFLAGS="-O2 -pipe"
CXXFLAGS="-O2 -pipe"
Comment 1 David Kredba 2016-12-25 11:11:37 UTC
eselect python list
Available Python interpreters, in order of preference:
  [1]   python2.7
  [2]   python3.4
  [3]   python3.5
  [4]   jython2.7 (fallback)

eselect python list --python2
Available Python 2 interpreters, in order of preference:
  [1]   python2.7

eselect python list --python3
Available Python 3 interpreters, in order of preference:
  [1]   python3.4
  [2]   python3.5

dev-python/six
      Latest version available: 1.10.0
      Latest version installed: 1.10.0
Comment 2 David Kredba 2016-12-25 11:12:57 UTC
Interesting, after six rebuilt by hand,
it was not found for rebuild by python updater (it did lirccd only),
Calibre gui starts.