Finnish spell checking in LibreOffice Writer stopped working for me when I upgraded Fedora 28 to 29. I did some digging on this and it seems that python fails to load SettingsEventHandler: 2019-02-13 12:36:59,588 [CALL,tid 13355]: except uno->py[0x7f52e82b4898].activate = (com.sun.star.uno.RuntimeException){ (com.sun.star.uno.Exception){ Message = (string)"<class 'ImportError'>: No module named 'SettingsEventHandler' (or 'SettingsEventHandler.SettingsEventHandler' is unknown), traceback follows File "/usr/lib64/libreoffice/program/pythonloader.py", line 136, in activate mod = self.getModuleFromUrl( locationUrl ) File "/usr/lib64/libreoffice/program/pythonloader.py", line 103, in getModuleFromUrl exec(codeobject, mod.__dict__) File "/usr/lib64/libreoffice/share/extensions/voikko.uno.pkg/lovoikko.py", line 15, in <module> from SettingsEventHandler import SettingsEventHandler File "/usr/lib64/python3.7/site-packages/uno.py", line 428, in _uno_import raise uno_import_exc File "/usr/lib64/python3.7/site-packages/uno.py", line 350, in _uno_import return _builtin_import(name, *optargs, **kwargs) ", Context = (com.sun.star.uno.XInterface)0x0 } } SettingsEventHandler.py is installed in /usr/lib64/libreoffice/share/extensions/voikko.uno.pkg Taking a look into /usr/lib64/libreoffice/program/pythonloader.py shows that Libreoffice expects the python files to be under a directory called pythonpath: path = unohelper.fileUrlToSystemPath( url+"/pythonpath" ); if 1 == os.access( encfile( path ), os.F_OK) and not path in sys.path: if DEBUG == 1: print(b"adding " + encfile( path ) + b" to sys.path") sys.path.append( path ) This is also how the files are located in the libreoffice-voikko git repo: https://github.com/voikko/libreoffice-voikko/tree/master/oxt/pythonpath Moving the listed .py files under pythonpath makes the spell checking work again.
Same issue in Fedora 30.
This message is a reminder that Fedora 29 is nearing its end of life. Fedora will stop maintaining and issuing updates for Fedora 29 on 2019-11-26. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '29'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 29 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
The install-unpacked target in the Makefile loses the necessary hierarchy at install
https://github.com/voikko/libreoffice-voikko/pull/12 as a proposed fix, hopefully no one will mind if I go ahead and fix this in fedora
*** Bug 1716901 has been marked as a duplicate of this bug. ***
FEDORA-2020-1e246ba88d has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2020-1e246ba88d
FEDORA-2020-9ac7c9c92d has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2020-9ac7c9c92d
*** Bug 1734708 has been marked as a duplicate of this bug. ***
libreoffice-voikko-5.0-5.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-9ac7c9c92d
libreoffice-voikko-5.0-5.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-1e246ba88d
libreoffice-voikko-5.0-5.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.
libreoffice-voikko-5.0-5.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.
Could this also be fixed in RHEL 8?