Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.
6405 Discussions

When I import openvino.inference_engine, I faced crash the python in Raspberry Pi4, Ubuntu18.04.

Yusuke0202
Beginner
3,743 Views

Hello, everyone.

I'm trying to use OpenVINO and NCS2 in my Raspberry Pi4 machine. 

I successfully built the OpenVINO for Python3.7 environment as following:

https://software.intel.com/content/www/us/en/develop/articles/arm64-sbc-and-ncs2.html

https://github.com/openvinotoolkit/openvino/issues/1550

However, when I tried to import openvino.inference in Python, I faced the "Segmentation fault (core dumped)" and crash Python in my console.

Actually, when I import openvino only, I didn't face crash, but the case of "openvino.inference_engine" is crashing my Python ("from openvino import inference_engine" is also crashing).

How can I do that?

-----

My environment as below.

Machine: Raspberry Pi4 8GB

OS: Ubuntu18.04 and Ubuntu Mate

Python: Python3.7.4 (virtualenv)

-----
Thank you in advance.

 

0 Kudos
22 Replies
Yusuke0202
Beginner
539 Views

Hi Rizal,

It's me again because I found the solution of segmentation fault.
Actually, it was really stupid my mistake that build method referred to incorrect Cython path (I think it's python2 Cython).

I uninstall this cython and install only python3.7 cython, and then I can import openvino.inference_engine.

Thank you for your long support and sorry for wasting a lot of your time.

Respectfully,

Yusuke

0 Kudos
Yusuke0202
Beginner
519 Views

Sorry, the problem is not in Cython version. Actually I'm getting confused what is the problem.
However, I can build OpenVINO on pre-installed python like python3.6 in Ubuntu18 and python3.8 in Ubuntu20. Throw my hands up.

Thanks,

Yusuke

0 Kudos
Reply