Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 895948 - dev-python/pillow: libraqm dependency missing
Summary: dev-python/pillow: libraqm dependency missing
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-23 01:50 UTC by Anton Bolshakov
Modified: 2023-02-23 02:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge_info (emerge_info.txt,7.07 KB, text/plain)
2023-02-23 01:50 UTC, Anton Bolshakov
Details
libraqm-0.10.0.ebuild (libraqm-0.10.0.ebuild,728 bytes, text/plain)
2023-02-23 01:54 UTC, Anton Bolshakov
Details
getbbox_direction_poc.py (getbbox_direction_poc.py,197 bytes, text/x-python)
2023-02-23 02:04 UTC, Anton Bolshakov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2023-02-23 01:50:21 UTC
Created attachment 854028 [details]
emerge_info

Hello,

I'm running a software which uses "font.getbbox()". This function call fails with the following error:

  File "/usr/lib/python-exec/python3.10/gopro-dashboard.py", line 330, in <module>
    frame = draw_timer.time(lambda: overlay.draw(dt))
  File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/timing.py", line 20, in time
  File "/usr/lib/python-exec/python3.10/gopro-dashboard.py", line 330, in <lambda>
    frame = draw_timer.time(lambda: overlay.draw(dt))
  File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/layout.py", line 106, in draw
  File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/widgets.py", line 236, in draw
  File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/widgets.py", line 32, in draw
  File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/widgets.py", line 150, in draw
  File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/widgets.py", line 32, in draw
  File "/home/blshkv/.local/lib/python3.10/site-packages/gopro_overlay-0.90.0-py3.10.egg/gopro_overlay/widgets/text.py", line 37, in draw
  File "/usr/lib/python3.10/site-packages/PIL/ImageFont.py", line 421, in getbbox
    size, offset = self.font.getsize(
KeyError: 'setting text direction, language or font features is not supported without libraqm'


I installed libraqm ebuild, recompiled pillow it fixed the problem.
Comment 1 Anton Bolshakov 2023-02-23 01:54:43 UTC
Created attachment 854030 [details]
libraqm-0.10.0.ebuild
Comment 2 Anton Bolshakov 2023-02-23 02:03:24 UTC
https://pillow.readthedocs.io/en/stable/_modules/PIL/ImageFont.html
  :param direction: Direction of the text. It can be 'rtl' (right to
                          left), 'ltr' (left to right) or 'ttb' (top to bottom).
                          Requires libraqm.
Comment 3 Anton Bolshakov 2023-02-23 02:04:09 UTC
Created attachment 854032 [details]
getbbox_direction_poc.py