Error using method on matlab engine

7 views (last 30 days)
Hanchen
Hanchen on 20 Aug 2025
Answered: Anay on 22 Aug 2025
I can't get to use certain library.
In detail,
I start by doing this:
engine = matlab.engine.start_matlab()
Then I tried to use
engine.importNetworkFromONNX(
self.model_path,
"InputDataFormats",
"BCSS",
"OutputDataFormats",
"BC",
nargout=1
)
it returns me the error as:
File /usr/local/MATLAB/R2024b/toolbox/nnet/cnn/spkgs/importNetworkFromONNX.m, line 72, in importNetworkFromONNX
importNetworkFromONNX requires the Deep Learning Toolbox Converter for ONNX Model Format support package. To install this support package, use the <a href="matlab: matlab.addons.supportpackage.internal.explorer.showSupportPackages('ONNXCONVERTER', 'tripwire')">Add-On Explorer</a>.
But I know the addon package is there because I just installed, and I even wrote a dummy test to see ver:
MATLAB Version: 24.2.0.2923080 (R2024b) Update 6
MATLAB License Number: 299681
Operating System: Linux 6.14.0-27-generic #27~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 17:38:49 UTC 2 x86_64
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------------------
MATLAB Version 24.2 (R2024b)
Computer Vision Toolbox Version 24.2 (R2024b)
Control System Toolbox Version 24.2 (R2024b)
Deep Learning Toolbox Version 24.2 (R2024b)
Image Processing Toolbox Version 24.2 (R2024b)
Optimization Toolbox Version 24.2 (R2024b)
Parallel Computing Toolbox Version 24.2 (R2024b)
Statistics and Machine Learning Toolbox Version 24.2 (R2024b)
Symbolic Math Toolbox Version 24.2 (R2024b)
System Identification Toolbox Version 24.2 (R2024b)
but missing the Deep Learning Toolbox Converter for ONNX Model, which I have installed.
So I am not sure if that is a userpath issue or other things that I might have missed? Thank you!

Answers (1)

Anay
Anay on 22 Aug 2025
Hi Hanchen,
I understand that you are trying to call importNetworkFromONNXmethod but it runs into the above error. From the error message you shared, it seems that the package “Deep Learning Toolbox Converter for ONNX Model Format” is missing.
According to the MATLAB documentation, you need additional support packages for interoperability between the Deep Learning Toolbox and ONNX:
You need to install the “Deep Learning Toolbox Converter for ONNX Model Format” support package for your deep learning workflows with ONNX in MATLAB. You can consider to follow the below link to the download page of the support package:
I hope this helps!

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!