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
Hi. I think WeasyPrint needs to specify which version of Pyphen it depends on, since it looks like it no longer works with older versions of Pyphen.
Specifically, we had WeasyPrint 0.19.2 and Pyphen 0.7 installed. Upgrading WeasyPrint to version 0.21 broke things, with this message:
File "/usr/local/lib/python2.6/dist-packages/weasyprint/text.py", line 488, in split_first_line
lang = style.lang and pyphen.language_fallback(style.lang)
AttributeError: 'module' object has no attribute 'language_fallback'
Upgrading to the latest Pyphen (version 0.9.1) made WeasyPrint work again, so I'm guessing that language_fallback was added some time between 0.7 and 0.9.1.
Hi. I think WeasyPrint needs to specify which version of Pyphen it depends on, since it looks like it no longer works with older versions of Pyphen.
Specifically, we had WeasyPrint 0.19.2 and Pyphen 0.7 installed. Upgrading WeasyPrint to version 0.21 broke things, with this message:
Upgrading to the latest Pyphen (version 0.9.1) made WeasyPrint work again, so I'm guessing that
language_fallback
was added some time between 0.7 and 0.9.1.I'm hoping that specifying a minimum Pyphen version here would make
pip
automatically upgrade Pyphen when upgrading WeasyPrint: https://github.com/Kozea/WeasyPrint/blob/master/setup.py#L36The text was updated successfully, but these errors were encountered: