Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 621204 - app-text/sigil-0.9.6 errors out on startup (html5lib/beautifulsoup issues)
Summary: app-text/sigil-0.9.6 errors out on startup (html5lib/beautifulsoup issues)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: M. B.
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-08 08:48 UTC by Tobias Klausmann (RETIRED)
Modified: 2017-10-17 12:35 UTC (History)
2 users (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 Tobias Klausmann (RETIRED) gentoo-dev 2017-06-08 08:48:36 UTC
On startup, I get an "Embedded Python Error" dialog box with a Python backtrace:

Traceback (most recent call last):

  File "/usr/share/sigil/python3lib/xmlprocessor.py", line 5, in <module>
    from sigil_bs4 import BeautifulSoup

  File "/usr/share/sigil/plugin_launchers/python/sigil_bs4/__init__.py", line 48, in <module>
    from .builder import builder_registry, ParserRejectedMarkup

  File "/usr/share/sigil/plugin_launchers/python/sigil_bs4/builder/__init__.py", line 328, in <module>
    from . import _html5lib

  File "/usr/share/sigil/plugin_launchers/python/sigil_bs4/builder/_html5lib.py", line 85, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):

AttributeError: 'module' object has no attribute '_base'

Closing it, Sigil tries to continue, but gets another error ("error in xmprocessor repairXML: -2)":

Traceback (most recent call last):

  File "/usr/share/sigil/python3lib/xmlprocessor.py", line 5, in <module>
    from sigil_bs4 import BeautifulSoup

  File "/usr/share/sigil/plugin_launchers/python/sigil_bs4/__init__.py", line 48, in <module>
    from .builder import builder_registry, ParserRejectedMarkup

  File "/usr/share/sigil/plugin_launchers/python/sigil_bs4/builder/__init__.py", line 328, in <module>
    from . import _html5lib

  File "/usr/share/sigil/plugin_launchers/python/sigil_bs4/builder/_html5lib.py", line 85, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):

AttributeError: 'module' object has no attribute '_base'

Closing that, I get yet another:

Traceback (most recent call last):

  File "/usr/share/sigil/python3lib/xmlprocessor.py", line 5, in <module>
    from sigil_bs4 import BeautifulSoup

  File "/usr/share/sigil/plugin_launchers/python/sigil_bs4/__init__.py", line 48, in <module>
    from .builder import builder_registry, ParserRejectedMarkup

  File "/usr/share/sigil/plugin_launchers/python/sigil_bs4/builder/__init__.py", line 325, in <module>
    from . import _htmlparser


This continues a few more times until Sigil opens its main window and then it SEGVs.


Rebuilding it (and html5lib) doesn't seem to make a difference. I tried bumping it to 0.9.8, but the patch does not apply. I tried massaging it to make it work with 0.9.8, but failed to get a compiling version.
Comment 1 Tobias Klausmann (RETIRED) gentoo-dev 2017-06-08 08:49:02 UTC
$ emerge --info
Portage 2.3.6 (python 3.5.3-final-0, default/linux/amd64/13.0, gcc-6.3.0, glibc-2.24-r1, 4.10.0+ x86_64)
=================================================================
System uname: Linux-4.10.0+-x86_64-Intel-R-_Xeon-R-_CPU_E5-2620_v3_@_2.40GHz-with-gentoo-2.3
KiB Mem:    16345104 total,   4735024 free
KiB Swap:    1048572 total,   1034068 free
Timestamp of repository gentoo: Thu, 08 Jun 2017 07:22:30 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.28 p1.2) 2.28
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1-r1::gentoo
dev-util/cmake:           3.8.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.27::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r3::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.28-r2::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

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

glibc-doc-ebuilds
    location: /var/lib/layman/glibc-doc-ebuilds
    masters: gentoo
    priority: 50

klausman-prometheus
    location: /var/lib/layman/klausman-prometheus
    masters: gentoo
    priority: 50

scion-ebuilds
    location: /var/lib/layman/scion-ebuilds
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /opt/zookeeper/conf /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildsyspkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://mirror.leaseweb.com/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://gentoo.modulix.net/gentoo/ http://tux.rainside.sk/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
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="3dnow 3dnowext X a52 acl alsa amd64 audiofile bash-completion berkdb bmp bzip2 caps cdparanoia cdr cli cracklib crypt cups cxx dri dts encode exif ffmpeg fftw fortran gdbm gif glamor gtk iconv idn ipv6 jpeg lame lcms lua mad matroska mmap mng modules mp3 mpeg multilib ncurses nls nptl ogg opengl openmp opus pam pcre png ppds pulseaudio python qt4 readline recode seccomp session ssl svg tcpd theora unicode usb v4l vaapi vdpau vim vim-pager vim-syntax vlm vorbis wmf xattr xcb xinerama xosd xpm xscreensaver xvid zlib" ABI_X86="64" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6 pypy pypy3" QEMU_SOFTMMU_TARGETS="i386 x86_64 aarch64" QEMU_USER_TARGETS="i386 x86_64 aarch64" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="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"
USE_PYTHON="2.7 3.4 3.5 3.6"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 edes 2017-10-11 15:35:20 UTC
It seems there has been no advancement on this. Is the ebuild still maintained? 0.9.6 is from June 2016, and since then two newer versions were released: 0.9.7 about a year ago, and 0.9.8 on March.

An ebuild for the newer version would be great...
Comment 3 edes 2017-10-17 11:23:09 UTC
just FYI, i modified the patch file for the 0.9.8 sources, and the existing ebuild worked. a crude brute-force method, but i got sigil-0.9.8 to compile, i used it a little bit and seems to be working fine.
Comment 4 Larry the Git Cow gentoo-dev 2017-10-17 12:35:47 UTC
The bug has been closed via the following commit(s):

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

commit d9390b31a4e06bf70af55d9928650d701678b2d7
Author:     Tobias Klausmann <klausman@gentoo.org>
AuthorDate: 2017-10-17 12:35:16 +0000
Commit:     Tobias Klausmann <klausman@gentoo.org>
CommitDate: 2017-10-17 12:35:40 +0000

    app-text/sigil: Add v0.9.8 with fixed patch
    
    Gentoo-Bug: https://bugs.gentoo.org/621204
    Fixes: https://bugs.gentoo.org/621204
    Package-Manager: Portage-2.3.11, Repoman-2.3.3

 app-text/sigil/Manifest                            |  1 +
 .../files/sigil-0.9.8-proper-gumbo-install.patch   | 24 +++++++
 app-text/sigil/sigil-0.9.8.ebuild                  | 82 ++++++++++++++++++++++
 3 files changed, 107 insertions(+)