Ask Your Question

Revision history [back]

I had the same issue and solved it as follows:

Check if your linker finds any 3rd party libraries which you have installed on your system (in my case it was "/usr/NX/lib" which came with its own gtk libraries): LD_DEBUG=files python -c "import cv2"

  1. If you have installed opencv through a package manager, check your LD_LIBRARY_PATH variable and remove the entries if existent
  2. If you have built opencv from source, you have to exclude the folder from the cmake search path (e.g. -D CMAKE_IGNORE_PATH=/usr/NX/lib)