| Reference | Downloads | Github

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