# svn:E160013 error while installing psychtoolbox

**URL:** <https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480>\
**Category:** Programming Help\
**Tags:** linux\
**Created:** [June 14, 2022, 9:18pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480 "2022-06-14T21:18:11Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 14, 2022, 9:18pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/1 "2022-06-14T21:18:11Z")

</div>

Hi All,  
I am trying to install the psychtoolbox by calling the function DownloadPsychtoolbox.m which I have downloaded from the [psychtoolbox.org](http://psychtoolbox.org) website. I am using Matlab 2013b version on linux-ubuntu 13 system.

Until May , I was using Matlab 13b with psychtoolbox 3.0.9 but in the process of renewing the matlab license and reinstalling matlab, I think, the psychtoolbox got detached from matlab.

I am following the steps in the website.

However I get two errors:  
svn: E160013: Unable to connect to a repository at URL  
‘[http://psychtoolbox-3.googlecode.com/svn/beta/Psychtoolbox](http://psychtoolbox-3.googlecode.com/svn/beta/Psychtoolbox)’

PLEASE HELP!! Thanks a lot in advance

Best,  
Sujata

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [June 14, 2022, 10:36pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/2 "2022-06-14T22:36:42Z")

</div>

What is linux-ubuntu 13? If you need the very old and unsupported 3.0.9 version, see bottom of [Psychtoolbox-3 - Flavors and Versions](http://psychtoolbox.org/versions.html) . Older versions than that no longer exist.

---

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 22, 2022, 9:54pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/3 "2022-06-22T21:54:47Z")

</div>

Hi @mariokleiner  
Thanks for your reply.  
I see that the older version that I have been using so far is 3.0.9. I have downloaded from the link you shared.

However, when i open the matlab → go to the psychtoolbox folder → run the script DownloadPsychtoolbox.m , it throws an error that psychtoolbox folder is already there.

Yes, i can see the folder…but how do I now connect it with the matlab so that matlab recognizes the psychtoolbox functions that I am including in the script?

Your quick response will be very very helpful. Thank you so much!

Best,  
Sujata

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [June 22, 2022, 10:01pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/4 "2022-06-22T22:01:57Z")

</div>

It literally explains that under the link. You cd() into the Psychtoolbox subfolder and run `SetupPsychtoolbox` and hope for the best.

---

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 22, 2022, 10:13pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/5 "2022-06-22T22:13:02Z")

</div>

Hi @mariokleiner  
Thanks, again. I have run the setupPsychtoolbox() as mentioned in the link.  
However, I get a big red and yellow warning screen when I run my expeirment-script.  
The screen disappears and following are the errors I get:

WARNING: Querying rasterbeam-position doesn’t work on your setup!  
(Returns a constant value 4352)  
WARNING: This can happen if Psychtoolbox gets the mapping of connected  
displays to graphics card  
WARNING: outputs wrong. See ‘help DisplayOutputMappings’ for tips on  
how to resolve this problem.

WARNING: Couldn’t determine end-line of vertical blanking interval for  
your display! Trouble with beamposition queries?!?

WARNING: Detected end-line is -1, which is either lower or more than  
25% higher than vbl startline 768 → Out of sane range!

PTB-INFO: OpenGL-Renderer is NVIDIA Corporation :: GeForce GT  
610/PCIe/SSE2 :: 4.3.0 NVIDIA 319.60  
PTB-INFO: VBL startline = 768 , VBL Endline = -1  
PTB-INFO: Beamposition queries unsupported or defective on this  
system. Using basic timestamping as fallback: Timestamps returned by  
Screen(‘Flip’) will be less robust and accurate.  
PTB-INFO: Measured monitor refresh interval from VBLsync = 16.673980  
ms [59.973684 Hz]. (50 valid samples taken, stddev=0.031237 ms.)  
PTB-INFO: Reported monitor refresh interval from operating system =  
16.678063 ms [59.959000 Hz].  
PTB-INFO: Small deviations between reported values are normal and no  
reason to worry.

----- ! PTB - WARNING: SYNCHRONIZATION TROUBLE ! ----

One or more internal checks (see Warnings above) indicate that  
queries of rasterbeam position are not properly working for your setup.

Psychtoolbox will work around this by using a different timing algorithm,  
but it will cause Screen(‘Flip’) to report less accurate/robust timestamps  
for stimulus timing.  
Read ‘help BeampositionQueries’ for more info and troubleshooting tips.

PTB-INFO: Support for fast OffscreenWindows enabled.  
1 lhs

data:  
0, 0 1  
1, 0 0  
2, 0 0  
3, 0 0  
4, 0 0  
5, 0 0  
6, 0 0  
7, 0 1  
mask:11111111 val:10000001  
mask:00000000 val:00000000  
mask:00000000 val:00000000  
mask:00000000 val:00000000  
addr 0: 49168, 0  
setting up access to pport  
iopl: -1 (Operation not permitted)  
Error using ppMex  
couldn’t claim address space

Error in pp (line 316)  
input = inv(ppMex([uint64(ports(:))  
uint64(addr(:))],[bitSpecs(:,1:2) uint8(output(:))]));

Error in Send\_TTL\_Now (line 7)  
pp(uint8([2 3 4 5 6 7 8 9]), TTL, slowChecks, port, address); %send trigger

Error in IM\_LA (line 56)  
Send\_TTL\_Now(Resp\_1) %Send test TTL and clear port

---

<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:** [June 22, 2022, 10:30pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/6 "2022-06-22T22:30:34Z")

</div>

The red and yellow warning screen is related to the first bit of the output you posted, see the help BeampositionQueries it points to for what to do.

The errors you show for the rest are about the parallel port:  
iopl: -1 (Operation not permitted)  
Error using ppMex  
couldn’t claim address space

I assume you have gotten this code from someone, its best you contact them about how to get that to work.

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [June 22, 2022, 10:34pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/7 "2022-06-22T22:34:07Z")

</div>

The warning output tells you how to deal with the timestamping error → Read what’s written, follow the instructions. ppMex is not even a Psychtoolbox function, so i can only guess

If you’d need further advice from myself, `help PsychPaidSupportAndServices` tells you how to buy up to 30 minutes of paid support.

-mario

---

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 23, 2022, 5:08pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/8 "2022-06-23T17:08:26Z")

</div>

Hi @dcnieho and @mariokleiner

The code used to work well until last month. Matlab license expired and i had to reinstall matlab. Psychtoolbox got removed from the path. And then the problems started after this.

I did yesterday’s process again. In addition to the errors and warnings I posted yesterday, these following errors also pop out in the matlab-command window (sorry, I missed this portion):

Error using ppMex  
couldn’t claim address space

Error in pp (line 316)  
input = inv(ppMex([uint64(ports(:)) uint64(addr(:))],[bitSpecs(:,1:2)  
uint8(output(:))]));

Error in Send\_TTL\_Now (line 7)  
pp(uint8([2 3 4 5 6 7 8 9]), TTL, slowChecks, port, address); %send trigger

Error in IM\_LA (line 56)  
Send\_TTL\_Now(Resp\_1) %Send test TTL and clear port

is send\_TTL\_Now function not a psychtoolbox function? I am using it to send triggers from stimulus-presentation PC to the other PC which is used for recording realtime EEG signals. We use Iwave software in the other PC.

Best,  
Sujata

---

<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:** [June 23, 2022, 6:55pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/9 "2022-06-23T18:55:24Z")

</div>

Hi Sujata,

That sucks! Sadly indeed ppMex and Send\_TTL\_Now are not part of Psychtoolbox. I don’t recognize ppMex from somewhere, so don’t know anything about it. You’d have to check with whoever developed those how to get them to work.

Google does find some things:  
[https://github.com/benoitberanger/parport\_cenir](https://github.com/benoitberanger/parport_cenir)

[https://jianchen.info/send-triggers-via-parallel-port-in-linux-using-pp-ppmex-c/](https://jianchen.info/send-triggers-via-parallel-port-in-linux-using-pp-ppmex-c/)

[https://sccn.ucsd.edu/pipermail/eeglablist/2016/011194.html](https://sccn.ucsd.edu/pipermail/eeglablist/2016/011194.html)

Maybe that or further googling gets you somewhere.

Best,  
Dee

---

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 23, 2022, 10:41pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/10 "2022-06-23T22:41:41Z")

</div>

Hi Dee,

Thanks for your quick response…yes, I am looking at those files.  
However, I want to know why the psychtoolbox path does not get added permanently in matlab after i run the script setPsychtoolbox()?

Thanks,  
Sujata

---

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 24, 2022, 8:08pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/11 "2022-06-24T20:08:59Z")

</div>

I tried to install the psychtoolbox again , this time from Neurodevian: [Psychtoolbox-3 - Using PTB on Linux](http://psychtoolbox.org/linux)

it throws error: E:unable to locate package matlab-psychtoolbox

so, i first tried to install the neurodebian: sudo apt-get install neurodebian…

again error: E:unable to locate package neurodebian

why?

---

<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:** [June 24, 2022, 10:25pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/12 "2022-06-24T22:25:17Z")

</div>

because you didn’t read the instructions carefully and misspelled the  
commands, look again

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [June 24, 2022, 11:39pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/13 "2022-06-24T23:39:55Z")

</div>

Because NeuroDebian does not support such ancient old versions of Psychtoolbox, or older Linux distributions than Debian 9 or Ubuntu 16.04-LTS (i don’t know your distro, as you only made non-sensical statements wrt. that), and also matlab-psychtoolbox-3 would be the name, not matlab-psychtoolbox.

But also this action made no sense in the first place, given that we told you already how to proceed (-\> Read `help DisplayOutputMappings` carefully, as the software literally told you to, as well as `help BeampositionQueries` as Dee told you), and “reinstall everything” was not the advice, and will certainly not help with ppmex, a file that doesn’t even relate to Psychtoolbox. It is pretty clear that whatever you did was not just reinstall Matlab, as that could not have caused any of the remaining problems you reported. A script setPsychtoolbox() does not exist btw., but SetupPsychtoolbox() would save the path properly, unless your Matlab’s pathdef.m file does not have the correct file permissions, in which case the function will have given you troubleshooting instructions.

That ppMex error message sounds like the iopl() syscall is failing due to lack of permissions. One either needs to be started `sudo` as root (bad idea!) or the Matlab executable must have CAP\_SYS\_RAWIO capability assigned, cfe. “man setcap” a la  
`sudo setcap cap_sys_rawio+eip /path/to/realmatlabexecutable`

Anyway, any further advice needs paid support.  
-mario

---

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 26, 2022, 11:54pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/14 "2022-06-26T23:54:52Z")

</div>

Thank you, Dee and Mario…I will look at your comments carefully.  
Thank you!

Sujata

---

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 27, 2022, 5:57pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/15 "2022-06-27T17:57:25Z")

</div>

Hi @mariokleiner  
while I am trying to work on your comments, i would also like to know how much is the paid service per session.And each session is for how long?

Thanks ,  
Sujata

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [June 27, 2022, 7:56pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/16 "2022-06-27T19:56:21Z")

</div>

See here for details: [Psychtoolbox | Open source solution](https://www.psychtoolbox.net/#service)

In short, current rate is 150 Euros + tax for up to 30 minutes of my work time. You pay for my time, not for a guaranteed successful result. Every started additional hour costs 300 Euros + tax unless you have a long term membership discount (which you won’t have if your lab doesn’t have a support membership since many months already).

-mario

---

<div class="post-metadata">

**Author:** ![sujatasinha](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@sujatasinha](https://psychtoolbox.discourse.group/u/sujatasinha)\
**Post date:** [June 30, 2022, 3:12pm UTC](https://psychtoolbox.discourse.group/t/svn-e160013-error-while-installing-psychtoolbox/4480/17 "2022-06-30T15:12:38Z")

</div>

Hi @mariokleiner thank you for your response…I will get back to you shortly.

Best,  
Sujata
