supervisely-tutorials
supervisely-tutorials copied to clipboard
ImportError
Got error in jupyter notebook script during the work within docker image, in the very beginning of the script:
import keras import tensorflow as tf print('TensorFlow version:', tf.version) print('Keras version:', keras.version)
Using TensorFlow backend.
ImportError Traceback (most recent call last)
/opt/conda/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py in
/opt/conda/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow_internal.py in
/opt/conda/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow_internal.py in swig_import_helper() 23 try: ---> 24_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) 25 finally:
/opt/conda/lib/python3.5/imp.py in load_module(name, file, filename, details) 242 else: --> 243return load_dynamic(name, filename, file) 244 elif type_ == PKG_DIRECTORY:
/opt/conda/lib/python3.5/imp.py in load_dynamic(name, path, file) 342 name=name, loader=loader, origin=path) --> 343return _load(spec) 344
ImportError: libcudnn.so.6: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
/src/keras/init.py in
/src/keras/utils/init.py in
/src/keras/utils/conv_utils.py in
/src/keras/backend/init.py in
/src/keras/backend/tensorflow_backend.py in
/opt/conda/lib/python3.5/site-packages/tensorflow/init.py in
/opt/conda/lib/python3.5/site-packages/tensorflow/python/init.py in
/opt/conda/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py in
ImportError: Traceback (most recent call last):
File "/opt/conda/lib/python3.5/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.
What have I done wrong?
Do you have cuda libraries installed on your host? What is the version?
Hi, I got similiar problem with this. which feedback to me as:
ImportError Traceback (most recent call last)
/usr/local/lib/python3.5/dist-packages/cv2/init.py in
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
In [ ]:
I had a similar problem before, maybe a version compatibility issue, re-created the virtual environment and don't install the tensorflow-gpu version if your computer performance is not good.