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)

1 Ansicht (letzte 30 Tage)
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,

Antworten (1)

Chidvi Modala
Chidvi Modala am 15 Nov. 2021
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:

Kategorien

Mehr zu Install Products finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by