Trouble Shooting Issues

PDF Rendering gives 500 error


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

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>>


you do not have to change directory into the virtual environment folder

  1. Activate your 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

  1. Update pip, then weasy print
pip install -U pip
pip install -U weasyprint

If the issues still persist, please consider updating your system and the pip packages

sudo apt-get update && sudo apt-get upgrade -y
pip install -U -r <<path_to_requirements.txt>>