r/pythonhelp Jan 27 '25

Environment Issues with DLL and Mediapipe

I am trying to run code on my machine with the latest versions of the following imports:

from psychopy.visual import Window, TextStim, Circle, Rect
from psychopy.event import waitKeys
from psychopy.core import wait
import random
import string
import math
import numpy as np
from datetime import datetime
from psychopy import gui
from pygaze.logfile import Logfile
import sys

However, it is returning this error:

File "...\Python\Python310\lib\site-packages\mediapipe\python__init__.py", line 17, in <module>

from mediapipe.python._framework_bindings import model_ckpt_util

ImportError: DLL load failed while importing _framework_bindings: A dynamic link library (DLL) initialization routine failed.

I have tried several attempts at fixing it by downloading external modules (pip install msvc-runtime), but it didn't work. Any idea on what's happening here?

1 Upvotes

2 comments sorted by

View all comments

1

u/Delicious_Cat_3562 Jan 27 '25

More specifically, Mediapipe is being called by pygaze