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

9 次查看(过去 30 天)
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

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2024-7-31
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Third-Party Cluster Configuration 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by