<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I was able to get around this in Intel® Distribution of OpenVINO™ Toolkit</title>
    <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184236#M19022</link>
    <description>&lt;P&gt;I thought I figured it out but was wrong so I am deleting what I thought fixed the issue.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Feb 2020 19:31:00 GMT</pubDate>
    <dc:creator>Celi__Joseph</dc:creator>
    <dc:date>2020-02-14T19:31:00Z</dc:date>
    <item>
      <title>Unable to import cv2 on Mac</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184235#M19021</link>
      <description>&lt;P&gt;I just installed the latest OpenVINO toolkit for Mac.&amp;nbsp; I'm getting the following error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[setupvars.sh] OpenVINO environment initialized&lt;/P&gt;&lt;P&gt;$ python&lt;/P&gt;&lt;P&gt;Python 3.6.1 (default, Sep 24 2019, 10:11:07)&amp;nbsp;&lt;/P&gt;&lt;P&gt;[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)] on darwin&lt;/P&gt;&lt;P&gt;Type "help", "copyright", "credits" or "license" for more information.&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import cv2&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ImportError: dlopen(/opt/intel/openvino_2020.1.023/python/python3/cv2.so, 2): Library not loaded: @rpath/libopencv_ml.4.2.dylib&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Referenced from: /opt/intel/openvino_2020.1.023/python/python3/cv2.so&lt;/P&gt;&lt;P&gt;&amp;nbsp; Reason: image not found&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 17:47:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184235#M19021</guid>
      <dc:creator>Celi__Joseph</dc:creator>
      <dc:date>2020-02-14T17:47:12Z</dc:date>
    </item>
    <item>
      <title>I was able to get around this</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184236#M19022</link>
      <description>&lt;P&gt;I thought I figured it out but was wrong so I am deleting what I thought fixed the issue.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2020 19:31:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184236#M19022</guid>
      <dc:creator>Celi__Joseph</dc:creator>
      <dc:date>2020-02-14T19:31:00Z</dc:date>
    </item>
    <item>
      <title>Please check if your</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184237#M19023</link>
      <description>&lt;P&gt;Please check if your installation is complete, does file "/opt/intel/openvino_2020.1.023/opencv/lib/libopencv_ml.4.2.dylib" exist?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 14:48:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184237#M19023</guid>
      <dc:creator>Maksim_S_Intel</dc:creator>
      <dc:date>2020-02-19T14:48:11Z</dc:date>
    </item>
    <item>
      <title>The file does exist but not</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184238#M19024</link>
      <description>&lt;P&gt;The file does exist but not in that directory.&amp;nbsp; This could be due to the fact that I tried all 3 installation types and the last installation type was "user"&lt;/P&gt;&lt;P&gt;Joseph-Celi-MBP:lib josephceli$ pwd&lt;/P&gt;&lt;P&gt;/Users/josephceli/intel/openvino_2020.1.023/opencv/lib&lt;/P&gt;&lt;P&gt;Joseph-Celi-MBP:lib josephceli$ ll libopencv_ml.4.2.dylib&lt;/P&gt;&lt;P&gt;lrwxrwxr-x&amp;nbsp; 1 josephceli&amp;nbsp; staff&amp;nbsp; 24 Jan 27 10:56 libopencv_ml.4.2.dylib -&amp;gt; libopencv_ml.4.2.0.dylib&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:31:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184238#M19024</guid>
      <dc:creator>Celi__Joseph</dc:creator>
      <dc:date>2020-02-19T15:31:45Z</dc:date>
    </item>
    <item>
      <title>So you have to activate</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184239#M19025</link>
      <description>&lt;P&gt;So&amp;nbsp;you have to activate environment for installation in user directory: ".&amp;nbsp;/Users/josephceli/intel/openvino_2020.1.023/bin/setupvars.sh"&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:36:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184239#M19025</guid>
      <dc:creator>Maksim_S_Intel</dc:creator>
      <dc:date>2020-02-19T15:36:16Z</dc:date>
    </item>
    <item>
      <title>Maksim,</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184240#M19026</link>
      <description>&lt;P&gt;Maksim,&lt;/P&gt;&lt;P&gt;Yes, I had been doing that.&lt;/P&gt;&lt;P&gt;Joseph-Celi-MBP:opencv josephceli$ . /Users/josephceli/intel/openvino_2020.1.023/bin/setupvars.sh&lt;/P&gt;&lt;P&gt;[setupvars.sh] OpenVINO environment initialized&lt;/P&gt;&lt;P&gt;Joseph-Celi-MBP:opencv josephceli$ python get_ver.py&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "get_ver.py", line 1, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; import cv2&lt;/P&gt;&lt;P&gt;ImportError: dlopen(/Users/josephceli/intel/openvino_2020.1.023/python/python3/cv2.so, 2): Library not loaded: @rpath/libopencv_ml.4.2.dylib&lt;/P&gt;&lt;P&gt;&amp;nbsp; Referenced from: /Users/josephceli/intel/openvino_2020.1.023/python/python3/cv2.so&lt;/P&gt;&lt;P&gt;&amp;nbsp; Reason: image not found&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 15:44:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184240#M19026</guid>
      <dc:creator>Celi__Joseph</dc:creator>
      <dc:date>2020-02-19T15:44:17Z</dc:date>
    </item>
    <item>
      <title>I can not reproduce the issue</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184241#M19027</link>
      <description>&lt;P&gt;I can not reproduce the issue:&lt;/P&gt;
&lt;PRE class="brush:python; class-name:dark;"&gt;$ . intel/openvino_2020.1.023/bin/setupvars.sh 
[setupvars.sh] OpenVINO environment initialized
$ python3
Python 3.7.3 (default, Jun 19 2019, 07:38:49) 
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
&amp;gt;&amp;gt;&amp;gt; import cv2
&amp;gt;&amp;gt;&amp;gt; 
&lt;/PRE&gt;

&lt;P&gt;What is your OS version? Check LD_LIBRARY_PATH and DYLD_LIBRARY_PATH environment&amp;nbsp;variables contents, at least one of them&amp;nbsp;should contain path to opencv/lib directory. Check sizes of installed files.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:25:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184241#M19027</guid>
      <dc:creator>Maksim_S_Intel</dc:creator>
      <dc:date>2020-02-19T16:25:34Z</dc:date>
    </item>
    <item>
      <title>macOS Mojave - Version 10.14</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184242#M19028</link>
      <description>&lt;P&gt;macOS Mojave - Version 10.14.6&amp;nbsp;&lt;/P&gt;&lt;P&gt;checking library paths now and will report back&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:37:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184242#M19028</guid>
      <dc:creator>Celi__Joseph</dc:creator>
      <dc:date>2020-02-19T16:37:00Z</dc:date>
    </item>
    <item>
      <title>Joseph-Celi-MBP:~ josephceli$</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184243#M19029</link>
      <description>&lt;P&gt;Joseph-Celi-MBP:~ josephceli$ . /Users/josephceli/intel/openvino_2020.1.023/bin/setupvars.sh&lt;/P&gt;&lt;P&gt;[setupvars.sh] OpenVINO environment initialized&lt;/P&gt;&lt;P&gt;Joseph-Celi-MBP:~ josephceli$ echo $LD_LIBRARY_PATH&lt;/P&gt;&lt;P&gt;/Users/josephceli/intel//openvino_2020.1.023/opencv/lib:/Users/josephceli/intel//openvino_2020.1.023/deployment_tools/ngraph/lib:/Users/josephceli/intel//openvino_2020.1.023/deployment_tools/inference_engine/external/mkltiny_mac/lib:/Users/josephceli/intel//openvino_2020.1.023/deployment_tools/inference_engine/external/tbb/lib:/Users/josephceli/intel//openvino_2020.1.023/deployment_tools/inference_engine/lib/intel64:&lt;/P&gt;&lt;P&gt;Joseph-Celi-MBP:~ josephceli$ echo $DYLD_LIBRARY_PATH&lt;/P&gt;&lt;P&gt;/Users/josephceli/intel//openvino_2020.1.023/deployment_tools/inference_engine/external/mkltiny_mac/lib:/Users/josephceli/intel//openvino_2020.1.023/deployment_tools/inference_engine/external/tbb/lib:/Users/josephceli/intel//openvino_2020.1.023/deployment_tools/inference_engine/lib/intel64:&lt;/P&gt;&lt;P&gt;Joseph-Celi-MBP:~ josephceli$ find . -name libopencv_ml.4.2.dylib 2&amp;gt;/dev/null&lt;/P&gt;&lt;P&gt;./intel/openvino_2020.1.023/opencv/lib/libopencv_ml.4.2.dylib&lt;/P&gt;&lt;P&gt;Joseph-Celi-MBP:~ josephceli$ pwd&lt;/P&gt;&lt;P&gt;/Users/josephceli&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:41:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184243#M19029</guid>
      <dc:creator>Celi__Joseph</dc:creator>
      <dc:date>2020-02-19T16:41:53Z</dc:date>
    </item>
    <item>
      <title>Hello Joseph.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184244#M19030</link>
      <description>&lt;P&gt;Hello Joseph.&lt;/P&gt;&lt;P&gt;Can you please try the workaround from this thread -&amp;nbsp;https://github.com/opencv/opencv/issues/14353&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 20:08:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184244#M19030</guid>
      <dc:creator>Max_L_Intel</dc:creator>
      <dc:date>2020-02-21T20:08:35Z</dc:date>
    </item>
    <item>
      <title>Just noticed this last update</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184245#M19031</link>
      <description>&lt;P&gt;Just noticed this last update.&amp;nbsp; @Max - I will try the workaround and report back.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 20:33:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184245#M19031</guid>
      <dc:creator>Celi__Joseph</dc:creator>
      <dc:date>2020-02-25T20:33:25Z</dc:date>
    </item>
    <item>
      <title>@Max - I appreciate the link</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184246#M19032</link>
      <description>&lt;P&gt;@Max - I appreciate the link but am still unsure how to take the information from those links and apply it to my machine to get around the fact that the OpenCV dynamic link library cannot be found at runtime.&amp;nbsp; While the link above describes a similar problem from the Java environment it certainly appears to be exactly what I am seeing.&amp;nbsp; I tried to manually update my environment, using the following snippet from the links provided above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if sys.platform == 'darwin': # &lt;A href="https://github.com/opencv/opencv/issues/14351" target="_blank"&gt;https://github.com/opencv/opencv/issues/14351&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if env is None:&lt;/P&gt;&lt;P&gt;env = os.environ.copy()&lt;/P&gt;&lt;P&gt;if 'DYLD_LIBRARY_PATH' in env:&lt;/P&gt;&lt;P&gt;env['OPENCV_SAVED_DYLD_LIBRARY_PATH'] = env['DYLD_LIBRARY_PATH']&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still see the same error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "multi_camera_multi_person_tracking.py", line 22, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; import cv2 as cv&lt;/P&gt;&lt;P&gt;ImportError: dlopen(/Users/josephceli/intel/openvino_2020.1.023/python/python3/cv2.so, 2): Library not loaded: @rpath/libopencv_ml.4.2.dylib&lt;/P&gt;&lt;P&gt;&amp;nbsp; Referenced from: /Users/josephceli/intel/openvino_2020.1.023/python/python3/cv2.so&lt;/P&gt;&lt;P&gt;&amp;nbsp; Reason: image not found&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your support&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 14:52:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184246#M19032</guid>
      <dc:creator>Celi__Joseph</dc:creator>
      <dc:date>2020-03-10T14:52:17Z</dc:date>
    </item>
    <item>
      <title>Hi Joseph.</title>
      <link>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184247#M19033</link>
      <description>&lt;P&gt;Hi Joseph.&lt;/P&gt;&lt;P&gt;Can you please try it with "python3" alias instead of just "python"? Or you could&amp;nbsp;also try upgrading&amp;nbsp;python over to 3.7 version.&lt;BR /&gt;I see the same behavior on my machine with "python" as python 2.7, but everything's fine with "python3" as python 3.7.&lt;/P&gt;&lt;P&gt;Best regards, Max.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 21:24:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Distribution-of-OpenVINO/Unable-to-import-cv2-on-Mac/m-p/1184247#M19033</guid>
      <dc:creator>Max_L_Intel</dc:creator>
      <dc:date>2020-03-10T21:24:05Z</dc:date>
    </item>
  </channel>
</rss>

