Error importing cv2 in python3, Anaconda
<p>I get the following error when importing opencv in python:</p>

<pre><code>&gt; python
&gt;&gt;&gt; import cv2
Traceback (most recent call last):
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
ImportError: /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0: undefined symbol: hb_buffer_set_cluster_level
</code></pre>

<p>The system is Linux debian 4.7.0-1-amd64, stretch. I have created an environment for Python 3 in Anaconda:</p>

<pre><code>conda create --name=envPython3 python=3 anaconda
source activate envPython3
</code></pre>

<p>and then installed OpenCV:</p>

<pre><code>conda install -c https://conda.anaconda.org/menpo opencv3
</code></pre>

<p>It should be installed because</p>

<pre><code>conda list | grep cv
</code></pre>

<p>returns</p>

<pre><code>opencv3          3.1.0         py35_0    menpo
</code></pre>

<p>Everything works fine with Python 2</p>

<p><a href="http://unix.stackexchange.com/questions/235012/problem-with-gtk-application-s">May be this post is related</a> </p>

<p>i also had the same issue.  I found an answer that may work for you.  Try</p>

<pre><code>source activate envPython3
conda install -c asmeurer pango
python
&gt;&gt;&gt; import cv2
</code></pre>

<p>Please see this <a href="https://github.com/ContinuumIO/anaconda-issues/issues/368" rel="nofollow">github link</a></p>

python python-3.x opencv anaconda opencv3.0