Psychotoolbox installation on Matlab - Error in line 707

Hello,

im trying to install psychotoolbox on on windows 10 with matlab 2016a. I followed the instruction, but in the end it is showing me:

“Error in DownloadPsychtoolbox (line 707)
svndownload(targetRevision, dflavor, p, downloadmethod);”

Going to line 707 it is showing:

“% Download via Subversion:
svndownload(targetRevision, dflavor, p, downloadmethod);”

Does anyone know how to fix the problem?

Greetings,
Jasper

please post the complete error message

Hello dcnieho,

thanks for your answer. This should be the complete error message:

DownloadPsychtoolbox(‘C:\toolbox’)
DownloadPsychtoolbox(‘C:\toolbox’,‘beta’,‘’, 0)
Requested flavor is: beta
Requested location for the Psychtoolbox folder is inside: C:\toolbox
Using optimal client for subversion checkout.

Good. Your privileges suffice for the requested installation into folder C:\toolbox.

I will now download the latest Psychtoolbox for Windows.
Requested flavor is: beta
Target folder for installation: C:\toolbox
Downloading via Matlabs integrated SVNKit: This can take multiple minutes.
There may be no output to this window to indicate progress until the download is complete.
Please be patient …
Error using DownloadPsychtoolbox>svndownload (line 794)
Java exception occurred:
org.tmatesoft.svn.core.SVNException: svn: E175002: connection refused by the server
svn: E175002: OPTIONS request failed on ‘/Psychtoolbox-3/Psychtoolbox-3/branches/beta/Psychtoolbox’

at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:106)

at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:90)

at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:798)

at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:398)

at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:386)

at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.performHttpRequest(DAVConnection.java:863)

at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.exchangeCapabilities(DAVConnection.java:699)

at org.tmatesoft.svn.core.internal.io.dav.DAVConnection.open(DAVConnection.java:118)

at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.openConnection(DAVRepository.java:1049)

at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getLatestRevision(DAVRepository.java:189)

at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.getRevisionNumber(SvnNgRepositoryAccess.java:118)

at org.tmatesoft.svn.core.internal.wc2.SvnRepositoryAccess.getLocations(SvnRepositoryAccess.java:184)

at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgRepositoryAccess.createRepositoryFor(SvnNgRepositoryAccess.java:45)

at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgAbstractUpdate.checkout(SvnNgAbstractUpdate.java:809)

at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCheckout.run(SvnNgCheckout.java:26)

at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgCheckout.run(SvnNgCheckout.java:11)

at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgOperationRunner.run(SvnNgOperationRunner.java:20)

at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)

at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235)

at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)

at org.tmatesoft.svn.core.wc.SVNUpdateClient.doCheckout(SVNUpdateClient.java:777)

Caused by: java.net.ConnectException: Connection timed out: connect

at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)

at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)

at java.net.AbstractPlainSocketImpl.connect(Unknown Source)

at java.net.PlainSocketImpl.connect(Unknown Source)

at java.net.SocksSocketImpl.connect(Unknown Source)

at java.net.Socket.connect(Unknown Source)

at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)

at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.connect(SVNSocketFactory.java:146)

at org.tmatesoft.svn.core.internal.util.SVNSocketFactory.createSSLSocket(SVNSocketFactory.java:106)

at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.connect(HTTPConnection.java:282)

at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:461)

... 18 more

Error in DownloadPsychtoolbox (line 707)
svndownload(targetRevision, dflavor, p, downloadmethod);

The error is “org.tmatesoft.svn.core.SVNException: svn: E175002: connection refused by the server”

try on a different connection if you can, or try to restart the computer/matlab. If none of that works, you may try the offline installation method. You lose in-place updates that way, but have a working PTB install :slight_smile:

Cheers,
Dee

Thanks a lot. That was already very helpful! I´m now trying to do the offline installation, scince it is very difficult to get acces to the server from my university. I followed the “setup Psychtoolbox” instructions ( Psychtoolbox-3 - SetupPsychtoolbox ) , but in step 3 trying to set up the psychtoolbox it is saying:

SetupPsychtoolbox (‘C:\toolbox’)
Undefined function or variable ‘SetupPsychtoolbox’.

Do you know what to do here?

Thanks a lot !

Thats not what the instructions say. If you unpacked PTB into C:\toolbox (check that SetupPsychtoolbox.m is directly in that folder), then in matlab, execute:
cd(‘c:\toolbox’)
SetupPsychtoolbox

1 Like