โ06-05-2024 01:12 PM
Hi,
I need to install libreoffice to do a document conversion from .docx to .pdf. The requirement is no use of containers. Any idea on how I should go about this?
Environment: Databricks 13.3 LTS
Thanks,
Sem
โ06-07-2024 01:47 PM
Hey @Yeshwanth ,
Finally got it installed. Here is what worked for me:
%sh
sudo apt update && sudo apt upgrade -y
%sh
sudo apt install libreoffice-common libreoffice-java-common libreoffice-writer openjdk-8-jre-headless -y
Thanks,
Sem
โ06-05-2024 10:10 PM
Hi @semsim Good day!
I just wanted to check if you have tried the following commands already.
%sh
sudo apt-get install -y libreoffice
sudo apt-get install -y unoconv
โ06-06-2024 06:48 AM
Hi Yeshwanth,
Where would I run these commands? I tried running it in a notebook but it didn't solve the problem.
Thanks,
Sem
โ06-07-2024 09:35 AM - edited โ06-07-2024 09:36 AM
Hi @Yeshwanth ,
I've ran these commands and others at the notebook level. I have also ran the commands as an init script. Neither has worked so far.
Here is what I am seeing when I run the commands:
and here is the error message I receive when I try to run the function that needs libreoffice:
โ06-07-2024 01:47 PM
Hey @Yeshwanth ,
Finally got it installed. Here is what worked for me:
%sh
sudo apt update && sudo apt upgrade -y
%sh
sudo apt install libreoffice-common libreoffice-java-common libreoffice-writer openjdk-8-jre-headless -y
Thanks,
Sem
โ08-22-2024 04:43 AM
Hi @semsim
I'm attempting to install LibreOffice for converting DOCX files to PDF and tried running your shell commands from notebook. However, I encountered the 404 errors shown below. Do you have any suggestions on how to resolve this issue? I really appreciate any help.
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group