Trouble Shooting - Weasy Print
Problem
Weasy print will sometimes express errors - this is due to library issues with Weasy print and can occur after an update. The best solution is to update Weasy print
Solution
The best solution at the moment is to update weasy print when you update your OS
- Open up a terminal, and use Secure Shell (SSH) to log into your environment
Change directory to the location of the virtual environment's root folder is stored
cd /<<virtual_env_root>>
Please note - you do not have to change directory into the virtual environment folderActivate your virtual environment
Activate Virtual Environmentsource ./<<virtual_env_folder>>/bin/activate
If you have changed directory into the virtual environment folder in the previous set, just modify the instructions to reflect that
Update pip, then weasy print
Update PIP and Weasyprintpip install -U pip pip install -U weasyprint
If issues persist
If the issues still persist, please consider updating your system and the pip packages
Update System
sudo apt-get update && sudo apt-get upgrade -y pip install -U -r <<path_to_requirements.txt>>
Related articles