Invalid MEX-file error on MATLAB

Hello, I am programming with MATLABR2023a for academic use and have encountered this error message several times:

Invalid MEX-file ‘C:\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Eyelink.mexw64’: The network path was not found.

The file is located in the specified path, which I confirmed using which Eyelink -all. I tried manually re-installing Psychtoolbox and Eyelink SDK and made sure they’re installed locally, redownloaded GStreamer, and have restarted my PC multiple times. I also checked that the required system dependencies/DLLs are installed. Any insights would be greatly appreciated!

I don’t think i’ve seen this specific failure before. I’m posting here Google Gemini’s response, because after reading it, I think it is probably pointing into the right direction. Likely it is a DLL library that our Eyelink mex file depends on, but that can’t be found by the linker for some reason. Could be that the Eyelink runtime is not properly installed at the proper location. Or indeed something wrong with network pathes / drivers that sends the linker onto a goose hunt into the wrong direction, like onto a disconnected network driver or such?

This additional chat suggests it is indeed searching for some of the required DLL’s on a network path, instead of on your local computers disc drive:

It all suggests some misconfiguration of your computer. It does not point to a problem with Psychtoolbox itself, or with the GStreamer installation - GStreamer is only used by the Screen mex file, not by Eyelink.

Btw., the existence of the MatlabWindowsFielsR2007a folder suggests you are likely not a paying customer, and definitely not using the latest version of PTB, so this response is a pure curtesy.

Happy :nest_with_eggs: day!