Tensorflow: ImportError: libcusolver.so.8.0 -
i upgraded graphics card on linux machine. installed nvidia driver versioned 384, cudnn , manually installed cuda-toolkit 8 opt out included old drivers.
i compiled "nvidia_cuda-8.0_samples" , ran binary file generated named "devicequery" passed , worked fine.
i following error when trying run code:
traceback (most recent call last): file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> tensorflow.python.pywrap_tensorflow_internal import * file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) file "/usr/lib/python3.6/imp.py", line 242, in load_module return load_dynamic(name, filename, file) file "/usr/lib/python3.6/imp.py", line 342, in load_dynamic return _load(spec) importerror: libcusolver.so.8.0: cannot open shared object file: no such file or directory during handling of above exception, exception occurred: traceback (most recent call last): file "/home/ben/documents/github/machine-learning/polynomial_fitting/poly_fit.py", line 5, in <module> import tensorflow tf file "/usr/local/lib/python3.6/dist-packages/tensorflow/__init__.py", line 24, in <module> tensorflow.python import * file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/__init__.py", line 49, in <module> tensorflow.python import pywrap_tensorflow file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module> raise importerror(msg) importerror: traceback (most recent call last): file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> tensorflow.python.pywrap_tensorflow_internal import * file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) file "/usr/lib/python3.6/imp.py", line 242, in load_module return load_dynamic(name, filename, file) file "/usr/lib/python3.6/imp.py", line 342, in load_dynamic return _load(spec) importerror: libcusolver.so.8.0: cannot open shared object file: no such file or directory failed load native tensorflow runtime. see https://www.tensorflow.org/install/install_sources#common_installation_problems common reasons , solutions. include entire stack trace above error message when asking help. error in sys.excepthook: traceback (most recent call last): file "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook apport.fileutils import likely_packaged, get_recent_crashes file "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in <module> apport.report import report file "/usr/lib/python3/dist-packages/apport/report.py", line 30, in <module> import apport.fileutils file "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in <module> apport.packaging_impl import impl packaging file "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in <module> import apt file "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module> import apt_pkg modulenotfounderror: no module named 'apt_pkg' original exception was: traceback (most recent call last): file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> tensorflow.python.pywrap_tensorflow_internal import * file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) file "/usr/lib/python3.6/imp.py", line 242, in load_module return load_dynamic(name, filename, file) file "/usr/lib/python3.6/imp.py", line 342, in load_dynamic return _load(spec) importerror: libcusolver.so.8.0: cannot open shared object file: no such file or directory during handling of above exception, exception occurred: traceback (most recent call last): file "/home/ben/documents/github/machine-learning/polynomial_fitting/poly_fit.py", line 5, in <module> import tensorflow tf file "/usr/local/lib/python3.6/dist-packages/tensorflow/__init__.py", line 24, in <module> tensorflow.python import * file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/__init__.py", line 49, in <module> tensorflow.python import pywrap_tensorflow file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 52, in <module> raise importerror(msg) importerror: traceback (most recent call last): file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow.py", line 41, in <module> tensorflow.python.pywrap_tensorflow_internal import * file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module> _pywrap_tensorflow_internal = swig_import_helper() file "/usr/local/lib/python3.6/dist-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) file "/usr/lib/python3.6/imp.py", line 242, in load_module return load_dynamic(name, filename, file) file "/usr/lib/python3.6/imp.py", line 342, in load_dynamic return _load(spec) importerror: libcusolver.so.8.0: cannot open shared object file: no such file or directory failed load native tensorflow runtime. see https://www.tensorflow.org/install/install_sources#common_installation_problems common reasons , solutions. include entire stack trace above error message when asking help. i tried following:
- http://blog.nelsonliu.me/2017/04/29/installing-and-updating-gtx-1080-ti-cuda-drivers-on-ubuntu/
- tensorflow: importerror: libcusolver.so.8.0: cannot open shared object file: no such file or directory
- after building tensorflow source, seeing libcudart.so , libcudnn errors
yet no results. have in "~/.bashrc" @ eof 2 following lines:
export ld_library_path=/usr/local/cuda/lib64/ export ld_library_path=/usr/local/cuda-8.0/lib64/ i have file "libcusolver.so.8.0" @ sub-dir "lib64", guess it's linking problem. disclaimer: relatively new user linux , perhaps , don't possess knowledge "soft links, full purpose of ".bashrc", "etc/environment" , such.
thanks in advance, ben.
lots of things check
- check env variables
ld_library_path,ld_library_pathwantecho $ld_library_path - check driver
nvidia-smi
Comments
Post a Comment