Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 562214 - app-text/bibus fails to start because of python-exec breaks bibus assumptions
Summary: app-text/bibus fails to start because of python-exec breaks bibus assumptions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-04 09:53 UTC by Sascha Lucas
Modified: 2015-10-22 10:13 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 Sascha Lucas 2015-10-04 09:53:39 UTC
Hi,

app-text/bibus fails to start, because it assumes to find bibus.cfg in the path where the bibus executable is:

$ bibus 
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/bibus", line 28, in <module>
    python = cp.get('PATH','python')
  File "/usr/lib64/python2.7/ConfigParser.py", line 607, in get
    raise NoSectionError(section)
ConfigParser.NoSectionError: No section: 'PATH'

Looking into /usr/lib/python-exec/python2.7/bibus, one can see, that it handles symlinks. So one solution for this bug could be to symlink into the python site dir: /usr/lib/python-exec/python2.7/bibus -> /usr/lib64/python2.7/site-packages/bibus/bibus.

After symlinking bibus starts "more" but hits bug #485396:

$ bibus 
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bibus/bibus.py", line 232, in <module>
    bibframe1 = BibFrame.BibFrame(None, -1, BIB.TITLE, name=APPNAME)
  File "/usr/lib64/python2.7/site-packages/bibus/BibFrame.py", line 31, in __init__
    self.__loadConnectionModule()
  File "/usr/lib64/python2.7/site-packages/bibus/BibFrame.py", line 1432, in __loadConnectionModule
    import OOo
  File "/usr/lib64/libreoffice/program/uno.py", line 269, in _uno_import
    return _g_delegatee( name, *optargs, **kwargs )
  File "/usr/lib64/python2.7/site-packages/bibus/OOo.py", line 54, in <module>
    from bibOOo.bibOOoPlus import *
  File "/usr/lib64/libreoffice/program/uno.py", line 269, in _uno_import
    return _g_delegatee( name, *optargs, **kwargs )
  File "/usr/lib64/python2.7/site-packages/bibus/bibOOo/bibOOoPlus.py", line 22, in <module>
    from bibOOo.bibOOoBase import *
  File "/usr/lib64/libreoffice/program/uno.py", line 269, in _uno_import
    return _g_delegatee( name, *optargs, **kwargs )
  File "/usr/lib64/python2.7/site-packages/bibus/bibOOo/bibOOoBase.py", line 45, in <module>
    DIRECT_VALUE = uno.getConstantByName("com.sun.star.beans.PropertyState.DIRECT_VALUE")
  File "/usr/lib64/libreoffice/program/uno.py", line 52, in getConstantByName
    return pyuno.getConstantByName( constant )
uno.RuntimeException: pyuno.getConstantByName: com.sun.star.beans.PropertyState.DIRECT_VALUEis not a constant

Downloading the proposed "patch" makes bibus working again:

$ wget http://sourceforge.net/p/bibus-biblio/patches/33/attachment/bibOOoBase.py -O /usr/lib/python2.7/site-packages/bibus/bibOOo/bibOOoBase.py

Thanks, Sascha.

Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2015-10-22 10:13:42 UTC
commit e10be8fca2dbab93315cd90eb28245194ebf7c44
Author: Justin Lecher <jlec@gentoo.org>
Date:   Thu Oct 22 12:08:49 2015 +0200
    
    app-text/bibus: Fix for gentoo specific paths and fix for lo-4
    
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=485396
    
    Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=562214
    
    Package-Manager: portage-2.2.23
    Signed-off-by: Justin Lecher <jlec@gentoo.org>
    
    https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e10be8fca2dbab93315cd90eb28245194ebf7c44