Runtime error: Freetype library not found

8.1k views Asked by At

I am running Glumpy on python 3.7.2 and windows 10. I keep getting this error EVEN AFTER installing through pip.

Traceback (most recent call last):
  File "C:\Users\algeb\Downloads\Animoji-Animate-master\animate.py", line 3, in <module>
    from glumpy import app, gloo, gl
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glumpy\__init__.py", line 7, in <module>
    from . import app
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glumpy\app\__init__.py", line 16, in <module>
    from glumpy.ext.inputhook import inputhook_manager, stdin_ready
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glumpy\ext\__init__.py", line 6, in <module>
    from . import freetype
  File "C:\Users\algeb\AppData\Local\Programs\Python\Python37-32\lib\site-packages\glumpy\ext\freetype\__init__.py", line 49, in <module>
    raise RuntimeError('Freetype library not found')
RuntimeError: Freetype library not found
2

There are 2 answers

0
Josef Kvita On

For me it helped to install the Microsoft C++ Redistributable from https://visualstudio.microsoft.com/en/downloads/

0
Michael Kenzel On

Per discussion in the comments above, the problem seems to have been that Glumpy requires the freetype package, which requires the FreeType library to be installed. You can download Windows binaries for FreeType, e.g., here. Make sure to download the .dll for the correct platform (in your case, that would seem to be 64-Bit now). Once downloaded, place the .dll somewhere on your machine and add the path to the directory where it's located to the PATH environment variable. Then the freetype package should be able to find it. More detailed installation instructions can be found in the freetype package Readme.