Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 741478 - app-office/libreoffice-6.4.6.2 breaks app-office/unoconv
Summary: app-office/libreoffice-6.4.6.2 breaks app-office/unoconv
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-10 05:23 UTC by Michael Moon
Modified: 2020-09-27 18:52 UTC (History)
3 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 Michael Moon 2020-09-10 05:23:20 UTC
$ unoconv
Traceback (most recent call last):
File "/usr/bin/unoconv", line 1397, in <module>
from com.sun.star.document.UpdateDocMode import NO_UPDATE, QUIET_UPDATE
File "/usr/lib/python3.7/site-packages/uno.py", line 436, in _uno_import
raise uno_import_exc
File "/usr/lib/python3.7/site-packages/uno.py", line 358, in _uno_import
return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'com' (or 'com.sun.star.document.UpdateDocMode.NO_UPDATE' is unknown)

upstream bug report:
https://github.com/unoconv/unoconv/issues/551

If confirmed, app-office/unoconv should depend on <=app-office/libreoffice-6.4.5.2 until the upstream issue is solved.
Comment 1 Robert Schultz 2020-09-10 15:55:12 UTC
I can confirm, that I get the same exact error using unoconv with libreoffice 6.4.6.2

I can also confirm that downgrading to libreoffice 6.4.5.2 works.

As Michael mentioned, it's probably an upstream bug.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2020-09-25 23:11:53 UTC
* I can confirm the problem

* The actual API of libreoffice didn't change between 6.4.3 and 6.4.6

* uno.py didn't change either
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2020-09-25 23:29:28 UTC
OK everyone involved, here's something to test:

As root, open /usr/lib/python3.7/site-packages/uno.py with your favourite text editor. The third line is

os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:/usr/lib64/libreoffice/libreoffice/program/fundamentalrc')

Edit it to remove the duplicate "libreoffice/", i.e. it should be

os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:/usr/lib64/libreoffice/program/fundamentalrc')

Save the file and test unoconv again. Please report back.
Comment 4 Michael Moon 2020-09-26 06:01:01 UTC
(In reply to Andreas K. Hüttel from comment #3)
> OK everyone involved, here's something to test:
> 
> As root, open /usr/lib/python3.7/site-packages/uno.py with your favourite
> text editor. The third line is
> 
> os.putenv('URE_BOOTSTRAP',
> 'vnd.sun.star.pathname:/usr/lib64/libreoffice/libreoffice/program/
> fundamentalrc')
> 
> Edit it to remove the duplicate "libreoffice/", i.e. it should be
> 
> os.putenv('URE_BOOTSTRAP',
> 'vnd.sun.star.pathname:/usr/lib64/libreoffice/program/fundamentalrc')
> 
> Save the file and test unoconv again. Please report back.

$ unoconv
unoconv: you have to provide a filename or url as argument
Try `unoconv -h' for more information.

That looks like a huge improvement to me - fix confirmed, merge it :D
Comment 5 Larry the Git Cow gentoo-dev 2020-09-26 10:54:04 UTC
The bug has been closed via the following commit(s):

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

commit 9592c658d2ddfc42c735d03db03f6a746478aa58
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2020-09-26 10:53:32 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2020-09-26 10:53:51 +0000

    app-office/libreoffice: 6.4.6.2-r2 revbump fixing uno.py installation
    
    Closes: https://bugs.gentoo.org/741478
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 .../libreoffice/libreoffice-6.4.6.2-r2.ebuild      | 593 +++++++++++++++++++++
 1 file changed, 593 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2020-09-27 18:52:34 UTC
The bug has been referenced in the following commit(s):

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

commit 4b7adb140190e5f33b405f74700508678aebab2e
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2020-09-27 18:51:42 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2020-09-27 18:52:21 +0000

    app-office/libreoffice-bin-debug: Revision bump for bug 741478
    
    Bug: https://bugs.gentoo.org/741478
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 app-office/libreoffice-bin-debug/Manifest          | 12 +++
 .../libreoffice-bin-debug-6.4.6.2-r2.ebuild        | 87 ++++++++++++++++++++++
 2 files changed, 99 insertions(+)

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

commit df1b0f236970fe53e43b657dcb1cd3ec03a7ec74
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2020-09-27 18:39:40 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2020-09-27 18:52:17 +0000

    app-office/libreoffice-bin: Revision bump for bug 741478
    
    Bug: https://bugs.gentoo.org/741478
    Package-Manager: Portage-3.0.4, Repoman-3.0.1
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 app-office/libreoffice-bin/Manifest                |  12 +
 .../libreoffice-bin-6.4.6.2-r2.ebuild              | 251 +++++++++++++++++++++
 2 files changed, 263 insertions(+)