Python package in installed version of slicer

weasyprint has tons of dependencies - see WeasyPrint/first_steps.rst at master · Kozea/WeasyPrint · GitHub. You need to make sure that all those dependencies are bundled with your application as it was recommended here.