Error when running my CNN code ( Error using parallel.i​nternal.po​ol.DataQue​ue The specified superclass 'parallel.​internal.p​ool.Abstra​ctDataQueu​e' contains a parse error)

6 ビュー (過去 30 日間)
Nour Mohamed
Nour Mohamed 2021 年 11 月 11 日
回答済み: Chidvi Modala 2021 年 11 月 15 日
I ran my code and it was fine, when I tried to run it again I got the following error even though I did not change anything:
Error using trainNetwork (line 183)
The specified superclass 'parallel.internal.pool.AbstractDataQueue' contains a parse error, cannot
be found on MATLAB's search path, or is shadowed by another file with the same name.
Error in CNN_Faces (line 54)
net = trainNetwork(imdsTrain,layers,options);
Caused by:
Error using parallel.internal.pool.DataQueue
The specified superclass 'parallel.internal.pool.AbstractDataQueue' contains a parse error,
cannot be found on MATLAB's search path, or is shadowed by another file with the same name.
How can I fix it?
Thank you,

回答 (1 件)

Chidvi Modala
Chidvi Modala 2021 年 11 月 15 日
Hi Nour,
In general, the error 'cannot be found on MATLAB's search path, or is shadowed by another file with the same name.' is received when there is a user defined function in the MATLAB search path which has the same name as the MATLAB built-in function. In order to resolve this issue, you may follow the troubleshooting steps mentioned below:
a) Manually go through the MATLAB search path and remove the paths which have functions conflicting with in build MATLAB functions. Execute the following command to get the list of the current search path.
path
The following command may help to find the source of the issue:
which -all <conflicting_function>
b) If you are unsure of which paths to remove or the above command displays only one line, you may restore the MATLAB search path to its factory-installed state by executing the following command :
restoredefaultpath
Also, notice that the above command may remove the paths that you have previously added to MATLAB search path in order for your scripts to work. So it is advisable to save a backup copy of the current MATLAB search path before running the command.
You may refer to the following link to the documentation to backup the current search path:

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by