ImportError: libSM.so.6: cannot open shared object file: No such file or directory

Dmitry Rastorguev :

When trying to import OpenCV, using import cv2 I get the following error:

/usr/local/lib/python2.7/dist-packages/cv2/__init__.py in <module>()
      7 
      8 # make IDE's (PyCharm) autocompletion happy
----> 9 from .cv2 import *
     10 
     11 # wildcard import above does not import "private" variables like __version__

ImportError: libSM.so.6: cannot open shared object file: No such file or directory

Not sure how to fix this - trying to play around with Google's new Colaboratory tool. Notebook is here: https://drive.google.com/file/d/0B7-sJqBiyjCcRmFkMzl6cy1iN0k/view?usp=sharing

Dmitry Rastorguev :

This fixed the problem by having it as the first two lines of the script:

!pip install opencv-python
!apt update && apt install -y libsm6 libxext6

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Anaconda ImportError: libSM.so.6: cannot open shared object file: No such file or directory

Error importing cv2: 'libSM.so.6: cannot open shared object file: No such file or directory'

ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory Tensorflow

ImportError: libICE.so.6: cannot open shared object file: No such file or directory

Tensorflow shared library error; ImportError: libcuda.so.1: cannot open shared object file: No such file or directory

ImportError: libc10.so: cannot open shared object file: No such file or directory

ImportError: libopencv_hdf.so.4.5: cannot open shared object file: No such file or directory

ImportError libdynet.so: cannot open shared object file, No such file or directory

Tensorflow: ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory

ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory

ImportError: libtk8.6.so: cannot open shared object file: No such file or directory

ImportError: libta_lib.so.0: cannot open shared object file: No such file or directory

ImportError: libGL.so.1: cannot open shared object file: No such file or directory while importing OCC

ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory

ImportError: libavcodec.so.56: cannot open shared object file: No such file or directory

ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory

ImportError: libgomp.so.1: cannot open shared object file: No such file or directory

Tensorflow: ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

ImportError: libopencv_hdf.so.3.1: cannot open shared object file: No such file or directory

ImportError: /home/dminstalluser/script/lib/prctl.so: cannot open shared object file: No such file or directory

ImportError: libcudart.so.8.0: cannot open shared object file: No such file or directory

ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

ImportError: libboost_python.so.1.65.1: cannot open shared object file: No such file or directory

ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

Jupyter: ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory

ImportError: libOpenGL.so.0: cannot open shared object file: No such file or directory

ImportError: libpng16.so.16: cannot open shared object file: No such file or directory

ImportError: libtinfo.so.5: cannot open shared object file: No such file or directory

ImportError: libcublas.so.9.0: cannot open shared object file