Error when running my CNN code ( Error using parallel.internal.pool.DataQueue The specified superclass 'parallel.internal.pool.AbstractDataQueue' contains a parse error)
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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,
0 comentarios
Respuestas (1)
Chidvi Modala
el 15 de Nov. de 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:
0 comentarios
Ver también
Categorías
Más información sobre Install Products en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!