Psychtoolbox-3 Download Failure

Hi, there!

I’m Shuyuan Yu, and I’m using macOS Mojave Version 10.14, MATLAB R2016b, and Psychtoolbox-3.

I’ve been working with Psychtoolbox on this computer without problems, but when I was trying to reinstall Psychtoolbox, I got the following error message. I have manually deleted the Psychtoolbox folder in my Applications folder, and also rebooted my machine, but it still doesn’t work.

Thanks so much in advance!


>> DownloadPsychtoolbox
DownloadPsychtoolbox('/Applications','beta','')
Requested flavor is: beta
Requested location for the Psychtoolbox folder is inside: /Applications

Will use the svn client which is located in this folder: /usr/bin/
Good. Your privileges suffice for the requested installation into folder /Applications.

I will now download the latest Psychtoolbox for OSX.
Requested flavor is: beta
Target folder for installation: /Applications
The following CHECKOUT command asks the Subversion client to
download the Psychtoolbox:
/usr/bin/svn checkout https://github.com/Psychtoolbox-3/Psychtoolbox-3/branches/beta/Psychtoolbox/ "/Applications/Psychtoolbox"
Downloading. It's nearly 100 MB, which can take many minutes.
Alas there may be no output to this window to indicate progress until the download is complete.
Please be patient ...
If you see some message asking something like "accept certificate (p)ermanently, (t)emporarily? etc."
then please press the p key on your keyboard, possibly followed by pressing the ENTER key.

xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Sorry, the download command "CHECKOUT" failed with error code 1:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

The download failure might also be due to temporary network or server problems. You may want to try again in a
few minutes. It could also be that the subversion client was not (properly) installed. On Microsoft
Windows you will need to exit and restart Matlab or Octave after installation of the Subversion client. If that
does not help, you will need to reboot your machine before proceeding.
Another reason for download failure could be if an old working copy - a Psychtoolbox folder - still exists.
In that case, it may help to manually delete that folder. Or maybe you do not have write permissions for the target folder?

Error using DownloadPsychtoolbox (line 814)
Download failed.

Best,
Shuyuan
Have you installed the command line tools (which contains the necessary svn command)? The easiest way is to enter this in Terminal:

xcode-select --install

It will download and install for you, and this will be kept up-to-date by the software update. You could also install XCode, but that is a massive download; or install svn manually.