Skip to main content
ShivaRagu
Senior
April 16, 2021
Solved

Hi ST Member, Am getting the following error while Analyzing the model file in Stm32CubeMx.

  • April 16, 2021
  • 2 replies
  • 1093 views

"ImportError: cannot import name 'get_all_providers' from 'onnxruntime.capi._pybind_state' (C:\Users\Systemname\STM32Cube\Repository\Packs\STMicroelectronics\X-CUBE-AI\6.0.0\Utilities\windows\onnxruntime\capi\_pybind_state.pyc)"

Please help me to solve this issue.

This topic has been closed for replies.
Best answer by ShivaRagu

Hi @Khouloud ZEMMELI​ ,

This error got solved. Actually, the error was due to some dll missing in the repository of Cube AI, So I uninstalled and reinstalled the CubeMX and Cube AI to the latest version and tried. It worked.

Thanks,

shivashankari.

2 replies

Khouloud ZEMMELI
ST Employee
June 4, 2021

Hello @ShivaRagu​ 

Thanks for your post,

Could you please provide me steps to reproduce the issue?

Thanks, Khouloud

ShivaRagu
ShivaRaguAuthorBest answer
Senior
June 7, 2021

Hi @Khouloud ZEMMELI​ ,

This error got solved. Actually, the error was due to some dll missing in the repository of Cube AI, So I uninstalled and reinstalled the CubeMX and Cube AI to the latest version and tried. It worked.

Thanks,

shivashankari.

Khouloud ZEMMELI
ST Employee
June 11, 2021

Hi @ShivaRagu​ ,

Great to know :)

Thanks for your contribution, Khouloud