Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

437
Views
Symbol not found in flat namespace '_FT_Done_Face' from reportlab with Python@3.9 on macOS 12

I have a django project using easy-thumbnail as a dependency.

Installing all packages with pip is working as expected, but when I try to run my app I get this error:

Invalid template library specified. ImportError raised when trying to load 'backend.templatetags.get_thumbnail': dlopen(/opt/homebrew/lib/python3.9/site-packages/reportlab/graphics/_renderPM.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_FT_Done_Face'

The error is raised from reportlab which is a dependency of easy-thumbnail. As far as I understand, reportlab is not able to find freetype. But it is installed correctly imho.

I'm using macOS 12.0.1

I installed Python and freetype via Homebrew. pkg-config says, that freetype2 is available at the expected paths.

What am I doing wrong? How can I fix this?


Edit

I did otool -l on the failing .so-file and this is, what I get (here I'm running it again in a venv):

/Users/markusgerards/.pyenv/versions/myapp/lib/python3.9/site-packages/reportlab/graphics/_renderPM.cpython-39-darwin.so:
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1292.60.1)

I suspect that freetype should be listed there... right?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

I reinstalled reportlab with this command:

pip install reportlab --force-reinstall --no-cache-dir --global-option=build_ext

This forced pip to actually build the package and now everythings works as intended!

over 4 years ago · Santiago Trujillo Report

0

I use M1 Mac Air with Python 3.8 and for some reason, solution from @gerricom didn't work out for me. But, simple pip uninstall reportlab and then pip install reportlab solved the problem.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!