Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 823443 - app-text/calibre-5.32.0: ModuleNotFoundError: No module named 'cchardet'
Summary: app-text/calibre-5.32.0: ModuleNotFoundError: No module named 'cchardet'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-12 16:28 UTC by David Kredba
Modified: 2021-11-13 05:59 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 David Kredba 2021-11-12 16:28:11 UTC
The ebook-viewer binary can't open a pdb file.

Failed to convert book: y.pdb with error:
InputFormatPlugin: PDB Input running
on y.pdb
Decompressing text...
Converting text to OEB...
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
  File "/usr/bin/calibre-parallel", line 21, in <module>
    sys.exit(main())
  File "/usr/lib64/calibre/calibre/utils/ipc/worker.py", line 197, in main
    exec(sys.argv[-1])
  File "<string>", line 1, in <module>
  File "/usr/lib64/calibre/calibre/srv/render_book.py", line 823, in viewer_main
    render_for_viewer(*args)
  File "/usr/lib64/calibre/calibre/srv/render_book.py", line 814, in render_for_viewer
    return render(
  File "/usr/lib64/calibre/calibre/srv/render_book.py", line 791, in render
    book_fmt, opfpath, input_fmt = extract_book(pathtoebook, output_dir, log=default_log)
  File "/usr/lib64/calibre/calibre/ebooks/oeb/iterator/book.py", line 63, in extract_book
    pathtoopf = plumber.input_plugin(inf,
  File "/usr/lib64/calibre/calibre/customize/conversion.py", line 244, in __call__
    ret = self.convert(stream, options, file_ext,
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/pdb_input.py", line 36, in convert
    opf = reader.extract_content(os.getcwd())
  File "/usr/lib64/calibre/calibre/ebooks/pdb/palmdoc/reader.py", line 74, in extract_content
    return txt_plugin.convert(stream, self.options, 'txt', self.log, {})
  File "/usr/lib64/calibre/calibre/ebooks/conversion/plugins/txt_input.py", line 198, in convert
    det_encoding = detect(txt[:4096])
  File "/usr/lib64/calibre/calibre/ebooks/chardet.py", line 107, in detect
    from cchardet import detect as implementation
ModuleNotFoundError: No module named 'cchardet'

Reproducible: Always




Portage 3.0.28 (python 3.9.8-final-0, default/linux/amd64/17.1/no-multilib, gcc-11.2.0, glibc-2.33-r7, 5.15.1-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.15.1-gentoo-x86_64-AMD_Ryzen_7_3800X_8-Core_Processor-with-glibc2.33
KiB Mem:    65842096 total,   8596140 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Fri, 12 Nov 2021 06:00:01 +0000
Head commit of repository gentoo: 6feb18a9349da1ced86faf2e759f6797f74510ff
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r5::gentoo
dev-lang/python:          2.7.18_p13::gentoo, 3.9.8::gentoo
dev-lang/rust-bin:        1.56.1::gentoo
dev-util/cmake:           3.21.4::gentoo
sys-apps/baselayout:      2.8::gentoo
sys-apps/openrc:          0.44.7::gentoo
sys-apps/sandbox:         2.29::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.5::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.cz.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: no

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 -pipe -march=znver2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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 -pipe -march=znver2"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=znver2"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=znver2"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://mirror.dkm.cz/gentoo/"
LANG="cs_CZ.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="cs en"
MAKEOPTS="-j16"
PKGDIR="/var/cache/binpkgs"
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 acl alsa amd64 blas bluetooth branding bzip2 cairo caps cdda cddb cdparanoia cdr cli colord crypt cups dbus declarative djvu dri dts dv dvb dvd dvdr elogind encode exif ffmpeg fftw flac fontconfig fortran gdbm geoip gif gmp gnuplot graphviz gsl gsm hdf5 heif iconv idn ieee1394 imagemagick imlib ipv6 ithreads jbig jpeg jpeg2k kde ladspa lame lapack latex lcms libass libglvnd libsamplerate libtirpc lzma lzo mad matroska mms mng modplug mp3 mp4 mpeg mtp musepack musicbrainz ncurses nls nptl ogg opencl openexr opengl openmp pam pcre pdf plotutils png postscript pulseaudio qt5 quicktime rdp readline seccomp semantic-desktop slang smp sndfile sox speex spell split-usr ssl svg szip taglib theora threads tiff truetype udev unicode usb vaapi vdpau vorbis wavpack webp x264 xattr xcb xft xinerama xml xosd xpm xscreensaver xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2019" 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="karbon sheets words stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="cs en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="scripting-beanshell scripting-javascript nlpsolver" LLVM_TARGETS="AMDGPU BPF X86" LUA_SINGLE_TARGET="lua5-3" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby30" SANE_BACKENDS="lexmark net" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

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

app-text/calibre-5.32.0::gentoo was built with the following:
USE="udisks -ios" PYTHON_SINGLE_TARGET="python3_9 -python3_8"
Comment 1 Larry the Git Cow gentoo-dev 2021-11-13 04:00:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f925d59f8f6079ba7eed5568d2846faf6361e8c1

commit f925d59f8f6079ba7eed5568d2846faf6361e8c1
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2021-11-13 03:57:46 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-11-13 04:00:03 +0000

    app-text/calibre: Add cchardet dep
    
    Closes: https://bugs.gentoo.org/823443
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 app-text/calibre/{calibre-5.32.0.ebuild => calibre-5.32.0-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e981a6af2f0ca0763754b4f518dea66f95994f07

commit e981a6af2f0ca0763754b4f518dea66f95994f07
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2021-11-13 03:47:02 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2021-11-13 04:00:03 +0000

    dev-python/cchardet: Initial import
    
    Bug: https://bugs.gentoo.org/823443
    Package-Manager: Portage-3.0.28, Repoman-3.0.3
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 dev-python/cchardet/Manifest              |  1 +
 dev-python/cchardet/cchardet-2.1.7.ebuild | 28 ++++++++++++++++++++++++++++
 dev-python/cchardet/metadata.xml          | 11 +++++++++++
 3 files changed, 40 insertions(+)
Comment 2 Zac Medico gentoo-dev 2021-11-13 04:09:44 UTC
Thanks!
Comment 3 Larry the Git Cow gentoo-dev 2021-11-13 05:59:34 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0365754529bca8699b8e740d0cb6f666d8ad1b97

commit 0365754529bca8699b8e740d0cb6f666d8ad1b97
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-11-13 05:58:36 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-11-13 05:59:18 +0000

    app-text/calibre: unskip chardet test
    
    Now packaged! \o/
    
    Bug: https://bugs.gentoo.org/823443
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/calibre/calibre-5.32.0-r1.ebuild | 2 --
 1 file changed, 2 deletions(-)