Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288232 - app-text/bibus fails to start with app-office/openoffice-bin
Summary: app-text/bibus fails to start with app-office/openoffice-bin
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-08 18:37 UTC by Quincy
Modified: 2012-04-28 08:27 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 Quincy 2009-10-08 18:37:35 UTC
bibus was working, but i didn't use it for about 2 months. Today i wanted to start it again, but it crashes with the following error:

Traceback (most recent call last):
  File "/usr/share/bibus/bibus.py", line 21, in <module>
    import os, sys, gettext, locale, ConfigParser, cPickle
  File "/usr/lib64/python2.6/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib64/python2.6/locale.py", line 202, in <module>
    import re, operator
ImportError: /usr/lib/python2.6/lib-dynload/operator.so: undefined symbol: _PyUnicodeUCS4_AsDefaultEncodedString

I tried to recompile my actually installed version (1.4.3.2-r1) as well as the two other version currently in portage (1.4.3.1 and 1.5_rc1), but the error is the same in all cases.
I also recompiled wxpython (installed was 2.6.4.0-r2) and switched versions (update to 2.8.10.1), but this doesn't solve the problem, too. Additionally i recompiled mysql-python and python itself (currently 2.6.2-r1), but still no change.

Reproducible: Always

Steps to Reproduce:




Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-1.12.11.1
Timestamp of tree: Thu, 08 Oct 2009 07:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -msse4.1 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/www/localhost/"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -msse4.1 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.mneisen.org/ "
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 audiofile authdaemond bash-completion berkdb bluetooth branding bzip2 cairo caps cdb cdparanoia cdr cgi clamd cli consolekit cracklib crypt css ctype cups curl dbus dell devil dga directfb dri dts dvd dvdr eds emboss encode enscript esd evo exif expat fam fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp gmp gpm gps gs gstreamer gtk hal iconv icq idn imagemagick imap imlib inkjar isdnlog ithreads java javascript jpeg jpeg2k kde kdeenablefinal kipi kpathsea lame laptop latex lcms libcaca libnotify lm_sensors logitech-mouse logrotate mad maildir memlimit mhash mikmod mime mmx mmxext mng modules mozilla mp3 mp4 mpeg mudflap multilib multiuser musicbrainz mysql mysqli ncurses nls nptl nptlonly nsplugin ntfs ntp nvidia ogg opengl openmp pam pcre pdf perl php png ppds pppd python qt3 qt3support qt4 quicktime quotas rdesktop readline reflection replytolist rle rtc samba sasl scanner sdl session sharedmem slang sockets softquota spell spl sse sse2 ssl startup-notification subtitles suexec svg symlink sysfs syslog tcpd tga theora thunar tidy tiff tk toolbar truetype unicode urandom usb userlocales vcd visualization vorbis wmf x264 xine xinerama xml xorg xulrunner xv xvid xvmc zip 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_dbd authn_default authn_file authz_default authz_groupfile authz_host authz_user autoindex charset_lite dav dav_fs dav_lock dbd deflate dir env expires filter headers log_config logio mime mime_magic negotiation rewrite setenvif so speling unique_id usertrack" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2009-10-08 20:50:42 UTC
Thanks, without this hint I wouldn't notice that
my settings are different than the default.

Your problem is ucs2 useflag of dev-lang/python.

If you changed it recently, you must run python-updater
(check the very old note in ChangeLog), as changing it
breaks binary extensions of python.
Comment 2 Quincy 2009-10-08 22:54:41 UTC
Currently my python-2.6.2-r1 is using the following use flags:
berkdb gdbm ncurses readline sqlite ssl threads tk xml -build -doc -elibc_uclibc -examples -ipv6 -ucs2 -wininst
I didn't change this USE flag recently, in fact i didn't notice it at all until today. Further investigation reveals that the previous version of python (2.5) has had this USE flag internally and in 2.6 it gets visible, but i didn't change anything and i don't know what it was and what it should be. After upgrading to python-2.6 i ran python-updater.
Today Gentoo dyn/use-index tells me: "ucs2: Enable byte size 2 unicode (DON'T USE THIS UNLESS YOU KNOW WHAT YOU'RE DOING)"
Comment 3 Markus Dittrich (RETIRED) gentoo-dev 2009-10-16 03:33:28 UTC
Are you using the binary openoffice or did you compile it
from source?

Thanks,
Markus
Comment 4 Quincy 2009-10-16 07:23:53 UTC
I'm currently using app-office/openoffice-bin-3.1.1
Comment 5 Markus Dittrich (RETIRED) gentoo-dev 2009-10-22 22:51:26 UTC
I can reproduce your problem also with openoffice-bin.
Somehow I have the "feeling" that the problem is with
the -bin version and some incompatibility therein
but I can't be certain. Any chance that you compile the source
version and see if the issue goes away?

Thanks,
Markus
Comment 6 Quincy 2009-10-23 11:48:56 UTC
I cannot see a direct connection of this issue with OpenOffice. I know about OO integration of bibus, even if I never used it, but I don't see any connection to this error. I always had openoffice-bin installed and bibus worked without any problem. To me it looks like a change regarding python.
It would be possible to compile OO from source, but I would rather look for more hints pointing to a connection with it before taking this time intensive way. Or to say it with your words: I have a different "feeling" ;-)
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2009-11-06 02:21:10 UTC
Well, I tried it and bibus works fine with the compiled version
of openoffice but crashes with the above error when using 
openoffice-bin.
Hence, there is likely some encoding issue that might perhaps 
have cropped up with python-2.6 - not sure. 
Presently, I am not sure how and if this can be fixed. However, 
if you're willing to compile openoffice from source you should 
probably be good to go. If you know of any possible fixes 
please let us know.

Thanks,
Markus 
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2010-06-25 10:54:09 UTC
I close this bug, as there was no response for some time. If the problem still exists, please reopen.
Comment 9 Quincy 2010-06-25 16:20:39 UTC
Just tried it again today, but the problem still persists with app-office/openoffice-bin-3.2.0 installed. Afterwards I replaced app-office/openoffice-bin by app-office/openoffice and this resolves the problem for me, too, but I don't think this is a real solution as many people are not able or not willing to build OpenOffice on their own. I still have no clue how rebuilding OpenOffice and the python error are connected to each other.
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2010-06-30 20:33:16 UTC
First of all, does this still happens with bibu-1.5.0?

So I talk to the python lead. He wants to know two things: 
Why was 
/usr/lib/python2.6/lib-dynload/operator.so
and not 
/usr/lib64/python2.6/lib-dynload/operator.so
used as you are on 64bit?

Second, which command excactly did you execute?
Comment 11 Justin Lecher (RETIRED) gentoo-dev 2010-06-30 20:57:37 UTC
Could you please add following line in the beginning of /usr/lib/python2.6/site-packages/bibus/bibus.py and past the terminal output, when starting bibus?

import sys; print(sys.executable); print(sys.path)
Comment 12 Justin Lecher (RETIRED) gentoo-dev 2010-06-30 21:06:33 UTC
I added version 1.5.1, which claims to fix incompatibilities with <ooo-3.1.

Please test.
Comment 13 Quincy 2010-07-01 17:09:12 UTC
I uninstalled openoffice, reinstalled openoffice-bin and recompiled bibus-1.5.0 same result as in the original posting:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/bibus/bibus.py", line 21, in <module>
    import os, sys, gettext, locale, ConfigParser, csv
  File "/usr/lib64/python2.6/gettext.py", line 49, in <module>
    import locale, copy, os, re, struct, sys
  File "/usr/lib64/python2.6/locale.py", line 202, in <module>
    import re, operator
ImportError: /usr/lib/python2.6/lib-dynload/operator.so: undefined symbol: _PyUnicodeUCS4_AsDefaultEncodedString

I don't know why the mentioned path is used, but quickly investigating the thing reveals that /usr/lib is a symlink to /usr/lib64.

When starting bibus I just type "bibus" nothing else.

Output of the modified bibus.py (1.5.0) is:
/usr/bin/python2.6
['/usr/lib64/python2.6/site-packages/bibus', '/usr/lib/openoffice/basis-link/program', '/usr/lib/python26.zip', '/usr/lib/python2.6', '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk', '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload', '/usr/lib64/python2.6/site-packages', '/usr/lib64/python2.6/site-packages/PIL', '/usr/lib64/python2.6/site-packages/gtk-2.0', '/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode', '/usr/lib64/portage/pym']

Updated bibus from 1.5.0 to 1.5.1 and trying to start again gives exactly the same error message as above.
Comment 14 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-07-02 22:50:28 UTC
Post the output of:
python2.6 -c 'import operator'
emerge -ptv dev-lang/python:2.6

Also reinstall dev-lang/python:2.6 and test bibus again.
Comment 15 Justin Lecher (RETIRED) gentoo-dev 2010-07-03 08:16:40 UTC
I can reproduce this problem. Should we restrict the dep to compiled ooo?
Comment 16 Quincy 2010-07-03 09:37:57 UTC
python2.6 -c 'import operator' gives no ouput, neither as root nor as user

emerge -ptv dev-lang/python:2.6 says:
[ebuild   R   ] dev-lang/python-2.6.5-r2  USE="berkdb gdbm ncurses readline sqlite ssl threads tk (wide-unicode) xml -build -doc -examples -ipv6 -wininst" 10,903 kB

Re-installed python-2.6.5-r2 and bibus-1.5.1, but the problem still remains the same.

Additional test: If I install bibus with --nodeps and there is no OpenOffice at all the program starts without any error message. Installing openoffice-bin afterwards leads to the error messages on startup again.

The program is also useful as a simple literature database or used with Lyx if there is no installed OpenOffice, but it depends on openoffice-bin even if this is not nessesary.  Therefore there should be no strict openoffice dependency, but a USE-flag which makes bibus depend on openoffice (not openoffice-bin until the problem is solved). This solves problems for people not using openoffice, but the problem remains that you cannot have bibus and openoffice-bin installed in parallel.
Comment 17 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-08-07 16:20:18 UTC
Does the problem occur after renaming "/usr/lib/openoffice/basis3.2/program/libpython2.6.so.1.0"?
Comment 18 Quincy 2010-08-09 09:40:58 UTC
If i rename the requested file the error when starting bibus changes to the following:

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/bibus/bibus.py", line 43, in <module>
    import wx
  File "/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 4, in <module>
    import _core_
ImportError: /usr/lib/openoffice/basis-link/ure-link/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by /usr/lib/libwx_baseu-2.8.so.0)
Comment 19 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-09-12 18:27:52 UTC
I suggest to change dependency on virtual/ooo to app-office/openoffice until this bug is fixed.
Comment 20 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-09-13 21:14:42 UTC
(In reply to comment #19)

This change has been implemented.
Comment 21 Justin Lecher (RETIRED) gentoo-dev 2012-04-28 08:27:37 UTC
fixed long ago.