FS#52567 - Regression in `python-pillow` caused by a new version of `harfbuzz`

Attached to Project: Community Packages
Opened by Andrejs Mivreņiks (gim) - Monday, 16 January 2017, 07:47 GMT
Last edited by Antonio Rojas (arojas) - Monday, 16 January 2017, 08:09 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After upgrading harfbuzz from version 1.3.4 to 1.4.1 the python-pillow library throws an exception:

Traceback (most recent call last):
File "<stdin>", line 3, in <module>
File "/usr/lib/python3.6/site-packages/PIL/ImageFont.py", line 238, in truetype
return FreeTypeFont(font, size, index, encoding)
File "/usr/lib/python3.6/site-packages/PIL/ImageFont.py", line 127, in __init__
self.font = core.getfont(font, size, index, encoding)
File "/usr/lib/python3.6/site-packages/PIL/ImageFont.py", line 37, in __getattr__
raise ImportError("The _imagingft C module is not installed")
ImportError: The _imagingft C module is not installed

Here's an internal error:

ImportError: /usr/lib/libharfbuzz.so.0: undefined symbol: FT_Get_Var_Blend_Coordinates


Package versions:
* Python 3.6.0-1
* python-pillow 4.0.0-2
* harfbuzz 1.4.1-1


Steps to reproduce:
1. Upgrade harfbuzz and python-pillow to latest version
2. Launch python
3. Import library: from PIL.ImageFont import truetype
4. Load truetype font (doesn't matter which one, you can just use /dev/null to see an exception): truetype(font='/dev/null')
5. Do "from PIL import _imagingft as core" to see an internal error.
This task depends upon

Closed by  Antonio Rojas (arojas)
Monday, 16 January 2017, 08:09 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Unsupported freetype

Loading...