face-detection-python icon indicating copy to clipboard operation
face-detection-python copied to clipboard

How can I solve this `ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory`?

Open masouduut94 opened this issue 5 years ago • 2 comments

This error happens everytime when I want to run the app: Traceback (most recent call last): File "app/face_detection_openvino.py", line 28, in from detection.face_detection_ov import FaceDetectionConfig, OpenMZooFaceDetection, FaceDetectionModelTypes, MtCNNFaceDetection, MTCNNFaceDetectionConfig File "/home/gpu/codes/MSD/openvino_face_detection/detection/face_detection_ov.py", line 31, in from openvino.inference_engine import IENetwork, IECore, ExecutableNetwork File "/opt/intel/openvino_2019.3.376/python/python3.7/openvino/inference_engine/init.py", line 1, in from .ie_api import * ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory

I ran the program in python 3.6 and python 3.7?

masouduut94 avatar Mar 11 '20 11:03 masouduut94

You can specify your python_version, when you run setupvars.sh.

l solved by simply running the setupvars.sh file using python3.5 version instead of 3.6. source /opt/intel/openvino/bin/setupvars.sh -pyver 3.5

payal211 avatar May 03 '21 10:05 payal211

Simply apt install python3.7-dev and it should work.

The problem is that the .so library of python is missing form the environment - this is not OpenVino specific. This has nothing to do with setupvars.sh.

avideci avatar Nov 03 '21 10:11 avideci