Hi, I’m trying to install Psychtoolbox on a Windows 10 computer. I have MATLAB installed but I can no longer use it because I no longer have a license. So I am trying to use Octave instead (the version I have installed is GNU Octave 7.3.0).
On step 5, when trying to download it from Octave, I got the following error:
Sorry, this updater doesn’t support your operating system: x86_64-w64-mingw32.
DownloadPsychtoolbox can only install the new (OSX, Linux and Windows)
OpenGL-based versions of the Psychtoolbox-3. To install the older (OS9 and Windows)
versions (not based on OpenGL, aka PTB-2) please go to the legacy Psychtoolbox website:
error: Your operating system is not supported by DownloadPsychtoolbox.
error: called from
DownloadPsychtoolbox at line 335 column 5
I went to the legacy website suggested and got a 404 error. I also tried looking for PTB-2 on the versions page, but couldn’t find it.
Is the version of Octave I’m using too new? Is there a way to get Psychtoolbox-3 working with Octave, or do I need to use PTB-2? (if so, where can I find that?)
I’m happy to provide more information if needed. Please help!
Mario has recompiled PTB’s mex files for Octave 7, which will be available whenever PTB V3.0.19 is released. If you don’t want to wait for the official release you can try his development git version (you will need to manually git clone and set this up yourself as this is a development version, do not rely on this for final experiment code etc).
Your downloader is over 2 years old and totally outdated, not sure how you got that one if you followed the instructions. But it is weird, because even the old one should have recognized that as a supported platform.
What’s the output of: computer
and strfind(computer, '-w64-mingw32')
and ~isempty(strfind(computer, '-w64-mingw32'))
and IsWin = ~isempty(strfind(computer, 'PCWIN')) || ~isempty(strfind(computer, '-w64-mingw32'))
One of these must fail although it shouldn’t.
Anyhow, the PTB 3.0.19 release is imminent, hopefully today, which on MS-Windows will only support and therefore require Octave 7.3 64-Bit, and GStreamer 1.20.5 or later. The 3.0.18 release can be considered dead and unsupported as of this moment.
Yep, I just checked my path and it had an old PTB downloader in my old MATLAB folder. I assumed this wouldn’t be in the path since I just deleted and reinstalled a different version of Octave and didn’t add it manually, so I’m guessing it does that automatically?..
So it installed but gave me the sync error:
Trying to trigger an update of the fontconfig cache if that should prove neccessary. This may take a couple of seconds, or sometimes even minutes. Please be patient… PTB-ERROR: Mismatch between requested display swap interval 1 and actual swap interval 0! Synchronization of Screen(‘Flip’) to display refresh will likely malfunction! PTB-ERROR: This is either a bug in your graphics driver or system setup, or some misconfiguration in the display setting con trol panel of your system. See ‘help SyncTrouble’ for more info.
I’m working through the steps in ‘help SyncTrouble’, but am not seeing some of the settings mentioned such as the “Synchronize bufferswaps to the vertical retrace” (or any similarly named settings)
Other settings like “Triple buffering” are already off. My drivers are up-to-date.
Given some of the sync problems I’m reading others have had, I’m afraid it might be a problem of the design of my laptop graphics hardware and drivers, as you have mentioned in other related threads.
To be clear, this install was with Octave 6.4.0, would you still recommend upgrading to the latest version of Octave, for the impending update?
You can ignore those errors during update, a side effect / false positive of the fontconfig update. If they happen during normal use, that’s a different story.
As of an hour ago, 3.0.19 is out, and 3.0.18 is dead and unsupported. Make sure to get GStreamer 1.20.5 at least, maybe better 1.22.0, as this is the new minimum requirement for proper text rendering on Windows, going forward. Also for Octave, which didn’t need that for text rendering so far, but since now does, as we always use dll’s from GStreamer. This all to reduce maintenance costs, given the piss-poor financial support by our dear users.
As a little remark:
The amount of money in form of researchers work time this alone will waste in a medium size lab, assuming typical salaries, would have made it a sweet deal for almost any MS-Windows using lab to just support us with a 150 Euros/year ptb membership, but what can you do. Penny wise, pound foolish they are…
PTB is not an octave package (well not the last time I checked), so you can’t use pkg install – you either need to follow the instructions on the PTB website to use the installer file, or if you want to install from a github zip, then you need to unzip, then run octave in a terminal (no GUI), cd to the Psychtoolbox folder and run SetupPsychToolbox…
What Ian says. Also only for Octave 7.3 on Windows. Latest Octave has compatibility problems with PTB on Windows and thanks to the lack of financial support by our users we don’t have the funding to waste on fixing this. So Octave 7.3 it is for the foreseeable future.