Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory #9

Closed
gitfourteen opened this issue Aug 11, 2019 · 1 comment

Comments

@gitfourteen
Copy link

gitfourteen commented Aug 11, 2019

### In colab, virtual environment failed to import tensroflow.

Run command as following:

  1. !pwd
    /content/gdrive/My Drive/fsdl-text-recognizer-project/lab2_sln

  2. !nvcc --version(for now I have no idea what this info will help debug, just list here FYI)

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2018 NVIDIA Corporation
Built on Sat_Aug_25_21:08:01_CDT_2018
Cuda compilation tools, release 10.0, V10.0.130

  1. !pipenv run python (failed to import tensorflow!)
    Python 3.6.8 (default, Jan 14 2019, 11:02:34)
    [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
    Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf

Traceback (most recent call last):
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/init.py", line 24, in
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/python/init.py", line 49, in
from tensorflow.python import pywrap_tensorflow
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 74, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/imp.py", line 243, in load_module
return load_dynamic(name, filename, file)
File "/root/.local/share/virtualenvs/fsdl-text-recognizer-project-iJwlu5A8/lib/python3.6/imp.py", line 343, in load_dynamic
return _load(spec)
ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.

KeyboardInterrupt

KeyboardInterrupt

KeyboardInterrupt

^C

  1. !python (this is OK)
    Python 3.6.8 (default, Jan 14 2019, 11:02:34)
    [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
    Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf
tf.__version__
'1.14.0'

KeyboardInterrupt

KeyboardInterrupt

KeyboardInterrupt

^C

@gitfourteen
Copy link
Author

After updating tensorflow to version 1.14.0 in virtual environment, this issue is addressed.

  • check outdated package, and find tersorflow '==1.14.0' is available

!pipenv update --outdated

  • update ONLY tensorflow

!pipenv update tensorflow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant