Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install WeasyPrint issues #1147

Closed
djangopythoner opened this issue Jun 19, 2020 · 2 comments
Closed

pip install WeasyPrint issues #1147

djangopythoner opened this issue Jun 19, 2020 · 2 comments

Comments

@djangopythoner
Copy link

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)

@Tontyna
Copy link
Contributor

Tontyna commented Jun 19, 2020

Duplicate of #589, #721, #957, ...

@liZe
Copy link
Member

liZe commented Jun 21, 2020

Hello @djangopythoner,

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants