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

  1. Open up a terminal, and use Secure Shell (SSH) to log into your environment
  2. 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 folder

  3. Activate your virtual environment

    Activate Virtual Environment
    source ./<<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

  4. Update pip, then weasy print

    Update PIP and Weasyprint
    pip 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>>