Why does my parpool crash when I am running Python from within MATLAB using Anaconda Python?

9 vues (au cours des 30 derniers jours)
My parallel pool keeps crashing every time I run my MATLAB code that calls Python functions inside it. My Python installation was installed using Anaconda.
My crash log is shown below:
 
-------------------------------------------------------------------------------- abort() detected at 2023-11-06 14:11:56 -0800 -------------------------------------------------------------------------------- Stack Trace (captured): [ 0] 0x00007ffcdc43aca3 C:\Program Files\MATLAB\R2023b\bin\win64\libmwfl.dll+00044195 foundation::core::diag::thread_context::unspecified_bool+00000051 [ 1] 0x00007ffcdc439278 C:\Program Files\MATLAB\R2023b\bin\win64\libmwfl.dll+00037496 foundation::core::diag::stacktrace_base::capture+00000024 [ 2] 0x00007ffcdc43d39f C:\Program Files\MATLAB\R2023b\bin\win64\libmwfl.dll+00054175 foundation::core::diag::symbols::getSymbolAddress+00009455 [ 3] 0x00007ffcdc4403b7 C:\Program Files\MATLAB\R2023b\bin\win64\libmwfl.dll+00066487 foundation::core::diag::is_terminate_message_enabled+00000535 [ 4] 0x00007ffc891a5e6f C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00876143 mnFullExitFcn+00036351 [ 5] 0x00007ffc891a569d C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00874141 mnFullExitFcn+00034349 [ 6] 0x00007ffc891a1523 C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00857379 mnFullExitFcn+00017587 [ 7] 0x00007ffc891a322f C:\Program Files\MATLAB\R2023b\bin\win64\mcr.dll+00864815 mnFullExitFcn+00025023 [ 8] 0x00007ffd2aa61881 C:\WINDOWS\System32\ucrtbase.dll+00465025 raise+00000481 [ 9] 0x00007ffc0d6268d3 C:\Users\username\AppData\Local\anaconda3\Library\bin\libiomp5md.dll+00747731 _kmp_get_reduce_method+00026275 [ 10] 0x00007ffc0d606a1c C:\Users\username\AppData\Local\anaconda3\Library\bin\libiomp5md.dll+00616988 kmp_set_affinity+00005292 [ 11] 0x00007ffc0d625d2d C:\Users\username\AppData\Local\anaconda3\Library\bin\libiomp5md.dll+00744749 _kmp_get_reduce_method+00023293 [ 12] 0x00007ffc0d612515 C:\Users\username\AppData\Local\anaconda3\Library\bin\libiomp5md.dll+00664853 _kmp_acquire_nested_drdpa_lock+00021861

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 24 Juil 2024
Modifié(e) : MathWorks Support Team le 31 Juil 2024
Generally, although it is possible to configure MATLAB to work with Anaconda/Miniconda Python, the recommended approach is to install CPython distributions. You may download it using the Download Python page .
Refer to the
 documentation to learn more about version compatibility.
In addition, it may be required to ensure MATLAB uses the correct version of Python as follows:
pyenv(Version="executable")
Here, "executable" is the full path to the Python executable file associated with the correct installation of Python. For more information refer to the Configure your system to use Python documentation.

Plus de réponses (0)

Catégories

En savoir plus sur Third-Party Cluster Configuration dans Help Center et File Exchange

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by