I keep getting this error when trying to run the following command:
python -m weasyprint http://weasyprint.org weasyprint.pdf
The error:
raise OSError("dlopen() failed to load a library: %s" % ' / '.join(names))
OSError: dlopen() failed to load a library: cairo / cairo-2 / cairo-gobject-2 / cairo.so.2
I installed Weasyprint using pip install weasyprint. To install cairo i used this doc: https://weasyprint.readthedocs.io/en/latest/install.html
But, at the end of the guide, when i try to run WHERE libcairo-2.dll i get a not found error.
I have been following the guide step by step but it's not working and i keep getting the same error, i searched for various solutions but none of them fixes the issue. Any advice? Thanks in advance