You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "D:\Django Application\MainApp\env\lib\site-packages\weasyprint_init_.py", line 440, in
from .css import preprocess_stylesheet # noqa isort:skip
File "D:\Django Application\MainApp\env\lib\site-packages\weasyprint\css_init_.py", line 30, in
from . import computed_values, media_queries
File "D:\Django Application\MainApp\env\lib\site-packages\weasyprint\css\computed_values.py", line 18, in
from .. import text
File "D:\Django Application\MainApp\env\lib\site-packages\weasyprint\text.py", line 14, in
import cairocffi as cairo
File "D:\Django Application\MainApp\env\lib\site-packages\cairocffi_init_.py", line 50, in
('libcairo.so', 'libcairo.2.dylib', 'libcairo-2.dll'))
File "D:\Django Application\MainApp\env\lib\site-packages\cairocffi_init_.py", line 45, in dlopen
raise OSError(error_message) # pragma: no cover
OSError: no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so': error 0x7e
cannot load library 'libcairo.2.dylib': error 0x7e
cannot load library 'libcairo-2.dll': error 0x7e
(env)
The text was updated successfully, but these errors were encountered:
To fix this problem, you can follow the tips given in the issues listed above, or you can carefully apply the rules given in the documentation. Another (easier) solution is to use WeasyPrint with WSL.
File "D:\Django Application\MainApp\env\lib\site-packages\weasyprint_init_.py", line 440, in
from .css import preprocess_stylesheet # noqa isort:skip
File "D:\Django Application\MainApp\env\lib\site-packages\weasyprint\css_init_.py", line 30, in
from . import computed_values, media_queries
File "D:\Django Application\MainApp\env\lib\site-packages\weasyprint\css\computed_values.py", line 18, in
from .. import text
File "D:\Django Application\MainApp\env\lib\site-packages\weasyprint\text.py", line 14, in
import cairocffi as cairo
File "D:\Django Application\MainApp\env\lib\site-packages\cairocffi_init_.py", line 50, in
('libcairo.so', 'libcairo.2.dylib', 'libcairo-2.dll'))
File "D:\Django Application\MainApp\env\lib\site-packages\cairocffi_init_.py", line 45, in dlopen
raise OSError(error_message) # pragma: no cover
OSError: no library called "cairo" was found
no library called "libcairo-2" was found
cannot load library 'libcairo.so': error 0x7e
cannot load library 'libcairo.2.dylib': error 0x7e
cannot load library 'libcairo-2.dll': error 0x7e
(env)
The text was updated successfully, but these errors were encountered: