Has anyone had any luck integrating with Libreoffice 6.2.x or 6.3.x in a Linux environment?
See original GitHub issueHi,
Has anyone had any luck integrating with a Libreoffice 6.2.x or 6.3.x in a linux environment?
I set PYTHONPATH=“/usr/lib/libreoffice/program” so that Carbone can find Uno, but I get some strange errors when Carbone’s converter.py is attempting to import from com.sun.star…
When I run the test program with Nodejs debug turned on, i get:
carbone:converter python stderr : Traceback (most recent call last):
File "/usr/local/dcs/node_modules/carbone/lib/converter.py", line 9, in <module>
from com.sun.star.document.UpdateDocMode import QUIET_UPDATE
File "/usr/lib/libreoffice/program/uno.py", line 434, in _uno_import
raise uno_import_exc
File "/usr/lib/libreoffice/program/uno.py", line 356, in _uno_import
return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'com' (or 'com.sun.star.document.UpdateDocMode.QUIET_UPDATE' is unknown)
+109ms
carbone:converter process Python of factory 0 died 1 +4ms
carbone:converter process Office of factory 0 died null +70ms
carbone:converter factory 0 is completely off +0ms
carbone:converter python stderr : Traceback (most recent call last):
File "/usr/local/dcs/node_modules/carbone/lib/converter.py", line 9, in <module>
from com.sun.star.document.UpdateDocMode import QUIET_UPDATE
File "/usr/lib/libreoffice/program/uno.py", line 434, in _uno_import
raise uno_import_exc
File "/usr/lib/libreoffice/program/uno.py", line 356, in _uno_import
return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'com' (or 'com.sun.star.document.UpdateDocMode.QUIET_UPDATE' is unknown)
+101ms
carbone:converter process Python of factory 0 died 1 +4ms
carbone:converter process Office of factory 0 died null +289ms
carbone:converter factory 0 is completely off +0ms
carbone:converter python stderr : Traceback (most recent call last):
File "/usr/local/dcs/node_modules/carbone/lib/converter.py", line 9, in <module>
from com.sun.star.document.UpdateDocMode import QUIET_UPDATE
File "/usr/lib/libreoffice/program/uno.py", line 434, in _uno_import
raise uno_import_exc
File "/usr/lib/libreoffice/program/uno.py", line 356, in _uno_import
return _builtin_import(name, *optargs, **kwargs)
ImportError: No module named 'com' (or 'com.sun.star.document.UpdateDocMode.QUIET_UPDATE' is unknown)
+99ms
carbone:converter process Python of factory 0 died 1 +3ms
Thanks in advance for any advice!
Cheers,
Nathan
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
Has anyone had any luck integrating with Libreoffice 6.2.x or ...
Hi,. Has anyone had any luck integrating with a Libreoffice 6.2.x or 6.3.x in a linux environment? I set PYTHONPATH="/usr/lib/libreoffice/ ...
Read more >I am confused about the versions of LibreOffice? - English
There are always two active versions, a more mature still version and the younger fresh version. When 6.3 will be released it will...
Read more >How to fix LibreOffice Requires Java Runtime Environment Error
Step by step guide with pictures on ow to fix LibreOffice Requires Java Runtime Environment Error in Windows, Linux and other systems.
Read more >Not LibreOffice too? Beloved open-source suite latest to fall ...
LibreOffice has had their build signed, but Apple is rejecting that build. ... because LibreOffice 6.2.x works fine but 6.3.x won't install.
Read more >LibreOffice 6.2.7 packages available for Slackware 14.2
Precisely why I have 6.3.x in the repository for -current and 6.2.x ... The “libreoffice-kde-integration” package is no longer available for ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @pdittaro
You can take a look at carbone-docker if you want a packaged Docker image with a Carbone API exposed. (Upgraded to LibreOffice 6.3.3.1 this morning).
You also could be interested in carbone-connect to have a similar Carbone JS API with some improvements (Promises and Streams).
https://github.com/bcgov/alpine-node-libreoffice/issues/7
I am running into an almost similar issue but the Office is the one that dies.
Anyone with a solution ? I don’t have much details to go with but
died 1