title: Python Opencv imshow error
body: <p>I try on some trial..
  i build </p>
  
  <blockquote>
    <p>cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local
    -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D
    BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_GTK=ON -D WITH_OPENGL=ON ..</p>
  </blockquote>
  
  <p>and if i try on python :</p>
  
  <blockquote>
    <p>import cv2</p>
    
    <p>print(cv2.<strong>version</strong>)</p>
    
    <p>3.2.0</p>
  </blockquote>
  
  <p>my full code :
  (<a href="https://www.solarianprogrammer.com/2016/09/17/install-opencv-3-with-python-3-on-windows/" rel="nofollow noreferrer">https://www.solarianprogrammer.com/2016/09/17/install-opencv-3-with-python-3-on-windows/</a>)</p>
  
  <pre><code>import cv2
  image = cv2.imread("/home/reigin/Pictures/games.jpg")
  gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
  cv2.imshow("Over the Clouds", image)
  cv2.imshow("Over the Clouds - gray", gray_image)
  cv2.waitKey(0)
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>i got error on this :</p>
  
  <pre><code>cv2.imshow("Over the Clouds", image)
  OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvShowImage, file /io/opencv/modules/highgui/src/window.cpp, line 583
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  cv2.error: /io/opencv/modules/highgui/src/window.cpp:583: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvShowImage
  </code></pre>
  
  <p>i set my dpk-configure :</p>
  
  <pre><code>reigin@reigin-K43SA:~$ echo $PKG_CONFIG_PATH
  /usr/local/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig
  </code></pre>
  
  <p>if i do other than show my image no any problem..</p>
  
  <p>can't help :</p>
  
  <p><a href="https://stackoverflow.com/questions/30450602/opencv-3-0-python-imshow-error">opencv 3.0 python imshow error</a></p>
  
  <p><a href="http://vinllen.com/solve-error-libgtk2-0-dev-and-pkg-config-when-install-opencv/" rel="nofollow noreferrer">http://vinllen.com/solve-error-libgtk2-0-dev-and-pkg-config-when-install-opencv/</a></p>
  
  <p><a href="http://answers.opencv.org/question/57945/opencv-gui-with-gtk-2-solved/" rel="nofollow noreferrer">http://answers.opencv.org/question/57945/opencv-gui-with-gtk-2-solved/</a></p>
  
  <p><a href="https://askubuntu.com/questions/210210/pkg-config-path-environment-variable">https://askubuntu.com/questions/210210/pkg-config-path-environment-variable</a></p>
  
  <p>Thanks for pay attention and help..</p>