Hi, I tried to enable parpool in MATLAB 2014a, it gives following message Error using parpool (line 99) The operation must modify one or more Settings files for these levels: factory, user, but you do not have write permission on these levels: user.
Error in parallel.internal.ui.PoolHelper.startPool (line 11) parpool();
I have all permissions, I tried to uninstall and install again, but after one or two days, this problem come out again

댓글 수: 4

Hi Ming,
Can you tell me:
  • what platform you are running on?
  • where is the MATLAB installation?
  • what is the location of your preferences directory and do you have full read/write access to that location?
You can find the preferences directory using the
prefdir
command in MATLAB.
If you close MATLAB and then delete parallel.settings file in your preferences directory and try again, does the error still occur?
If that doesn't fix it, then please try the following code in MATLAB:
s = Settings;
s.parallel
s.parallel.addNode('test')
s.parallel.test.addKey('testKey')
s.parallel.test.isSet('testKey')
s.parallel.removeNode('test')
Thanks,
Elwin
Ming
Ming 2014년 6월 15일
편집: Ming 2014년 6월 15일
Hi, Elwin
I am runing windows 7 sp1 x64 with all patches installed up-to-date. I am runing on my own PC, directly in the Administrator account, I have all permissions to run and change anything. The matlab is installed at C:\Program Files\MATLAB\R2014a I tried your suggestions, but it still doesn't work, unless I reinstall matlab, but 2, 3 days later this problem will appear again.
Someone post exact same problem in April:
Hi Ming,
Thanks for the info. When it is not working, please can you try the following code and reply with the results? (The code won't fix the problem, but might help to diagnose the issue.)
s = Settings;
s.parallel
s.parallel.addNode('test')
s.parallel.test.addKey('testKey')
s.parallel.test.isSet('testKey')
s.parallel.removeNode('test')
Thanks,
Elwin
Ming
Ming 2014년 6월 16일
편집: Ming 2014년 6월 16일
Hi,
Thank you for your replying, here are the results
s = Settings;
s.parallel
s.parallel.addNode('test')
s.parallel.test.addKey('testKey')
s.parallel.test.isSet('testKey')
s.parallel.removeNode('test')
ans =
Settings with no properties.
ans =
0

댓글을 달려면 로그인하십시오.

 채택된 답변

Elwin Chan
Elwin Chan 2014년 6월 23일

1 개 추천

I debugged Ming's MATLAB installation, and the problem was that there was a 3rd party MATLAB toolbox installed that contained a file called assert.m which was higher up on the MATLAB search path than the built-in MATLAB function. This was causing MATLAB's built-in assert function to be shadowed, and caused the error.
You can see which assert function will used by calling
which -all assert
You want built-in (L:\Bparallel\matlab\toolbox\matlab\lang\assert) to be the first one on the list. If it is not the first on on the list, then you should re-arrange your path using MATLAB's path tool.

댓글 수: 2

Ming
Ming 2014년 6월 23일
Thank you again Elwin, the MATLAB is now running fine.
Sean de Wolski
Sean de Wolski 2014년 6월 23일
I've seen uses' asserts break lots of things; it's probably the most shadowed function I've seen.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

질문:

2014년 6월 12일

댓글:

2014년 6월 23일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by