Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Setup using pip broken since CairoSVG dropped Python 2 support #394
Problem seems to be in METADATA file which contains dependency on cairosvg >= 1.0.20. This automatically downloads CairoSVG 2.0 and so it fails.
I've seen that there is already a patch solving this problem in setup.py, which should limit the CairoSVG version to 1.0.20 but somehow it is not applied in package in PyPI. I would suggest that the package was built in Python 3 environment and so the extra dependency was therefore skipped. However I am not an expert on Python packaging so I am not sure if such a scenario is even possible.
The workaround to make things working is to set CairoSVG==1.0.20 in your requirements.txt file (or whenever you store packages your projects) which should effectively freeze it.
I am experiencing problems with installing WeasyPrint 0.32 into my python 2.7.12 virtualenv using pip. It is caused by new release of CairoSVG (2.0), which setup fails cause it no longer supports Python 2.
Which version are you updating from? I experienced the same problem and solve it by upgrading step by step, from 0.29 to 0.30 and so on. Andreas…
-- Kurs 10 IT-Consulting www.kurs-10.de Andreas Schosser firstname.lastname@example.org Baldestraße. 14 Telefon +49 89 41615842-0 80469 München Telefax +49 89 41615842-3 0x6EDECCF1 - 2AA0 939B 5585 819B FCE8 E43B 0B8E 0DF2 6EDE CCF1
@liZe Anyway it works for me now, so I am closing the issue.
Thank you for help, best regards