Matlab Linux Python: Numba causes Python Process to terminate unexpectedly

16 views (last 30 days)
I am trying to import the python module "numba" (0.51.2) in Matlab 2020b (update 3 installed) running on Ubuntu 18.04 (Linux).
I set-up anaconda with basic modules installed (running Python 3.8.5)
pyenv('Version','/home/myusername/anaconda3/bin/python', "ExecutionMode","OutOfProcess")
I can then import a module such as numpy as follows:
This works without any problems.
But when I try to import numba as follows, I get an error:
Error using py.importlib.import_module
Python process terminated unexpectedly. To restart the Python interpreter,
first call "terminate(pyenv)" and then call a Python function.
I checked my Python Environment Properties before trying to import numba:
PythonEnvironment with properties:
Version: "3.8"
Executable: "/home/myusername/anaconda3/bin/python"
Library: "/home/myusername/anaconda3/lib/"
Home: "/home/myusername/anaconda3"
Status: Loaded
ExecutionMode: OutOfProcess
ProcessID: "15165"
ProcessName: "MATLABPyHost"
Side note: All python modules are up to date. Numba is joinlty installed with llvmlite 0.32.1
MATLAB Version: (R2020b) Update 3
Operating System: Linux 5.4.0-53-generic #59~18.04.1-Ubuntu SMP Wed Oct 21 12:14:56 UTC 2020 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode

Answers (0)

Community Treasure Hunt

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

Start Hunting!