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.

undefined symbol: _ZN3tbb8internal13numa_topology11nodes_countEv using OpenVINO 2020.1

Wenjing
Employee
2,257 Views
I've followed the installation guide of 2020.1. The running of Verification Scripts to Verify Installation is successful. However, when I tried to use my own python script using the 2020.1 version, it get the RuntimeError... I checked the LD_LIBRARY_PATH, it is correct. When I got back to 2019R3.1, this problem disappear... Would anyone please give some help to me, so that I can use the 2020.1 version? System Info: Ubuntu 16.04 python 3.7 Hardware: Intel(R) Core(TM) i7-6700T CPU @ 2.80GHz ============================================================= Traceback (most recent call last): File "predict_openvino.py", line 165, in main() File "predict_openvino.py", line 70, in main plugin = IEPlugin(device=args.device, plugin_dirs=None) File "ie_api.pyx", line 1187, in openvino.inference_engine.ie_api.IEPlugin.__cinit__ RuntimeError: Cannot find plugin to use: Tried load plugin : MKLDNNPlugin for device CPU, error: Plugin MKLDNNPlugin cannot be loaded: cannot load plugin: MKLDNNPlugin from : Cannot load library 'libMKLDNNPlugin.so': /home/kangwenj/intel/openvino_2020.1.023/deployment_tools/inference_engine/lib/intel64/libMKLDNNPlugin.so: undefined symbol: _ZN3tbb8internal13numa_topology11nodes_countEv, skipping cannot load plugin: MKLDNNPlugin from /home/my_name/intel/openvino_2020.1.023/python/python3.7/openvino/inference_engine: Cannot load library '/home/kangwenj/intel/openvino_2020.1.023/python/python3.7/openvino/inference_engine/libMKLDNNPlugin.so': /home/my_name/intel/openvino_2020.1.023/python/python3.7/openvino/inference_engine/libMKLDNNPlugin.so: cannot open shared object file: No such file or directory, skipping =============================================================
0 Kudos
1 Solution
Wenjing
Employee
2,257 Views

Jaivin James (Intel) wrote:

Hi Wenjing,

Could you mention the output of the following command:

ldd -r libMKLDNNPlugin.so

( from both OpenVINO 2019R3.1 as well as 2020.1 after running respective setupvars.sh)

Ideally when LD_LIBRARY_PATH is set properly then the ldd -r should not show any undefined symbols.

Regards,

Jaivin

 

Hi James,

Thanks for you reply. 

The problem has been solved. I used Anaconda3 to run the python script, which has the cython package. After I uninstall the cython package, the RuntimeError is gone. :)

 

Thanks,

Wenjing

View solution in original post

0 Kudos
5 Replies
JAIVIN_J_Intel
Employee
2,257 Views

Hi Wenjing,

Could you mention the output of the following command:

ldd -r libMKLDNNPlugin.so

( from both OpenVINO 2019R3.1 as well as 2020.1 after running respective setupvars.sh)

Ideally when LD_LIBRARY_PATH is set properly then the ldd -r should not show any undefined symbols.

Regards,

Jaivin

0 Kudos
Wenjing
Employee
2,258 Views

Jaivin James (Intel) wrote:

Hi Wenjing,

Could you mention the output of the following command:

ldd -r libMKLDNNPlugin.so

( from both OpenVINO 2019R3.1 as well as 2020.1 after running respective setupvars.sh)

Ideally when LD_LIBRARY_PATH is set properly then the ldd -r should not show any undefined symbols.

Regards,

Jaivin

 

Hi James,

Thanks for you reply. 

The problem has been solved. I used Anaconda3 to run the python script, which has the cython package. After I uninstall the cython package, the RuntimeError is gone. :)

 

Thanks,

Wenjing

0 Kudos
Yun_Y_Intel
Employee
2,257 Views

Hi I've got the same problem. Uninstalling cython does not work for me. 

The outputs of "ldd -r libMKLDNNPlugin.so" are

        linux-vdso.so.1 (0x00007ffd6c076000)
        libtbb.so.2 => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/tbb/lib/libtbb.so.2 (0x00007eff84202000)
        libinference_engine.so => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/lib/intel64/libinference_engine.so (0x00007eff83b8c000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007eff83988000)
        libmkl_tiny_tbb.so => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/mkltiny_lnx/lib/libmkl_tiny_tbb.so (0x00007eff81ab7000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007eff8172e000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007eff81390000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007eff81178000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007eff80f59000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007eff80b68000)
        /lib64/ld-linux-x86-64.so.2 (0x00007eff85c68000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007eff80960000)
        libngraph.so => /opt/intel/openvino_2020.1.023/deployment_tools/ngraph/lib/libngraph.so (0x00007eff8011c000)
 

Thanks!

Yun

0 Kudos
Wenjing
Employee
2,257 Views

Ye, Yun (Intel) wrote:

Hi I've got the same problem. Uninstalling cython does not work for me. 

The outputs of "ldd -r libMKLDNNPlugin.so" are

        linux-vdso.so.1 (0x00007ffd6c076000)
        libtbb.so.2 => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/tbb/lib/libtbb.so.2 (0x00007eff84202000)
        libinference_engine.so => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/lib/intel64/libinference_engine.so (0x00007eff83b8c000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007eff83988000)
        libmkl_tiny_tbb.so => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/mkltiny_lnx/lib/libmkl_tiny_tbb.so (0x00007eff81ab7000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007eff8172e000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007eff81390000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007eff81178000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007eff80f59000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007eff80b68000)
        /lib64/ld-linux-x86-64.so.2 (0x00007eff85c68000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007eff80960000)
        libngraph.so => /opt/intel/openvino_2020.1.023/deployment_tools/ngraph/lib/libngraph.so (0x00007eff8011c000)
 

Thanks!

Yun

On my another computer, after I've uninstalled cython, it still has runtime error. But re-installing the anaconda did solve the problem, I'm not clear about the reason here, so you may consider reinstall anaconda.

0 Kudos
Yun_Y_Intel
Employee
2,257 Views

Thank you! Wenjing.

I switched to 2019.3. It works well now. 

Kang, Wenjing (Intel) wrote:

Quote:

Ye, Yun (Intel) wrote:

 

Hi I've got the same problem. Uninstalling cython does not work for me. 

The outputs of "ldd -r libMKLDNNPlugin.so" are

        linux-vdso.so.1 (0x00007ffd6c076000)
        libtbb.so.2 => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/tbb/lib/libtbb.so.2 (0x00007eff84202000)
        libinference_engine.so => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/lib/intel64/libinference_engine.so (0x00007eff83b8c000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007eff83988000)
        libmkl_tiny_tbb.so => /opt/intel/openvino_2020.1.023/deployment_tools/inference_engine/external/mkltiny_lnx/lib/libmkl_tiny_tbb.so (0x00007eff81ab7000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007eff8172e000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007eff81390000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007eff81178000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007eff80f59000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007eff80b68000)
        /lib64/ld-linux-x86-64.so.2 (0x00007eff85c68000)
        librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007eff80960000)
        libngraph.so => /opt/intel/openvino_2020.1.023/deployment_tools/ngraph/lib/libngraph.so (0x00007eff8011c000)
 

Thanks!

Yun

 

 

On my another computer, after I've uninstalled cython, it still has runtime error. But re-installing the anaconda did solve the problem, I'm not clear about the reason here, so you may consider reinstall anaconda.

0 Kudos
Reply