Hi,
During installation of the newest XP-version of the PTB, I
experienced the same problems as some other people posted about. I
could not find a fix here, so i decided to solve them by myself. The
following is a report of what i did.
=======
ERROR 1
=======
??? Error using ==> DownloadPsychtoolbox
Cannot find the specified directory, "C:
PROBLEM:
It tries do execute
rmdir(p,'s'), with p = '\Applications\Psychtoolbox'
What it then tries to remove is (at least on my machine) "C:\MATLAB7
\work\\Applications\Psychtoolbox", which is not right.
QUICK AND DIRTY SOLUTION:
Add the following to "DownloadPsychtoolbox.m", line 244 (so, right
before the line that says [succes,m,m]=etc):
S = pwd; p = [S(1) ':' p];
=======
ERROR 2
=======
??? Error using ==> DownloadPsychtoolbox
Can not find specified file or directory.
PROBLEM:
Same problem basically. The intention is to set the file attributes
of C:\Applications\Psychtoolbox and subdirs, but it actually tries
to set those of "<Workdir>\\Applications\Psychtoolbox" (where
<Workdir> is "C:\Matlab7\work" in my case).
QUICK AND DIRTY SOLUTION:
Same as well. In DownloadPsychtoolbox.m, add the line
S = pwd; p = [S(1) ':' p];
right before the line saying [S,m,mm]=fileattrib(p,'+w','a','s');
(this is line 317 if the previous modification has been applied)
=======
ERROR 3
=======
After solving ERROR 2, i get a very strange error. It says:
Warning: See help sprintf for valid escape sequences.
and then something like "Hidden file will not be re-set", with all
letters duplicated about 20 times (HHHHHHHHHHHHHHHHiiiiiiiiiiiiiiii
etc).
PROBLEM:
Didn't bother to find out what the exact problem was. Just solved it.
QUICK AND DIRTY SOLUTION:
Replace the line saying:
[s,m,mm]=fileattrib(p,'+w','a','s');
with:
[s,m,mm]=fileattrib(p,'+w','ahs');
(this is line 318 in my version, the line following the one you
added to solve ERROR 2)
=======
ERROR 4
=======
COPYFILE error. Could not update the UpdatePsychtoolbox.m file to
latest version.
??? Error using ==> DownloadPsychtoolbox
PROBLEM:
Again a path problem; see above
QUICK AND DIRTY SOLUTION:
In downloadpsychtoolbox.m, add:
S = pwd; pServer = [S(1) ':' pServer];
right before the line saying
[success,m,mm]=copyfile(pLoose,pServer,'f');
(Line 346 in my version)
Yahoo! Now it works:
---
Updated the file UpdatePsychtoolbox.m to latest version.
You can now use your newly installed Psychtoolbox. Enjoy!
---
Hope this helped.
Kind regards,
Ronald vd Berg
During installation of the newest XP-version of the PTB, I
experienced the same problems as some other people posted about. I
could not find a fix here, so i decided to solve them by myself. The
following is a report of what i did.
=======
ERROR 1
=======
??? Error using ==> DownloadPsychtoolbox
Cannot find the specified directory, "C:
PROBLEM:
It tries do execute
rmdir(p,'s'), with p = '\Applications\Psychtoolbox'
What it then tries to remove is (at least on my machine) "C:\MATLAB7
\work\\Applications\Psychtoolbox", which is not right.
QUICK AND DIRTY SOLUTION:
Add the following to "DownloadPsychtoolbox.m", line 244 (so, right
before the line that says [succes,m,m]=etc):
S = pwd; p = [S(1) ':' p];
=======
ERROR 2
=======
??? Error using ==> DownloadPsychtoolbox
Can not find specified file or directory.
PROBLEM:
Same problem basically. The intention is to set the file attributes
of C:\Applications\Psychtoolbox and subdirs, but it actually tries
to set those of "<Workdir>\\Applications\Psychtoolbox" (where
<Workdir> is "C:\Matlab7\work" in my case).
QUICK AND DIRTY SOLUTION:
Same as well. In DownloadPsychtoolbox.m, add the line
S = pwd; p = [S(1) ':' p];
right before the line saying [S,m,mm]=fileattrib(p,'+w','a','s');
(this is line 317 if the previous modification has been applied)
=======
ERROR 3
=======
After solving ERROR 2, i get a very strange error. It says:
Warning: See help sprintf for valid escape sequences.
> In DownloadPsychtoolbox at 323??? Error using ==> DownloadPsychtoolbox
and then something like "Hidden file will not be re-set", with all
letters duplicated about 20 times (HHHHHHHHHHHHHHHHiiiiiiiiiiiiiiii
etc).
PROBLEM:
Didn't bother to find out what the exact problem was. Just solved it.
QUICK AND DIRTY SOLUTION:
Replace the line saying:
[s,m,mm]=fileattrib(p,'+w','a','s');
with:
[s,m,mm]=fileattrib(p,'+w','ahs');
(this is line 318 in my version, the line following the one you
added to solve ERROR 2)
=======
ERROR 4
=======
COPYFILE error. Could not update the UpdatePsychtoolbox.m file to
latest version.
??? Error using ==> DownloadPsychtoolbox
PROBLEM:
Again a path problem; see above
QUICK AND DIRTY SOLUTION:
In downloadpsychtoolbox.m, add:
S = pwd; pServer = [S(1) ':' pServer];
right before the line saying
[success,m,mm]=copyfile(pLoose,pServer,'f');
(Line 346 in my version)
Yahoo! Now it works:
---
Updated the file UpdatePsychtoolbox.m to latest version.
You can now use your newly installed Psychtoolbox. Enjoy!
---
Hope this helped.
Kind regards,
Ronald vd Berg