question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Has anyone had any luck integrating with Libreoffice 6.2.x or 6.3.x in a Linux environment?

See original GitHub issue

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/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:open
  • Created 4 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fleebzzcommented, Oct 17, 2019

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).

0reactions
karimkawambwacommented, Jun 10, 2022

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

carbone-lambda_1  | 2022-06-10T14:41:16.622Z carbone:converter process Office of factory 0 died 1
carbone-lambda_1  | 2022-06-10T14:41:16.626Z carbone:converter process Python of factory 0 died null
carbone-lambda_1  | 2022-06-10T14:41:16.627Z carbone:converter factory 0 is completely off
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found