Newest verson broken: Freetype library not found

Hello, the most recent version of Psychopy doesn’t seem to let me import visual and gives the following error. If I downgrade to 2020.1.2, the issue is resolved. Just thought I’d let you know.

from psychopy import sound, gui, visual, core, data, event, logging, clock
File “C:\Users\MxN-33\miniconda3\envs\lsl\lib\site-packages\psychopy\”, line 30, in
from .textbox2.textbox2 import TextBox2
File “C:\Users\MxN-33\miniconda3\envs\lsl\lib\site-packages\psychopy\visual\”, line 4, in
from .textbox2 import TextBox2, allFonts
File “C:\Users\MxN-33\miniconda3\envs\lsl\lib\site-packages\psychopy\visual\textbox2\”, line 26, in
from .fontmanager import FontManager, GLFont
File “C:\Users\MxN-33\miniconda3\envs\lsl\lib\site-packages\psychopy\visual\textbox2\”, line 21, in
import freetype as ft
File “C:\Users\MxN-33\miniconda3\envs\lsl\lib\site-packages\”, line 24, in
from freetype.raw import *
File “C:\Users\MxN-33\miniconda3\envs\lsl\lib\site-packages\freetype\”, line 52, in
raise RuntimeError(‘Freetype library not found’)
RuntimeError: Freetype library not found

If you go to your Psychopy directory (most likely C://Program Files/Psychopy3) and look in Lib/site-packages, is there a folder called freetype? This could be a problem with compiling all of Psychopy’s requirements

the same problem, and i don’t know what exactly you point at, indeed the folder freetype exists.

Is the folder definitely within you Psychopy directory specifically? If you have Python installed separately (for example if you use PyCharm or the Python IDLE) then that will have its own site-packages folder, which is totally independent from Psychopy

Hello! I’m running into the same issue. I installed the standalone version on my Mac (running Catalina). Any help would be appreciated! :slight_smile:

Make sure you have Microsoft Visual C++ Redistributable for Visual Studio 2015-2019 installed. Freetype requires it.

I had this same issue, for some reason installing psychopy and dependencies with python 3.6 worked (but I received the error when working with python 3.9 could be something different but this thread lead me to use a different python installation then I didn’t encounter the freetype error for some reason)

Thanks, Tiborauer. I have a Mac running Catalina. Do you know whether there’s a particular version of Visual C++ I should install?