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

ImportError: The _imagingft C module is not installed #358

Closed
efirshik opened this issue Dec 11, 2022 · 1 comment
Closed

ImportError: The _imagingft C module is not installed #358

efirshik opened this issue Dec 11, 2022 · 1 comment

Comments

@efirshik
Copy link

sbc: banana pi m1
os: Armbian 22.11.1 Bullseye
uname -a: Linux bananapi 5.15.80-sunxi 22.11.1 SMP Wed Nov 30 11:13:48 UTC 2022 armv7l GNU/Linux
this dependencies installed: python3 python3-pip python3-pil libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5

python3 monitor.py
Traceback (most recent call last):
  File "/home/efirshik/luma.examples/examples/monitor.py", line 18, in <module>
    font = ImageFont.truetype(font_path, 12)
  File "/usr/local/lib/python3.9/dist-packages/PIL/ImageFont.py", line 976, in truetype
    return freetype(font)
  File "/usr/local/lib/python3.9/dist-packages/PIL/ImageFont.py", line 973, in freetype
    return FreeTypeFont(font, size, index, encoding, layout_engine)
  File "/usr/local/lib/python3.9/dist-packages/PIL/ImageFont.py", line 221, in __init__
    if core.HAVE_RAQM:
  File "/usr/local/lib/python3.9/dist-packages/PIL/ImageFont.py", line 58, in __getattr__
    raise ImportError("The _imagingft C module is not installed")
ImportError: The _imagingft C module is not installed
@efirshik
Copy link
Author

sorry, find solution:

sudo rm -rf /usr/local/lib/python3.9/dist-packages/PIL

and now all work!

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

1 participant