Hello. I am facing the issue with screen mex file. I know there are several similar issues that were posted previously but still I could not find a way to solve it. I would be grateful if you could help us to find a solution.
I am using MatLab R2024b 64-bit (win 64) in my Windows PC (Windows 11 ver 23H2). I have downloaded the latest version of Psychtoolbox-3 (3.0.20.1).
When I run the script, the following message appears:
Sorry this is in Japanese, but it means that
invalid mex file ‘C:\Program
Files\MATLAB\R2024b\toolbox\Psychtoolbox-3-3.0.20.1\Psychtoolbox\PsychBasic\MatlabWindowsFilesR2007a\Screen.mexw64’: was not found.
(PRACTISE_habitual_task is the name of the script)
Of course I checked that Psychtoolbox is certainly downloaded in my PC, I added Pschtoolbox add-on, and added the path, none of which solved this issue… Several years ago, one guy suggested to download GStreamer, and now I double checked that it was already there and the path was added.
I would appreciate if I could get any kinds of advice or help.
Thank you in advance.
That’s the wrong file you downloaded or installed. As mentioned in other recent posts, Matlab’s Add-On manager is broken and deficient and can’t download and setup a functional Psychtoolbox at the moment. You want to manually download, not Add-On Manager, the top-most zip file on the releases page, that just says 3.0.20.1.zip as recommended, with the little cube box icon to the left of it. Iow. this linked file: https://github.com/Psychtoolbox-3/Psychtoolbox-3/releases/download/3.0.20.1/3.0.20.1.zip
The links below, which say “Source code”, are the wrong ones and won’t work out of the box.
Yes, you need to have the recommended GStreamer minimum version and type installed. Anything older than 1.22.0 MSVC will not work anymore. Right now, for MS-Windows: 64-Bit Intel MSVC runtime v1.22.5 for use with 64-Bit Matlab/Octave was the last one I extensively tested:
Hello. I really appreciate for your quick reply.
I have just tried your suggestion (Installed Psychtoolbox manually and updated GStreamer), however, there still appears the same error message… My colleague is also facing exactly the same issue with his PC, but when he tried with the other PC previously, it worked well and now only that specific PC is working properly. In this PC (Windows11 23H2), MatLab R2024a is installed and Psychtoolbox 3.0.19.0 is used. We compared if there were any difference between this PC and others but we could not find anything…
Do you have any ideas about these situations (something that we should double check or whatever…)…?
Sorry to bother you but thank you so much for your help.
I’m confused by your reply about what does or does not work. However, all versions of PTB older than the latest 3.0.20.1 release are unsupported by now, so I’d only advise about problems with that latest version, not with 3.0.19 or other old versions.
Maybe you still have the wrong version installed? Did you uninstall it with the Add-On Manager and verify that the folder ‘C:\Program Files\MATLAB\R2024b\toolbox\Psychtoolbox-3-3.0.20.1 no longer exists? The location looks weird, it is not where I would install a 3rd party toolbox.
Also we’d need the full detailed error output of Matlab, “the same error message” is not providing enough information.
Thank you so much for our help. Now I double checked if the older version was uninstalled or not, and re-installed again via your link that you sent me previously. Finally it worked well. I really appreciate your kind support. By the way, I got this message in MATLAB screen saying,
License management enabled, according to user consent.
This machine does not yet have a valid product license key enrolled and activated.