# Psychotoolbox installation on Matlab - Error in line 707

**URL:** <https://psychtoolbox.discourse.group/t/psychotoolbox-installation-on-matlab-error-in-line-707/3996>\
**Category:** Programming Help\
**Tags:** windows\
**Created:** [August 31, 2021, 9:59am UTC](https://psychtoolbox.discourse.group/t/psychotoolbox-installation-on-matlab-error-in-line-707/3996 "2021-08-31T09:59:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasperd](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@jasperd](https://psychtoolbox.discourse.group/u/jasperd)\
**Post date:** [August 31, 2021, 9:59am UTC](https://psychtoolbox.discourse.group/t/psychotoolbox-installation-on-matlab-error-in-line-707/3996/1 "2021-08-31T09:59:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dcnieho](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dcnieho](https://psychtoolbox.discourse.group/u/dcnieho)\
**Post date:** [August 31, 2021, 11:50am UTC](https://psychtoolbox.discourse.group/t/psychotoolbox-installation-on-matlab-error-in-line-707/3996/2 "2021-08-31T11:50:59Z")

</div>

please post the complete error message

---

<div class="post-metadata">

**Author:** ![jasperd](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@jasperd](https://psychtoolbox.discourse.group/u/jasperd)\
**Post date:** [August 31, 2021, 11:59am UTC](https://psychtoolbox.discourse.group/t/psychotoolbox-installation-on-matlab-error-in-line-707/3996/3 "2021-08-31T11:59:15Z")

</div>

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);

---

<div class="post-metadata">

**Author:** ![dcnieho](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dcnieho](https://psychtoolbox.discourse.group/u/dcnieho)\
**Post date:** [August 31, 2021, 12:28pm UTC](https://psychtoolbox.discourse.group/t/psychotoolbox-installation-on-matlab-error-in-line-707/3996/4 "2021-08-31T12:28:43Z")

</div>

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 🙂

Cheers,  
Dee

---

<div class="post-metadata">

**Author:** ![jasperd](https://avatars.discourse-cdn.com/v4/letter/j/5fc32e/32.png) [@jasperd](https://psychtoolbox.discourse.group/u/jasperd)\
**Post date:** [September 1, 2021, 8:49am UTC](https://psychtoolbox.discourse.group/t/psychotoolbox-installation-on-matlab-error-in-line-707/3996/5 "2021-09-01T08:49:38Z")

</div>

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](http://psychtoolbox.org/docs/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 !

---

<div class="post-metadata">

**Author:** ![dcnieho](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@dcnieho](https://psychtoolbox.discourse.group/u/dcnieho)\
**Post date:** [September 1, 2021, 9:01am UTC](https://psychtoolbox.discourse.group/t/psychotoolbox-installation-on-matlab-error-in-line-707/3996/6 "2021-09-01T09:01:49Z")

</div>

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
