-
-
Notifications
You must be signed in to change notification settings - Fork 704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on cPanel #1562
Comments
Hello! Could you please provide the error message that should be written at the end of the traceback? |
@liZe I have just edited the original post to include it. I was not aware I left it out while highlighting for copy and paste. Thank you for that. |
@liZe even when I run $weasyprint --info command, I get the same error: (silicon/markets:3.7)[silijuds@business106 silicon_markets]$ weasyprint --info |
Hello! |
@grewn0uille indeed harfbuzz is not installed on this server. I am trying to find a way to install it - I have failed many times trying to install it using pip and pipenv |
Harfbuzz can’t be installed with pip, as it is not a Python package. It has to be installed with your distribution package manager. It’s normally a dependency of Pango (that’s probably installed, as WeasyPrint finds it). Do you have |
No I do not have libharfbuzz in /usr/lib64 |
Then it means that the package is not installed for some reason. Use the package manager of your distribution to install the Harfbuzz package. |
Thank you. I am on it |
The problem is with the shared server. I don't have root access and package manager commands. I can only use pip to install third party libraries. My hosting provider has recommended that I upgrade to dedicated server |
Sorry to hear that 😒. It’s strange to see that Harfbuzz is not installed while Pango is, but maybe that’s a very, very old version of Pango that doesn’t require Harfbuzz. If that’s the case, you could be lucky with an older version of WeasyPrint, like 52.5. You can install it with |
Thank you VERY MUCH. Installation of this suggested older version 52.5 did solve my problem. :-) |
Thank you so much! This helped me as well :D |
I have deployed my django application to cPanel. It uses Weasyprint for generating PDF reports.
On my local machine running Windows 10, the application works perfectly. But on cPanel I am getting this error, which seems to emanate from Weasyprint when looking at the stack trace towards the bottom.
The text was updated successfully, but these errors were encountered: