Help installing wkhtmltopdf in Google Colab

13 views
Skip to first unread message

Marcos Paulo Polatto

unread,
Feb 16, 2023, 11:31:47 AMFeb 16
to wkhtmltopdf General
Hey, I'm trying to install 'wkhtmltopdf' to a Google Colab environment, because I need to use 'pdfkit', but I'm facing a few issues. The code that I ran to try installing is:



!cp wkhtmltox_0.12.6-1.focal_amd64.deb /usr/bin

!sudo apt install /usr/bin/wkhtmltox_0.12.6-1.focal_amd64.deb


After using this code I get a permission error, so after that I use:


!chmod 755 -R /content/wkhtmltox_0.12.6-1.focal_amd64.deb


But then I get this error:


[Errno 8] Exec format error


I used this codes and this is the build that the notebook is using:


!cat /etc/os-release

NAME="Ubuntu" 
VERSION="20.04.5 LTS (Focal Fossa)" 

!uname -m

x86_64


I would like help to install, because is for a urgent matter to my work



Reply all
Reply to author
Forward
0 new messages