Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 485396 - app-text/bibus with app-office/libreoffice-4.1.1 - uno.RuntimeException: pyuno.getConstantByName: com.sun.star.beans.PropertyState.DIRECT_VALUEis not a constant
Summary: app-text/bibus with app-office/libreoffice-4.1.1 - uno.RuntimeException: pyun...
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: http://sourceforge.net/p/bibus-biblio...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-09-19 10:49 UTC by Bill Kenworthy
Modified: 2015-10-22 10:13 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 Bill Kenworthy 2013-09-19 10:49:52 UTC
From the bibus website: http://sourceforge.net/p/bibus-biblio/patches/33/

"This should fix the
uno.RuntimeException: pyuno.getConstantByName:
com.sun.star.beans.PropertyState.DIRECT_VALUEis not a constant
error when using LibOOo >= 4.1.1"

Using the patch from the above bug fixes the problem.

BillK
Comment 1 Sascha Lucas 2015-10-04 09:58:12 UTC
Hi,

I can confirm this bug:

$ 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

After downloading the "patch" in the upstream bug report bibus works 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.
Comment 2 Sascha Lucas 2015-10-04 10:00:17 UTC
before this can be tested bug #562214 must be solved:

$ mv -vi /usr/lib/python-exec/python2.7/bibus /usr/lib64/python2.7/site-packages/bibus/

$ ln -s /usr/lib64/python2.7/site-packages/bibus/bibus /usr/lib/python-exec/python2.7/

Thanks, Sascha.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2015-10-22 10:13:27 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