# Error updating Psychtoolbox with command line

**URL:** <https://psychtoolbox.discourse.group/t/error-updating-psychtoolbox-with-command-line/4433>\
**Category:** Bugs & Features\
**Tags:** macos\
**Created:** [May 19, 2022, 12:06pm UTC](https://psychtoolbox.discourse.group/t/error-updating-psychtoolbox-with-command-line/4433 "2022-05-19T12:06:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenVolpe](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@BenVolpe](https://psychtoolbox.discourse.group/u/BenVolpe)\
**Post date:** [May 19, 2022, 12:06pm UTC](https://psychtoolbox.discourse.group/t/error-updating-psychtoolbox-with-command-line/4433/1 "2022-05-19T12:06:17Z")

</div>

Hi,

I get an error when trying to update the PsychToolbox using the Matlab console. Information about the issue can be found below. Anyone has an idea on how to fix this?

PTB version: ‘3.0.18 - Flavor: Manual Install, 23-dec-2021 10:01:16’  
Platform: MacOS 12.3.1  
Matlab version: R2022a

```auto
>> UpdatePsychtoolbox
UpdatePsychtoolbox('/Users/benjaminvolpe/Library/Application Support/MathWorks/MATLAB Add-Ons/Collections/Psychtoolbox-3/Psychtoolbox') 

The targetdirectory spec contains white-space. This should work, but has not been tested extensively.
Updating via Matlabs integrated SVNKit: This can take multiple minutes.
There may be no output to this window to indicate progress until the update is complete.
Please be patient ...
Error using UpdatePsychtoolbox
Java exception occurred:
org.tmatesoft.svn.core.SVNException: svn: E155007: None of the targets are working copies
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:70)
	at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:57)
	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:54)
	at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgUpdate.run(SvnNgUpdate.java:18)
	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:1239)
	at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
	at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:311)
	at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:291)
	at org.tmatesoft.svn.core.wc.SVNUpdateClient.doUpdate(SVNUpdateClient.java:387)
 

```

---

<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:** [May 19, 2022, 12:35pm UTC](https://psychtoolbox.discourse.group/t/error-updating-psychtoolbox-with-command-line/4433/2 "2022-05-19T12:35:21Z")

</div>

The error seems to suggest that psychtoolbox wasn’t installed through  
SVN, and thus svn can’t be used to update it. Please reinstall PTB  
instead of update, using the install script, and then hopefully it’ll  
work next time.
